diff --git a/local/modules/ChronopostHomeDelivery/ChronopostHomeDelivery.php b/local/modules/ChronopostHomeDelivery/ChronopostHomeDelivery.php new file mode 100644 index 00000000..f730606c --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/ChronopostHomeDelivery.php @@ -0,0 +1,438 @@ +findOne(); + ChronopostHomeDeliveryAreaFreeshippingQuery::create()->findOne(); + } catch (\Exception $e) { + $database = new Database($con->getWrappedConnection()); + $database->insertSql(null, array(__DIR__ . '/Config/thelia.sql')); + } + + /** Default config values */ + $defaultConfig = [ + ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_CODE_CLIENT => null, + ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_PASSWORD => null, + ]; + + /** Defaults the delivery types status as false */ + foreach (ChronopostHomeDeliveryConst::getDeliveryTypesStatusKeys() as $statusKey) { + $defaultConfig[$statusKey] = false; + } + + /** Set the default config values in the DB table if it doesn't exists yet */ + foreach ($defaultConfig as $key => $value) { + if (null === self::getConfigValue($key, null)) { + self::setConfigValue($key, $value); + } + } + + /** Set the delivery types as not enabled in the ChronopostHomeDeliveryDeliveryMode table + * when activating the module for the first time + */ + foreach (ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_DELIVERY_CODES as $title => $code) { + if (null === $this->isDeliveryTypeSet($code)) { + $this->setDeliveryType($code, $title); + } + } + + if (null === MessageQuery::create()->findOneByName(self::CHRONOPOST_CONFIRMATION_MESSAGE_NAME)) { + $message = new Message(); + + $message + ->setName(self::CHRONOPOST_CONFIRMATION_MESSAGE_NAME) + ->setHtmlLayoutFileName('order_shipped.html') + ->setTextLayoutFileName('order_shipped.txt') + ->setLocale('en_US') + ->setTitle('Order send confirmation') + ->setSubject('Order send confirmation') + + ->setLocale('fr_FR') + ->setTitle('Confirmation d\'envoi de commande') + ->setSubject('Confirmation d\'envoi de commande') + + ->save() + ; + } + } + + /** + * Check if a given delivery type exists in the ChronopostHomeDeliveryDeliveryMode table + * + * @param $code + * @return ChronopostHomeDeliveryDeliveryMode + */ + public function isDeliveryTypeSet($code) + { + return ChronopostHomeDeliveryDeliveryModeQuery::create()->findOneByCode($code); + } + + /** + * Add a delivery type to the ChronopostHomeDeliveryDeliveryMode table + * + * @param $code + * @param $title + */ + public function setDeliveryType($code, $title) + { + $newDeliveryType = new ChronopostHomeDeliveryDeliveryMode(); + + try { + $newDeliveryType + ->setCode($code) + ->setTitle($title) + ->setFreeshippingActive(false) + ->setFreeshippingFrom(null) + ->save(); + } catch (\Exception $e) { + + } + } + + /** + * Verify if the are asked by the user is in the list of areas added to the shipping zones + * + * @param Country $country + * @return bool + */ + public function isValidDelivery(Country $country) + { + if (empty($this->getAllAreasForCountry($country))) { + return false; + } + + $countryAreas = $country->getCountryAreas(); + $areasArray = []; + + /** @var CountryArea $countryArea */ + foreach ($countryAreas as $countryArea) { + $areasArray[] = $countryArea->getAreaId(); + } + + $prices = ChronopostHomeDeliveryPriceQuery::create() + ->filterByAreaId($areasArray) + ->findOne(); + + $freeShipping = ChronopostHomeDeliveryDeliveryModeQuery::create() + ->findOneByFreeshippingActive(true); + + /** Check if Chronopost delivers in the asked area */ + if (null !== $prices || null !== $freeShipping) { + return true; + } + + return false; + } + + /** + * Return the delivery type of an ongoing order. + * + * @param Request|Session $request + * @return null|string + */ + public function getDeliveryType($request) + { + $deliveryMode = $request->get('chronopost-home-delivery-delivery-mode'); + + $deliveryCodes = array_change_key_case(ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_DELIVERY_CODES, CASE_LOWER); + + if ($deliveryMode) { + return $deliveryCodes[strtolower($deliveryMode)]; + } + + return null; + } + + /** + * Return the postage price for a given area, cart weight, cart amount, and delivery type + * + * @param $areaId + * @param $weight + * @param int $cartAmount + * @param null $deliveryCode + * @return int + * @throws \Exception + */ + public static function getPostageAmount($areaId, $weight, $cartAmount = 0, $deliveryCode = null) + { + if (null === $deliveryType = ChronopostHomeDeliveryDeliveryModeQuery::create()->findOneByCode($deliveryCode)) { + throw new \Exception("The delivery code given is not supported by the module."); + } + + /** Check if freeshipping is activated for this delivery type */ + try { + $freeShipping = $deliveryType->getFreeshippingActive(); + } catch (\Exception $e) { + $freeShipping = false; + } + + /** Get the total cart price needed to have a free shipping for all areas, if it exists */ + try { + $freeShippingFrom = $deliveryType->getFreeshippingFrom(); + } catch (\Exception $er) { + $freeShippingFrom = null; + } + + /** Set the initial postage price as 0 */ + $postage = 0; + + /** If free shipping is enabled, skip and return 0 */ + if (!$freeShipping) { + + /** If a minimum price for free shipping is defined and the amount of the cart reach this limit, return 0. */ + if (null !== $freeShippingFrom && $freeShippingFrom <= $cartAmount) { + return $postage; + } + + /** Get the minimum price for free shipping in the area of the order */ + $cartAmountFreeShipping = ChronopostHomeDeliveryAreaFreeshippingQuery::create() + ->filterByAreaId($areaId) + ->filterByDeliveryModeId($deliveryType->getId()) + ->findOne(); + + if (null !== $cartAmountFreeShipping) { + $cartAmountFreeShipping = $cartAmountFreeShipping->getCartAmount(); + } + + /** If the cart price is superior to the minimum price for free shipping in the area of the order, + * return the postage as free. + */ + if ($cartAmountFreeShipping !== null && $cartAmountFreeShipping <= $cartAmount) { + return 0; + } + + /** Search the list of prices and order it in ascending order */ + $areaPrices = ChronopostHomeDeliveryPriceQuery::create() + ->filterByDeliveryModeId($deliveryType->getId()) + ->filterByAreaId($areaId) + ->filterByWeightMax($weight, Criteria::GREATER_EQUAL) + ->_or() + ->filterByWeightMax(null) + ->filterByPriceMax($cartAmount, Criteria::GREATER_EQUAL) + ->_or() + ->filterByPriceMax(null) + ->orderByWeightMax() + ->orderByPriceMax(); + + /** Find the correct postage price for the cart weight and price according to the area and delivery mode in $areaPrices*/ + $firstPrice = $areaPrices + ->find() + ->getFirst() + ; + + /** If no price was found, return null */ + if (null === $firstPrice) { + return null; + } + + $postage = $firstPrice->getPrice(); + } + + return $postage; + } + + /** + * Return the minimum postage price of a list of areas, for a given cart weight, price, and delivery type. + * + * @param $areaIdArray + * @param $cartWeight + * @param $cartAmount + * @param $deliveryType + * @return int|null + */ + public function getMinPostage($areaIdArray, $cartWeight, $cartAmount, $deliveryType) + { + $minPostage = null; + + foreach ($areaIdArray as $areaId) { + try { + $postage = self::getPostageAmount($areaId, $cartWeight, $cartAmount, $deliveryType); + if (null === $postage) { + continue ; + } + if ($minPostage === null || $postage < $minPostage) { + $minPostage = $postage; + if ($minPostage === 0) { + break; + } + } + } catch (\Exception $ex) { + throw new DeliveryException($ex->getMessage()); //todo : Make a better catch, duh + } + } + + return $minPostage; + } + + /** + * Return an array of the codes of all delivery types that have been activated + * in the backOffice configuration page. + * + * @return array + */ + public static function getActivatedDeliveryTypes() + { + $config = ChronopostHomeDeliveryConst::getConfig(); + $deliveryTypes = ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_DELIVERY_CODES; + $activatedDeliveryTypes = []; + + foreach (ChronopostHomeDeliveryConst::getDeliveryTypesStatusKeys() as $deliveryTypeName => $statusKey) { + if (true === (bool)$config[$statusKey]) { + $activatedDeliveryTypes[] = $deliveryTypes[$deliveryTypeName]; + } + } + + return $activatedDeliveryTypes; + } + + /** + * Return the postage of an ongoing order, or the minimum expected postage before the user chooses what delivery types he wants. + * + * @param Country $country + * @return float|int|\Thelia\Model\OrderPostage + * @throws \Propel\Runtime\Exception\PropelException + */ + public function getPostage(Country $country) + { + $request = $this->getRequest(); + + $cartWeight = $request->getSession()->getSessionCart($this->getDispatcher())->getWeight(); + $cartAmount = $request->getSession()->getSessionCart($this->getDispatcher())->getTaxedAmount($country); + + + /** Get the delivery type of an ongoing order by looking at the request */ + $deliveryType = $this->getDeliveryType($request); + + /** If no delivery type was found, search again in the session. */ + if (null === $deliveryType) { + $deliveryType = $this->getDeliveryType($request->getSession()); + } + + $deliveryArray[] = $deliveryType; + + /** If still no delivery type is found, create an array of all activated delivery types to search + * which one has the lowest delivery price. + */ + if (null === $deliveryType) { + $deliveryArray = $this->getActivatedDeliveryTypes(); + } + + /** Check what areas are covered in the shipping zones defined by the admin */ + $areaIdArray = $this->getAllAreasForCountry($country); + if (empty($areaIdArray)) { + throw new DeliveryException("Your delivery country is not covered by Chronopost"); + } + + $postage = null; + + /** If no delivery type was given, the loop should continue until the postage for each delivery types was + * found, then return the minimum one. Otherwise, the loop should stop after the first iteration. + */ + if ($deliveryArray !== null) { + $y = 0; + $postage = $this->getMinPostage($areaIdArray, $cartWeight, $cartAmount, $deliveryArray[$y]); + + while (isset($deliveryArray[$y]) && !empty($deliveryArray[$y]) && null !== $deliveryArray[$y]) { + if (($postage > ($minPost = $this->getMinPostage($areaIdArray, $cartWeight, $cartAmount, $deliveryArray[$y])) || $postage === null) + && $minPost !== null + ) { + $postage = $minPost; + } + $y++; + } + } + + /** If no postage was found, we throw an exception */ + if (null === $postage) { + throw new DeliveryException("Chronopost delivery unavailable for your cart weight or delivery country"); + } + + /** Get the postage for the shipping zones we've just got */ + + ///** If delivery is free, set it to a minimal number so the price will still appear. It will be rounded up to 0 */ + //if (0 == $postage) { + // $postage = 0.000001; + //} + + return (float)$postage; + } + + /** + * Returns ids of area containing this country and covers by this module + * @param Country $country + * @return array Area ids + */ + public function getAllAreasForCountry(Country $country) + { + $areaArray = []; + + $sql = "SELECT ca.area_id as area_id FROM country_area ca + INNER JOIN area_delivery_module adm ON (ca.area_id = adm.area_id AND adm.delivery_module_id = :p0) + WHERE ca.country_id = :p1"; + + $con = Propel::getConnection(); + + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $this->getModuleModel()->getId(), PDO::PARAM_INT); + $stmt->bindValue(':p1', $country->getId(), PDO::PARAM_INT); + $stmt->execute(); + + while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) { + $areaArray[] = $row['area_id']; + } + + return $areaArray; + } + + public function getDeliveryMode() + { + return "delivery"; + } +} diff --git a/local/modules/ChronopostHomeDelivery/Config/ChronopostHomeDeliveryConst.php b/local/modules/ChronopostHomeDelivery/Config/ChronopostHomeDeliveryConst.php new file mode 100644 index 00000000..50866fd9 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Config/ChronopostHomeDeliveryConst.php @@ -0,0 +1,107 @@ + Code */ + const CHRONOPOST_HOME_DELIVERY_DELIVERY_CODES = [ + "Chrono13" => "1", + "Chrono18" => "16", + "ChronoExpress" => "17", + "ChronoClassic" => "44", + "Fresh13" => "2R", + "Chrono10" => "2" + ]; + /** @TODO Add other delivery types */ + + /** Chronopost shipper identifiers */ + const CHRONOPOST_HOME_DELIVERY_CODE_CLIENT = "chronopost_home_delivery_code"; + const CHRONOPOST_HOME_DELIVERY_PASSWORD = "chronopost_home_delivery_password"; + + /** WSDL for the Chronopost Shipping Service */ + const CHRONOPOST_HOME_DELIVERY_SHIPPING_SERVICE_WSDL = "https://ws.chronopost.fr/shipping-cxf/ShippingServiceWS?wsdl"; + //const CHRONOPOST_HOME_DELIVERY_RELAY_SEARCH_SERVICE_WSDL = "https://ws.chronopost.fr/recherchebt-ws-cxf/PointRelaisServiceWS?wsdl"; + const CHRONOPOST_HOME_DELIVERY_COORDINATES_SERVICE_WSDL = "https://ws.chronopost.fr/rdv-cxf/services/CreneauServiceWS?wsdl"; + /** @TODO Add other WSDL config key */ + + /** @Unused */ + const CHRONOPOST_HOME_DELIVERY_TRACKING_URL = "https://ws.chronopost.fr/tracking-cxf/TrackingServiceWS/trackSkybillV2"; + + + /** @Unused */ + public function getTrackingURL() + { + $URL = self::CHRONOPOST_HOME_DELIVERY_TRACKING_URL; + $URL .= "language=" . "fr_FR"; //todo Make locale a variable + $URL .= "&skybillNumber=" . "XXX"; //todo Use real skybill Number -> getTrackingURL(variable) + + return $URL; + } + + /** Local static config value, used to limit the number of calls to the DB */ + protected static $config = null; + + /** + * Set the local static config value + */ + public static function setConfig() + { + $config = [ + /** Chronopost basic informations */ + self::CHRONOPOST_HOME_DELIVERY_CODE_CLIENT => ChronopostHomeDelivery::getConfigValue(self::CHRONOPOST_HOME_DELIVERY_CODE_CLIENT), + self::CHRONOPOST_HOME_DELIVERY_PASSWORD => ChronopostHomeDelivery::getConfigValue(self::CHRONOPOST_HOME_DELIVERY_PASSWORD), + + /** END */ + ]; + + /** Delivery types */ + foreach (self::getDeliveryTypesStatusKeys() as $statusKey) { + $config[$statusKey] = ChronopostHomeDelivery::getConfigValue($statusKey); + } + + /** Set the local static config value */ + self::$config = $config; + } + + /** + * Return the local static config value or the value of a given parameter + * + * @param null $parameter + * @return array|mixed|null + */ + public static function getConfig($parameter = null) + { + /** Check if the local config value is set, and set it if it's not */ + if (null === self::$config) { + self::setConfig(); + } + + /** Return the value of the config parameter given, or null if it wasn't set */ + if (null !== $parameter) { + return (isset(self::$config[$parameter])) ? self::$config[$parameter] : null; + } + + /** Return the local static config value */ + return self::$config; + } + + /** Status keys of the delivery types. + * @return array + */ + public static function getDeliveryTypesStatusKeys() + { + $statusKeys = []; + + foreach (self::CHRONOPOST_HOME_DELIVERY_DELIVERY_CODES as $name => $code) { + $statusKeys[$name] = 'chronopost_home_delivery_delivery_' . strtolower($name) . '_status'; + } + + return $statusKeys; + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Config/config.xml b/local/modules/ChronopostHomeDelivery/Config/config.xml new file mode 100644 index 00000000..08a49002 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Config/config.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/local/modules/ChronopostHomeDelivery/Config/module.xml b/local/modules/ChronopostHomeDelivery/Config/module.xml new file mode 100644 index 00000000..2be65f3b --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Config/module.xml @@ -0,0 +1,30 @@ + + + ChronopostHomeDelivery\ChronopostHomeDelivery + + ChronopostHomeDelivery + Chronopost home delivery module + + + ChronopostHomeDelivery + Module de livraison à domicile Chronopost + + + en_US + fr_FR + + 1.0.4 + + + Thelia + info@thelia.net + + + classic + 2.3.4 + other + 0 + 0 + diff --git a/local/modules/ChronopostHomeDelivery/Config/routing.xml b/local/modules/ChronopostHomeDelivery/Config/routing.xml new file mode 100644 index 00000000..68a0750e --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Config/routing.xml @@ -0,0 +1,44 @@ + + + + + + ChronopostHomeDelivery\Controller\ChronopostHomeDeliveryBackOfficeController::saveAction + + + + ChronopostHomeDelivery\Controller\ChronopostHomeDeliveryBackOfficeController::saveActionShipper + + + + ChronopostHomeDelivery\Controller\ChronopostHomeDeliveryBackOfficeController::saveLabel + + + + + ChronopostHomeDelivery\Controller\ChronopostHomeDeliveryFreeShippingController::toggleFreeShippingActivation + + + + ChronopostHomeDelivery\Controller\ChronopostHomeDeliveryFreeShippingController::setFreeShippingFrom + + + + ChronopostHomeDelivery\Controller\ChronopostHomeDeliveryFreeShippingController::setAreaFreeShipping + + + + + ChronopostHomeDelivery\Controller\ChronopostHomeDeliverySliceController::saveSliceAction + + + ChronopostHomeDelivery\Controller\ChronopostHomeDeliverySliceController::deleteSliceAction + + + + ChronopostHomeDelivery\Controller\ChronopostHomeDeliveryRelayController::findByAddress + + + diff --git a/local/modules/ChronopostHomeDelivery/Config/schema.xml b/local/modules/ChronopostHomeDelivery/Config/schema.xml new file mode 100644 index 00000000..0cb5b3bb --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Config/schema.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+ + +
diff --git a/local/modules/ChronopostHomeDelivery/Config/sqldb.map b/local/modules/ChronopostHomeDelivery/Config/sqldb.map new file mode 100644 index 00000000..63a93baa --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Config/sqldb.map @@ -0,0 +1,2 @@ +# Sqlfile -> Database map +thelia.sql=thelia diff --git a/local/modules/ChronopostHomeDelivery/Config/thelia.sql b/local/modules/ChronopostHomeDelivery/Config/thelia.sql new file mode 100644 index 00000000..c72e7507 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Config/thelia.sql @@ -0,0 +1,103 @@ + +# This is a fix for InnoDB in MySQL >= 4.1.x +# It "suspends judgement" for fkey relationships until are tables are set. +SET FOREIGN_KEY_CHECKS = 0; + +-- --------------------------------------------------------------------- +-- chronopost_home_delivery_order +-- --------------------------------------------------------------------- + +DROP TABLE IF EXISTS `chronopost_home_delivery_order`; + +CREATE TABLE `chronopost_home_delivery_order` +( + `id` INTEGER NOT NULL AUTO_INCREMENT, + `order_id` INTEGER NOT NULL, + `delivery_type` TEXT, + `delivery_code` TEXT, + `label_directory` TEXT, + `label_number` TEXT, + PRIMARY KEY (`id`), + INDEX `FI_chronopost_home_delivery_order_order_id` (`order_id`), + CONSTRAINT `fk_chronopost_home_delivery_order_order_id` + FOREIGN KEY (`order_id`) + REFERENCES `order` (`id`) + ON UPDATE RESTRICT + ON DELETE CASCADE +) ENGINE=InnoDB; + +-- --------------------------------------------------------------------- +-- chronopost_home_delivery_delivery_mode +-- --------------------------------------------------------------------- + +DROP TABLE IF EXISTS `chronopost_home_delivery_delivery_mode`; + +CREATE TABLE `chronopost_home_delivery_delivery_mode` +( + `id` INTEGER NOT NULL AUTO_INCREMENT, + `title` VARCHAR(255), + `code` VARCHAR(55) NOT NULL, + `freeshipping_active` TINYINT(1), + `freeshipping_from` FLOAT, + PRIMARY KEY (`id`) +) ENGINE=InnoDB; + +-- --------------------------------------------------------------------- +-- chronopost_home_delivery_price +-- --------------------------------------------------------------------- + +DROP TABLE IF EXISTS `chronopost_home_delivery_price`; + +CREATE TABLE `chronopost_home_delivery_price` +( + `id` INTEGER NOT NULL AUTO_INCREMENT, + `area_id` INTEGER NOT NULL, + `delivery_mode_id` INTEGER NOT NULL, + `weight_max` FLOAT, + `price_max` FLOAT, + `franco_min_price` FLOAT, + `price` FLOAT NOT NULL, + PRIMARY KEY (`id`), + INDEX `FI_chronopost_home_delivery_price_area_id` (`area_id`), + INDEX `FI_chronopost_home_delivery_price_delivery_mode_id` (`delivery_mode_id`), + CONSTRAINT `fk_chronopost_home_delivery_price_area_id` + FOREIGN KEY (`area_id`) + REFERENCES `area` (`id`) + ON UPDATE RESTRICT + ON DELETE RESTRICT, + CONSTRAINT `fk_chronopost_home_delivery_price_delivery_mode_id` + FOREIGN KEY (`delivery_mode_id`) + REFERENCES `chronopost_home_delivery_delivery_mode` (`id`) + ON UPDATE RESTRICT + ON DELETE RESTRICT +) ENGINE=InnoDB; + +-- --------------------------------------------------------------------- +-- chronopost_home_delivery_area_freeshipping +-- --------------------------------------------------------------------- + +DROP TABLE IF EXISTS `chronopost_home_delivery_area_freeshipping`; + +CREATE TABLE `chronopost_home_delivery_area_freeshipping` +( + `id` INTEGER NOT NULL AUTO_INCREMENT, + `area_id` INTEGER NOT NULL, + `delivery_mode_id` INTEGER NOT NULL, + `cart_amount` DECIMAL(16,6) DEFAULT 0.000000, + PRIMARY KEY (`id`), + INDEX `FI_chronopost_home_delivery_area_freeshipping_area_id` (`area_id`), + INDEX `FI_chronopost_home_delivery_area_freeshipping_delivery_mode_id` (`delivery_mode_id`), + CONSTRAINT `fk_chronopost_home_delivery_area_freeshipping_area_id` + FOREIGN KEY (`area_id`) + REFERENCES `area` (`id`) + ON UPDATE RESTRICT + ON DELETE RESTRICT, + CONSTRAINT `fk_chronopost_home_delivery_area_freeshipping_delivery_mode_id` + FOREIGN KEY (`delivery_mode_id`) + REFERENCES `chronopost_home_delivery_delivery_mode` (`id`) + ON UPDATE RESTRICT + ON DELETE RESTRICT +) ENGINE=InnoDB; + +# This restores the fkey checks, after having unset them earlier +SET FOREIGN_KEY_CHECKS = 1; diff --git a/local/modules/ChronopostHomeDelivery/Controller/ChronopostHomeDeliveryBackOfficeController.php b/local/modules/ChronopostHomeDelivery/Controller/ChronopostHomeDeliveryBackOfficeController.php new file mode 100644 index 00000000..f74f50c4 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Controller/ChronopostHomeDeliveryBackOfficeController.php @@ -0,0 +1,72 @@ +render( + 'module-configure', + [ + 'module_code' => 'ChronopostHomeDelivery', + 'current_tab' => $tab, + ] + ); + } + + /** + * Save configuration form - Chronopost informations + * + * @return mixed|null|\Symfony\Component\HttpFoundation\Response|\Thelia\Core\HttpFoundation\Response + */ + public function saveAction() + { + if (null !== $response = $this->checkAuth([AdminResources::MODULE], 'ChronopostHomeDelivery', AccessManager::UPDATE)) { + return $response; + } + + $form = $this->createForm("chronopost_home_delivery_configuration_form"); + + try { + $data = $this->validateForm($form)->getData(); + + /** Basic informations */ + ChronopostHomeDelivery::setConfigValue(ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_CODE_CLIENT, $data[ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_CODE_CLIENT]); + ChronopostHomeDelivery::setConfigValue(ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_PASSWORD, $data[ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_PASSWORD]); + + /** Delivery types */ + foreach (ChronopostHomeDeliveryConst::getDeliveryTypesStatusKeys() as $statusKey) { + ChronopostHomeDelivery::setConfigValue($statusKey, $data[$statusKey]); + } + + } catch (\Exception $e) { + $this->setupFormErrorContext( + Translator::getInstance()->trans( + "Error", + [], + ChronopostHomeDelivery::DOMAIN_NAME + ), + $e->getMessage(), + $form + ); + + return $this->viewAction('configure'); + } + + return $this->generateSuccessRedirect($form); + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Controller/ChronopostHomeDeliveryFreeShippingController.php b/local/modules/ChronopostHomeDelivery/Controller/ChronopostHomeDeliveryFreeShippingController.php new file mode 100644 index 00000000..df63fef0 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Controller/ChronopostHomeDeliveryFreeShippingController.php @@ -0,0 +1,155 @@ +checkAuth(array(AdminResources::MODULE), array('ChronopostHomeDelivery'), AccessManager::UPDATE)) { + return $response; + } + + $form = new ChronopostHomeDeliveryFreeShippingForm($this->getRequest()); + $response = null; + + try { + $vform = $this->validateForm($form); + $freeshipping = $vform->get('freeshipping')->getData(); + $deliveryModeId = $vform->get('delivery_mode')->getData(); + + $deliveryMode = ChronopostHomeDeliveryDeliveryModeQuery::create()->findOneById($deliveryModeId); + $deliveryMode + ->setFreeshippingActive($freeshipping) + ->save(); + $response = Response::create(''); + } catch (\Exception $e) { + $response = JsonResponse::create(array("error" => $e->getMessage()), 500); + } + + return $response; + } + + /** + * @return mixed|Response + * @throws \Propel\Runtime\Exception\PropelException + */ + public function setFreeShippingFrom() + { + if (null !== $response = $this->checkAuth(array(AdminResources::MODULE), array('ChronopostHomeDelivery'), AccessManager::UPDATE)) { + return $response; + } + + $data = $this->getRequest()->request; + $deliveryMode = ChronopostHomeDeliveryDeliveryModeQuery::create()->findOneById($data->get('delivery-mode')); + + $price = $data->get("price") === "" ? null : $data->get("price"); + + if ($price < 0) { + $price = null; + } + $deliveryMode->setFreeshippingFrom($price) + ->save(); + + return $this->generateRedirectFromRoute( + "admin.module.configure", + array(), + array( + 'current_tab'=>'prices_slices_tab_' . $data->get('delivery-mode'), + 'module_code'=>"ChronopostHomeDelivery", + '_controller' => 'Thelia\\Controller\\Admin\\ModuleController::configureAction', + 'price_error_id' => null, + 'price_error' => null + ) + ); + } + + /** + * Set free shipping for a given area of the delivery type being edited. + * + * @return mixed|null|Response + */ + public function setAreaFreeShipping() + { + if (null !== $response = $this->checkAuth(array(AdminResources::MODULE), array('ChronopostHomeDelivery'), AccessManager::UPDATE)) { + return $response; + } + + $data = $this->getRequest()->request; + + try { + $data = $this->getRequest()->request; + + $chronopostAreaId = $data->get('area-id'); + $chronopostDeliveryId = $data->get('delivery-mode'); + $cartAmount = $data->get("cart-amount"); + + if ($cartAmount < 0 || $cartAmount === '') { + $cartAmount = null; + } + + $areaQuery = AreaQuery::create()->findOneById($chronopostAreaId); + if (null === $areaQuery) { + return null; + } + + $deliveryModeQuery = ChronopostHomeDeliveryDeliveryModeQuery::create()->findOneById($chronopostDeliveryId); + if (null === $deliveryModeQuery) { + return null; + } + + $chronopostFreeShipping = new ChronopostHomeDeliveryAreaFreeshipping(); + $chronopostFreeShippingQuery = ChronopostHomeDeliveryAreaFreeshippingQuery::create() + ->filterByAreaId($chronopostAreaId) + ->filterByDeliveryModeId($chronopostDeliveryId) + ->findOne(); + + if (null === $chronopostFreeShippingQuery) { + $chronopostFreeShipping + ->setAreaId($chronopostAreaId) + ->setDeliveryModeId($chronopostDeliveryId) + ->setCartAmount($cartAmount) + ->save(); + } + + $cartAmountQuery = ChronopostHomeDeliveryAreaFreeshippingQuery::create() + ->filterByAreaId($chronopostAreaId) + ->filterByDeliveryModeId($chronopostDeliveryId) + ->findOneOrCreate() + ->setCartAmount($cartAmount) + ->save(); + } catch (\Exception $e) { + + } + + return $this->generateRedirectFromRoute( + "admin.module.configure", + array(), + array( + 'current_tab' => 'prices_slices_tab_' . $data->get('delivery-mode'), + 'module_code' => "ChronopostHomeDelivery", + '_controller' => 'Thelia\\Controller\\Admin\\ModuleController::configureAction', + 'price_error_id' => null, + 'price_error' => null + ) + ); + } + +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Controller/ChronopostHomeDeliverySliceController.php b/local/modules/ChronopostHomeDelivery/Controller/ChronopostHomeDeliverySliceController.php new file mode 100644 index 00000000..6a9a5fce --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Controller/ChronopostHomeDeliverySliceController.php @@ -0,0 +1,206 @@ +checkAuth([], ['chronopost'], AccessManager::UPDATE); + + if (null !== $response) { + return $response; + } + + $this->checkXmlHttpRequest(); + + $responseData = [ + "sucess" => false, + "message" => '', + "slice" => null, + ]; + + $messages = []; + $response = null; + + try { + $requestData = $this->getRequest()->request; + + if (0 !== $id = (int)($requestData->get('id', 0))) { + $slice = ChronopostHomeDeliveryPriceQuery::create()->findPk($id); + } else { + $slice = new ChronopostHomeDeliveryPrice(); + } + + if (0 !== $areaId = (int)($requestData->get('area', 0))) { + $slice->setAreaId($areaId); + } else { + $messages[] = $this->getTranslator()->trans( + "The area is not valid", + [], + ChronopostHomeDelivery::DOMAIN_NAME + ); + } + + if (0 !== $deliveryMode = (int)($requestData->get("deliveryModeId", 0))) { + $slice->setDeliveryModeId($deliveryMode); + } else { + $messages[] = $this->getTranslator()->trans( + "The delivery type is not valid", + [], + ChronopostHomeDelivery::DOMAIN_NAME + ); + } + + $requestPriceMax = $requestData->get('priceMax', null); + $requestWeightMax = $requestData->get('weightMax', null); + + if (empty($requestPriceMax) && empty($requestWeightMax)) { + $messages[] = $this->getTranslator()->trans( + 'You must specify at least a price max or a weight max value.', + [], + ChronopostHomeDelivery::DOMAIN_NAME + ); + } else { + if (!empty($requestPriceMax)) { + $priceMax = $this->getFloatVal($requestPriceMax); + if (0 < $priceMax) { + $slice->setPriceMax($priceMax); + } else { + $messages[] = $this->getTranslator()->trans( + 'The price max value is not valid', + [], + ChronopostHomeDelivery::DOMAIN_NAME + ); + } + } else { + $slice->setPriceMax(null); + } + + if (!empty($requestWeightMax)) { + $weightMax = $this->getFloatVal($requestWeightMax); + if (0 < $weightMax) { + $slice->setWeightMax($weightMax); + } else { + $messages[] = $this->getTranslator()->trans( + 'The weight max value is not valid', + [], + ChronopostHomeDelivery::DOMAIN_NAME + ); + } + } else { + $slice->setWeightMax(null); + } + } + + $price = $this->getFloatVal($requestData->get('price', 0)); + if (0 <= $price) { + $slice->setPrice($price); + } else { + $messages[] = $this->getTranslator()->trans( + 'The price value is not valid', + [], + ChronopostHomeDelivery::DOMAIN_NAME + ); + } + + if (0 === count($messages)) { + $slice->save(); + $messages[] = $this->getTranslator()->trans( + 'Your slice has been saved', + [], + ChronopostHomeDelivery::DOMAIN_NAME + ); + + $responseData['success'] = true; + $responseData['slice'] = $slice->toArray(TableMap::TYPE_STUDLYPHPNAME); + } + + } catch (\Exception $e) { + $message[] = $e->getMessage(); + } + + $responseData['message'] = $messages; + + return $this->jsonResponse(json_encode($responseData)); + } + + /** + * @param $val + * @param int $default + * @return float|int|mixed + */ + protected function getFloatVal($val, $default = -1) + { + if (preg_match("#^([0-9\.,]+)$#", $val, $match)) { + $val = $match[0]; + if (strstr($val, ",")) { + $val = str_replace(".", "", $val); + $val = str_replace(",", ".", $val); + } + $val = (float)($val); + + return $val; + } + + return $default; + } + + /** + * Delete a price slice in the delivery type being edited + * + * @return mixed|null|\Thelia\Core\HttpFoundation\Response + */ + public function deleteSliceAction() + { + $response = $this->checkAuth([], ['chronopost'], AccessManager::DELETE); + + if (null !== $response) { + return $response; + } + + $this->checkXmlHttpRequest(); + + $responseData = [ + "success" => false, + "message" => '', + "slice" => null + ]; + + $response = null; + + try { + $requestData = $this->getRequest()->request; + + if (0 !== $id = (int)($requestData->get('id', 0))) { + $slice = ChronopostHomeDeliveryPriceQuery::create()->findPk($id); + $slice->delete(); + $responseData['success'] = true; + } else { + $responseData['message'] = $this->getTranslator()->trans( + 'The slice has not been deleted', + [], + ChronopostHomeDelivery::DOMAIN_NAME + ); + } + } catch (\Exception $e) { + $responseData['message'] = $e->getMessage(); + } + + return $this->jsonResponse(json_encode($responseData)); + } + +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/EventListeners/APIListener.php b/local/modules/ChronopostHomeDelivery/EventListeners/APIListener.php new file mode 100644 index 00000000..4c94faf9 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/EventListeners/APIListener.php @@ -0,0 +1,118 @@ +container = $container; + } + + /** + * Get the list of delivery types + * + * @param DeliveryModuleOptionEvent $deliveryModuleOptionEvent + * @throws \Propel\Runtime\Exception\PropelException + */ + public function getDeliveryModuleOptions(DeliveryModuleOptionEvent $deliveryModuleOptionEvent) + { + if ($deliveryModuleOptionEvent->getModule()->getId() !== ChronopostHomeDelivery::getModuleId()) { + return ; + } + + $activatedDeliveryTypes = ChronopostHomeDelivery::getActivatedDeliveryTypes(); + + foreach (ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_DELIVERY_CODES as $name => $code) { + if (!in_array($code, $activatedDeliveryTypes, false)) { + continue ; + } + + $isValid = true; + $postage = null; + $postageTax = null; + + try { + $module = new ChronopostHomeDelivery(); + $country = $deliveryModuleOptionEvent->getCountry(); + + if (empty($module->getAllAreasForCountry($country))) { + throw new DeliveryException(Translator::getInstance()->trans("Your delivery country is not covered by Chronopost")); + } + + $countryAreas = $country->getCountryAreas(); + $areasArray = []; + + /** @var CountryArea $countryArea */ + foreach ($countryAreas as $countryArea) { + $areasArray[] = $countryArea->getAreaId(); + } + + $postage = $module->getMinPostage( + $areasArray, + $deliveryModuleOptionEvent->getCart()->getWeight(), + $deliveryModuleOptionEvent->getCart()->getTaxedAmount($country), + $code + ); + + $postageTax = 0; //TODO + + if (null === $postage) { + $isValid = false; + } + + } catch (\Exception $exception) { + $isValid = false; + } + + $minimumDeliveryDate = ''; // TODO (with a const array code => timeToDeliver to calculate delivery date from day of order) + $maximumDeliveryDate = ''; // TODO (with a const array code => timeToDeliver to calculate delivery date from day of order) + + /** @var DeliveryModuleOption $deliveryModuleOption */ + $deliveryModuleOption = ($this->container->get('open_api.model.factory'))->buildModel('DeliveryModuleOption'); + $deliveryModuleOption + ->setCode($code) + ->setValid($isValid) + ->setTitle($name) + ->setImage('') + ->setMinimumDeliveryDate($minimumDeliveryDate) + ->setMaximumDeliveryDate($maximumDeliveryDate) + ->setPostage($postage) + ->setPostageTax($postageTax) + ->setPostageUntaxed($postage - $postageTax) + ; + + $deliveryModuleOptionEvent->appendDeliveryModuleOptions($deliveryModuleOption); + } + } + + public static function getSubscribedEvents() + { + $listenedEvents = []; + + /** Check for old versions of Thelia where the events used by the API didn't exists */ + if (class_exists(DeliveryModuleOptionEvent::class)) { + $listenedEvents[OpenApiEvents::MODULE_DELIVERY_GET_OPTIONS] = array("getDeliveryModuleOptions", 131); + } + + return $listenedEvents; + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/EventListeners/SetDeliveryType.php b/local/modules/ChronopostHomeDelivery/EventListeners/SetDeliveryType.php new file mode 100644 index 00000000..24f62f65 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/EventListeners/SetDeliveryType.php @@ -0,0 +1,120 @@ +request = $request; + } + + /** + * @return Request + */ + public function getRequest() + { + return $this->request; + } + + /** + * @param $id + * @return bool + */ + protected function checkModule($id) + { + return $id == ChronopostHomeDelivery::getModuleId(); + } + + /** + * @param OrderEvent $orderEvent + * @throws \Propel\Runtime\Exception\PropelException + */ + public function saveChronopostHomeDeliveryOrder(OrderEvent $orderEvent) + { + if ($this->checkModule($orderEvent->getOrder()->getDeliveryModuleId())) { + + $request = $this->getRequest(); + $chronopostOrder = new ChronopostHomeDeliveryOrder(); + + $orderId = $orderEvent->getOrder()->getId(); + + foreach (ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_DELIVERY_CODES as $name => $code) { + if ($code === $request->getSession()->get('ChronopostHomeDeliveryDeliveryType')) { + $chronopostOrder + ->setDeliveryType($name) + ->setDeliveryCode($code) + ; + } + } + + $chronopostOrder + ->setOrderId($orderId) + ->save(); + } + + return ; + } + + /** + * @param OrderEvent $orderEvent + * @return null + */ + public function setChronopostHomeDeliveryDeliveryType(OrderEvent $orderEvent) + { + if ($this->checkModule($orderEvent->getDeliveryModule())) { + $request = $this->getRequest(); + + $request->getSession()->set('ChronopostAddressId', $orderEvent->getDeliveryAddress()); + $request->getSession()->set('ChronopostHomeDeliveryDeliveryType', $request->get('deliveryModuleOptionCode')); + } + + return ; + } + + /** + * Returns an array of event names this subscriber wants to listen to. + * + * The array keys are event names and the value can be: + * + * * The method name to call (priority defaults to 0) + * * An array composed of the method name to call and the priority + * * An array of arrays composed of the method names to call and respective + * priorities, or 0 if unset + * + * For instance: + * + * * array('eventName' => 'methodName') + * * array('eventName' => array('methodName', $priority)) + * * array('eventName' => array(array('methodName1', $priority), array('methodName2')) + * + * @return array The event names to listen to + * + * @api + */ + public static function getSubscribedEvents() + { + return array( + TheliaEvents::ORDER_SET_DELIVERY_MODULE => array('setChronopostHomeDeliveryDeliveryType', 64), + TheliaEvents::ORDER_BEFORE_PAYMENT => array('saveChronopostHomeDeliveryOrder', 256), + ); + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/EventListeners/ShippingNotificationSender.php b/local/modules/ChronopostHomeDelivery/EventListeners/ShippingNotificationSender.php new file mode 100644 index 00000000..38864f1c --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/EventListeners/ShippingNotificationSender.php @@ -0,0 +1,73 @@ +parser = $parser; + $this->mailer = $mailer; + } + + public static function getSubscribedEvents() + { + return [ + TheliaEvents::ORDER_UPDATE_STATUS => ['sendShippingNotification', 128] + ]; + } + + /** + * @param OrderEvent $event + * @throws \Propel\Runtime\Exception\PropelException + */ + public function sendShippingNotification(OrderEvent $event) + { + if ($event->getOrder()->isSent() && ( + $event->getOrder()->getDeliveryModuleId() == ModuleQuery::create()->findOneByCode('ChronopostHomeDelivery')->getId())) { + + $contactEmail = ConfigQuery::getStoreEmail(); + + if ($contactEmail) { + $order = $event->getOrder(); + $customer = $order->getCustomer(); + + $this->mailer->sendEmailToCustomer( + ChronopostHomeDelivery::CHRONOPOST_CONFIRMATION_MESSAGE_NAME, + $order->getCustomer(), + [ + 'order_id' => $order->getId(), + 'order_ref' => $order->getRef(), + 'customer_id' => $customer->getId(), + 'order_date' => $order->getCreatedAt(), + 'update_date' => $order->getUpdatedAt(), + 'package' => $order->getDeliveryRef() + ] + ); + } + } + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryAddPriceForm.php b/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryAddPriceForm.php new file mode 100644 index 00000000..13294812 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryAddPriceForm.php @@ -0,0 +1,105 @@ +formBuilder + ->add("area", "integer", array( + "constraints" => array( + new Constraints\NotBlank(), + new Constraints\Callback(array( + "methods" => array( + array($this, + "verifyAreaExist") + ) + )) + ) + )) + ->add("delivery_mode", "integer", array( + "constraints" => array( + new Constraints\NotBlank(), + new Constraints\Callback(array( + "methods" => array( + array($this, + "verifyDeliveryModeExist") + ) + )) + ) + )) + ->add("weight", "number", array( + "constraints" => array( + new Constraints\NotBlank(), + new Constraints\Callback(array( + "methods" => array( + array($this, + "verifyValidWeight") + ) + )) + ) + )) + ->add("price", "number", array( + "constraints" => array( + new Constraints\NotBlank(), + new Constraints\Callback(array( + "methods" => array( + array($this, + "verifyValidPrice") + ) + )) + ) + )) + ->add("franco", "number", array()) + ; + } + + public function verifyAreaExist($value, ExecutionContextInterface $context) + { + $area = AreaQuery::create()->findPk($value); + if (null === $area) { + $context->addViolation(Translator::getInstance()->trans("This area doesn't exists.", [], ChronopostHomeDelivery::DOMAIN_NAME)); + } + } + + public function verifyDeliveryModeExist($value, ExecutionContextInterface $context) + { + $mode = ChronopostHomeDeliveryDeliveryModeQuery::create()->findPk($value); + if (null === $mode) { + $context->addViolation(Translator::getInstance()->trans("This delivery mode doesn't exists.", [], ChronopostHomeDelivery::DOMAIN_NAME)); + } + } + + public function verifyValidWeight($value, ExecutionContextInterface $context) + { + if (!preg_match("#^\d+\.?\d*$#", $value)) { + $context->addViolation(Translator::getInstance()->trans("The weight value is not valid.", [], ChronopostHomeDelivery::DOMAIN_NAME)); + } + + if ($value < 0) { + $context->addViolation(Translator::getInstance()->trans("The weight value must be superior to 0.", [], ChronopostHomeDelivery::DOMAIN_NAME)); + } + } + + public function verifyValidPrice($value, ExecutionContextInterface $context) + { + if (!preg_match("#^\d+\.?\d*$#", $value)) { + $context->addViolation(Translator::getInstance()->trans("The price value is not valid.", [], ChronopostHomeDelivery::DOMAIN_NAME)); + } + } + + public function getName() + { + return "chronopost_home_delivery_price_create"; + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryConfigurationForm.php b/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryConfigurationForm.php new file mode 100644 index 00000000..f89e62c1 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryConfigurationForm.php @@ -0,0 +1,74 @@ +formBuilder + + /** Chronopost basic informations */ + ->add( + ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_CODE_CLIENT, + "text", + [ + 'required' => true, + 'data' => $config[ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_CODE_CLIENT], + 'label' => Translator::getInstance()->trans("Chronopost client ID"), + 'label_attr' => [ + 'for' => 'title', + ], + 'attr' => [ + 'placeholder' => Translator::getInstance()->trans("Your Chronopost client ID"), + ], + ] + ) + ->add(ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_PASSWORD, + "text", + [ + 'required' => true, + 'data' => $config[ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_PASSWORD], + 'label' => Translator::getInstance()->trans("Chronopost password"), + 'label_attr' => [ + 'for' => 'title', + ], + 'attr' => [ + 'placeholder' => Translator::getInstance()->trans("Your Chronopost password"), + ], + ] + ) + ; + + /** Delivery types */ + foreach (ChronopostHomeDeliveryConst::getDeliveryTypesStatusKeys() as $deliveryTypeName => $statusKey) { + $this->formBuilder + ->add($statusKey, + "checkbox", + [ + 'required' => false, + 'data' => (bool)$config[$statusKey], + 'label' => Translator::getInstance()->trans("\"" . $deliveryTypeName . "\" Delivery (Code : " . ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_DELIVERY_CODES[$deliveryTypeName] . ")"), + 'label_attr' => [ + 'for' => 'title', + ], + ] + ) + ; + } + + /** BUILDFORM END */ + } + + public function getName() + { + return "chronopost_home_delivery_configuration_form"; + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryFreeShippingForm.php b/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryFreeShippingForm.php new file mode 100644 index 00000000..bd0f37f0 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryFreeShippingForm.php @@ -0,0 +1,41 @@ +formBuilder + ->add( + "delivery_mode", + "integer" + ) + ->add( + "freeshipping", + "checkbox", + [ + 'label'=>Translator::getInstance()->trans("Activate free shipping: ") + ] + ) + ; + } + + /** + * The name of you form. This name must be unique + * + * @return string + */ + public function getName() + { + return "chronopost_home_delivery_freeshipping"; + } + +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryUpdatePriceForm.php b/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryUpdatePriceForm.php new file mode 100644 index 00000000..3c04c150 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Form/ChronopostHomeDeliveryUpdatePriceForm.php @@ -0,0 +1,88 @@ +formBuilder + ->add("area", "integer", array( + "constraints" => array( + new Constraints\NotBlank(), + new Constraints\Callback(array( + "methods" => array( + array($this, + "verifyAreaExist") + ) + )) + ) + )) + ->add("delivery_mode", "integer", array( + "constraints" => array( + new Constraints\NotBlank(), + new Constraints\Callback(array( + "methods" => array( + array($this, + "verifyDeliveryModeExist") + ) + )) + ) + )) + ->add("weight", "number", array( + "constraints" => array( + new Constraints\NotBlank(), + ) + )) + ->add("price", "number", array( + "constraints" => array( + new Constraints\NotBlank(), + new Constraints\Callback(array( + "methods" => array( + array($this, + "verifyValidPrice") + ) + )) + ) + )) + ->add("franco", "number", array()) + ; + } + + public function verifyAreaExist($value, ExecutionContextInterface $context) + { + $area = AreaQuery::create()->findPk($value); + if (null === $area) { + $context->addViolation(Translator::getInstance()->trans("This area doesn't exists.", [], ChronopostHomeDelivery::DOMAIN_NAME)); + } + } + + public function verifyDeliveryModeExist($value, ExecutionContextInterface $context) + { + $mode = ChronopostHomeDeliveryDeliveryModeQuery::create()->findPk($value); + if (null === $mode) { + $context->addViolation(Translator::getInstance()->trans("This delivery mode doesn't exists.", [], ChronopostHomeDelivery::DOMAIN_NAME)); + } + } + + public function verifyValidPrice($value, ExecutionContextInterface $context) + { + if (!preg_match("#^\d+\.?\d*$#", $value)) { + $context->addViolation(Translator::getInstance()->trans("The price value is not valid.", [], ChronopostHomeDelivery::DOMAIN_NAME)); + } + } + + public function getName() + { + return "chronopost_home_delivery_price_create"; + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Hook/BackHook.php b/local/modules/ChronopostHomeDelivery/Hook/BackHook.php new file mode 100644 index 00000000..f0b155a2 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Hook/BackHook.php @@ -0,0 +1,20 @@ +add($this->render('ChronopostHomeDelivery/ChronopostHomeDeliveryConfig.html')); + } + + public function onModuleConfigJs(HookRenderEvent $event) + { + $event->add($this->render('ChronopostHomeDelivery/module-config-js.html')); + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Hook/FrontHook.php b/local/modules/ChronopostHomeDelivery/Hook/FrontHook.php new file mode 100644 index 00000000..4298f2bb --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Hook/FrontHook.php @@ -0,0 +1,16 @@ +render("ChronopostHomeDelivery.html", $event->getArguments()); + $event->add($content); + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/I18n/frontOffice/default/fr_FR.php b/local/modules/ChronopostHomeDelivery/I18n/frontOffice/default/fr_FR.php new file mode 100644 index 00000000..c090a4fe --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/I18n/frontOffice/default/fr_FR.php @@ -0,0 +1,17 @@ + 'Choisissez votre formule de livraison', + 'Chrono 13H delivery' => 'Chronopost avant 13h', + 'Chrono 18H delivery' => 'Chronopost avant 18h', + 'Chrono Europe Classic delivery' => 'Livraison classique en Europe', + 'Chrono Europe Express delivery' => 'Livraison express en Europe', + 'Chrono10' => 'Chronopost avant 10h', + 'Delivery before 10H tomorrow.' => 'Livré avant le demain 10h', + 'Delivery of fresh products before 13H tomorrow.' => 'Produit frais livré avant le demain 13h', + 'Delivery to you or a personal address of your choice, anywhere in Europe in less than 3 days.' => 'Livré à l\'adresse de votre choix, partout en Europe, en moins de 3 jours', + 'Delivery to you or a personal address of your choice, anywhere in Europe.' => 'Livré à l\'adresse de votre choix, partout en Europe', + 'Delivery to you or a personal address of your choice, before tomorrow 13H.' => 'Livré à l\'adresse de votre choix, avant le demain 13h', + 'Delivery to you or a personal address of your choice, before tomorrow 18H.' => 'Livré à l\'adresse de votre choix, avant le demain 18h', + 'Fresh 13H delivery' => 'Chronofresh avant 13h', +); diff --git a/local/modules/ChronopostHomeDelivery/Loop/ChronopostHomeDeliveryAreaFreeshipping.php b/local/modules/ChronopostHomeDelivery/Loop/ChronopostHomeDeliveryAreaFreeshipping.php new file mode 100644 index 00000000..1f3e9c62 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Loop/ChronopostHomeDeliveryAreaFreeshipping.php @@ -0,0 +1,67 @@ +getAreaId(); + $mode = $this->getDeliveryModeId(); + + $modes = ChronopostHomeDeliveryAreaFreeshippingQuery::create(); + + if (null !== $mode) { + $modes->filterByDeliveryModeId($mode); + } + + if (null !== $areaId) { + $modes->filterByAreaId($areaId); + } + + return $modes; + } + + /** + * @param LoopResult $loopResult + * @return LoopResult + */ + public function parseResults(LoopResult $loopResult) + { + /** @var \ChronopostHomeDeliveryHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping $mode */ + foreach ($loopResult->getResultDataCollection() as $mode) { + $loopResultRow = new LoopResultRow($mode); + $loopResultRow->set("ID", $mode->getId()) + ->set("AREA_ID", $mode->getAreaId()) + ->set("DELIVERY_MODE_ID", $mode->getDeliveryModeId()) + ->set("CART_AMOUNT", $mode->getCartAmount()); + $loopResult->addRow($loopResultRow); + } + return $loopResult; + + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Loop/ChronopostHomeDeliveryDeliveryMode.php b/local/modules/ChronopostHomeDelivery/Loop/ChronopostHomeDeliveryDeliveryMode.php new file mode 100644 index 00000000..88fa53e4 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Loop/ChronopostHomeDeliveryDeliveryMode.php @@ -0,0 +1,64 @@ + $statusKey) { + $enabledDeliveryTypes[] = $config[$statusKey] ? ChronopostHomeDeliveryConst::CHRONOPOST_HOME_DELIVERY_DELIVERY_CODES[$deliveryTypeName] : ''; + } + + $modes->filterByCode($enabledDeliveryTypes, Criteria::IN); + + return $modes; + } + + /** + * @param LoopResult $loopResult + * @return LoopResult + */ + public function parseResults(LoopResult $loopResult) + { + /** @var \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode $mode */ + foreach ($loopResult->getResultDataCollection() as $mode) { + $loopResultRow = new LoopResultRow($mode); + $loopResultRow + ->set("ID", $mode->getId()) + ->set("TITLE", $mode->getTitle()) + ->set("CODE", $mode->getCode()) + ->set("FREESHIPPING_ACTIVE", $mode->getFreeshippingActive()) + ->set("FREESHIPPING_FROM", $mode->getFreeshippingFrom()); + $loopResult->addRow($loopResultRow); + } + return $loopResult; + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Loop/ChronopostHomeDeliveryLoop.php b/local/modules/ChronopostHomeDelivery/Loop/ChronopostHomeDeliveryLoop.php new file mode 100644 index 00000000..a43254ec --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Loop/ChronopostHomeDeliveryLoop.php @@ -0,0 +1,71 @@ +getAreaId(); + $modeId = $this->getDeliveryModeId(); + + $areaPrices = ChronopostHomeDeliveryPriceQuery::create() + ->filterByDeliveryModeId($modeId) + ->filterByAreaId($areaId) + ->orderByWeightMax(); + + return $areaPrices; + } + + /** + * @param LoopResult $loopResult + * @return LoopResult + */ + public function parseResults(LoopResult $loopResult) + { + /** @var ChronopostHomeDeliveryPrice $price */ + foreach ($loopResult->getResultDataCollection() as $price) { + $loopResultRow = new LoopResultRow($price); + $loopResultRow + ->set("SLICE_ID", $price->getId()) + ->set("MAX_WEIGHT", $price->getWeightMax()) + ->set("MAX_PRICE", $price->getPriceMax()) + ->set("PRICE", $price->getPrice()) + ->set("FRANCO", $price->getFrancoMinPrice()) + ; + $loopResult->addRow($loopResultRow); + } + return $loopResult; + } +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryAreaFreeshipping.php b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryAreaFreeshipping.php new file mode 100644 index 00000000..332ecc5c --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryAreaFreeshipping.php @@ -0,0 +1,1407 @@ +cart_amount = '0.000000'; + } + + /** + * Initializes internal state of ChronopostHomeDelivery\Model\Base\ChronopostHomeDeliveryAreaFreeshipping object. + * @see applyDefaults() + */ + public function __construct() + { + $this->applyDefaultValues(); + } + + /** + * Returns whether the object has been modified. + * + * @return boolean True if the object has been modified. + */ + public function isModified() + { + return !!$this->modifiedColumns; + } + + /** + * Has specified column been modified? + * + * @param string $col column fully qualified name (TableMap::TYPE_COLNAME), e.g. Book::AUTHOR_ID + * @return boolean True if $col has been modified. + */ + public function isColumnModified($col) + { + return $this->modifiedColumns && isset($this->modifiedColumns[$col]); + } + + /** + * Get the columns that have been modified in this object. + * @return array A unique list of the modified column names for this object. + */ + public function getModifiedColumns() + { + return $this->modifiedColumns ? array_keys($this->modifiedColumns) : []; + } + + /** + * Returns whether the object has ever been saved. This will + * be false, if the object was retrieved from storage or was created + * and then saved. + * + * @return boolean true, if the object has never been persisted. + */ + public function isNew() + { + return $this->new; + } + + /** + * Setter for the isNew attribute. This method will be called + * by Propel-generated children and objects. + * + * @param boolean $b the state of the object. + */ + public function setNew($b) + { + $this->new = (Boolean) $b; + } + + /** + * Whether this object has been deleted. + * @return boolean The deleted state of this object. + */ + public function isDeleted() + { + return $this->deleted; + } + + /** + * Specify whether this object has been deleted. + * @param boolean $b The deleted state of this object. + * @return void + */ + public function setDeleted($b) + { + $this->deleted = (Boolean) $b; + } + + /** + * Sets the modified state for the object to be false. + * @param string $col If supplied, only the specified column is reset. + * @return void + */ + public function resetModified($col = null) + { + if (null !== $col) { + if (isset($this->modifiedColumns[$col])) { + unset($this->modifiedColumns[$col]); + } + } else { + $this->modifiedColumns = array(); + } + } + + /** + * Compares this with another ChronopostHomeDeliveryAreaFreeshipping instance. If + * obj is an instance of ChronopostHomeDeliveryAreaFreeshipping, delegates to + * equals(ChronopostHomeDeliveryAreaFreeshipping). Otherwise, returns false. + * + * @param mixed $obj The object to compare to. + * @return boolean Whether equal to the object specified. + */ + public function equals($obj) + { + $thisclazz = get_class($this); + if (!is_object($obj) || !($obj instanceof $thisclazz)) { + return false; + } + + if ($this === $obj) { + return true; + } + + if (null === $this->getPrimaryKey() + || null === $obj->getPrimaryKey()) { + return false; + } + + return $this->getPrimaryKey() === $obj->getPrimaryKey(); + } + + /** + * If the primary key is not null, return the hashcode of the + * primary key. Otherwise, return the hash code of the object. + * + * @return int Hashcode + */ + public function hashCode() + { + if (null !== $this->getPrimaryKey()) { + return crc32(serialize($this->getPrimaryKey())); + } + + return crc32(serialize(clone $this)); + } + + /** + * Get the associative array of the virtual columns in this object + * + * @return array + */ + public function getVirtualColumns() + { + return $this->virtualColumns; + } + + /** + * Checks the existence of a virtual column in this object + * + * @param string $name The virtual column name + * @return boolean + */ + public function hasVirtualColumn($name) + { + return array_key_exists($name, $this->virtualColumns); + } + + /** + * Get the value of a virtual column in this object + * + * @param string $name The virtual column name + * @return mixed + * + * @throws PropelException + */ + public function getVirtualColumn($name) + { + if (!$this->hasVirtualColumn($name)) { + throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name)); + } + + return $this->virtualColumns[$name]; + } + + /** + * Set the value of a virtual column in this object + * + * @param string $name The virtual column name + * @param mixed $value The value to give to the virtual column + * + * @return ChronopostHomeDeliveryAreaFreeshipping The current object, for fluid interface + */ + public function setVirtualColumn($name, $value) + { + $this->virtualColumns[$name] = $value; + + return $this; + } + + /** + * Logs a message using Propel::log(). + * + * @param string $msg + * @param int $priority One of the Propel::LOG_* logging levels + * @return boolean + */ + protected function log($msg, $priority = Propel::LOG_INFO) + { + return Propel::log(get_class($this) . ': ' . $msg, $priority); + } + + /** + * Populate the current object from a string, using a given parser format + * + * $book = new Book(); + * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, + * or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param string $data The source data to import from + * + * @return ChronopostHomeDeliveryAreaFreeshipping The current object, for fluid interface + */ + public function importFrom($parser, $data) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + $this->fromArray($parser->toArray($data), TableMap::TYPE_PHPNAME); + + return $this; + } + + /** + * Export the current object properties to a string, using a given parser format + * + * $book = BookQuery::create()->findPk(9012); + * echo $book->exportTo('JSON'); + * => {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE. + * @return string The exported data + */ + public function exportTo($parser, $includeLazyLoadColumns = true) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $parser->fromArray($this->toArray(TableMap::TYPE_PHPNAME, $includeLazyLoadColumns, array(), true)); + } + + /** + * Clean up internal collections prior to serializing + * Avoids recursive loops that turn into segmentation faults when serializing + */ + public function __sleep() + { + $this->clearAllReferences(); + + return array_keys(get_object_vars($this)); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [area_id] column value. + * + * @return int + */ + public function getAreaId() + { + + return $this->area_id; + } + + /** + * Get the [delivery_mode_id] column value. + * + * @return int + */ + public function getDeliveryModeId() + { + + return $this->delivery_mode_id; + } + + /** + * Get the [cart_amount] column value. + * + * @return string + */ + public function getCartAmount() + { + + return $this->cart_amount; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[ChronopostHomeDeliveryAreaFreeshippingTableMap::ID] = true; + } + + + return $this; + } // setId() + + /** + * Set the value of [area_id] column. + * + * @param int $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping The current object (for fluent API support) + */ + public function setAreaId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->area_id !== $v) { + $this->area_id = $v; + $this->modifiedColumns[ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID] = true; + } + + if ($this->aArea !== null && $this->aArea->getId() !== $v) { + $this->aArea = null; + } + + + return $this; + } // setAreaId() + + /** + * Set the value of [delivery_mode_id] column. + * + * @param int $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping The current object (for fluent API support) + */ + public function setDeliveryModeId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->delivery_mode_id !== $v) { + $this->delivery_mode_id = $v; + $this->modifiedColumns[ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID] = true; + } + + if ($this->aChronopostHomeDeliveryDeliveryMode !== null && $this->aChronopostHomeDeliveryDeliveryMode->getId() !== $v) { + $this->aChronopostHomeDeliveryDeliveryMode = null; + } + + + return $this; + } // setDeliveryModeId() + + /** + * Set the value of [cart_amount] column. + * + * @param string $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping The current object (for fluent API support) + */ + public function setCartAmount($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->cart_amount !== $v) { + $this->cart_amount = $v; + $this->modifiedColumns[ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT] = true; + } + + + return $this; + } // setCartAmount() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->cart_amount !== '0.000000') { + return false; + } + + // otherwise, everything was equal, so return TRUE + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by DataFetcher->fetch(). + * @param int $startcol 0-based offset column which indicates which restultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) + { + try { + + + $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : ChronopostHomeDeliveryAreaFreeshippingTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + $this->id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ChronopostHomeDeliveryAreaFreeshippingTableMap::translateFieldName('AreaId', TableMap::TYPE_PHPNAME, $indexType)]; + $this->area_id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ChronopostHomeDeliveryAreaFreeshippingTableMap::translateFieldName('DeliveryModeId', TableMap::TYPE_PHPNAME, $indexType)]; + $this->delivery_mode_id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ChronopostHomeDeliveryAreaFreeshippingTableMap::translateFieldName('CartAmount', TableMap::TYPE_PHPNAME, $indexType)]; + $this->cart_amount = (null !== $col) ? (string) $col : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + + return $startcol + 4; // 4 = ChronopostHomeDeliveryAreaFreeshippingTableMap::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping object", 0, $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + if ($this->aArea !== null && $this->area_id !== $this->aArea->getId()) { + $this->aArea = null; + } + if ($this->aChronopostHomeDeliveryDeliveryMode !== null && $this->delivery_mode_id !== $this->aChronopostHomeDeliveryDeliveryMode->getId()) { + $this->aChronopostHomeDeliveryDeliveryMode = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param ConnectionInterface $con (optional) The ConnectionInterface connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $dataFetcher = ChildChronopostHomeDeliveryAreaFreeshippingQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); + $row = $dataFetcher->fetch(); + $dataFetcher->close(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aArea = null; + $this->aChronopostHomeDeliveryDeliveryMode = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param ConnectionInterface $con + * @return void + * @throws PropelException + * @see ChronopostHomeDeliveryAreaFreeshipping::setDeleted() + * @see ChronopostHomeDeliveryAreaFreeshipping::isDeleted() + */ + public function delete(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + try { + $deleteQuery = ChildChronopostHomeDeliveryAreaFreeshippingQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see doSave() + */ + public function save(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + ChronopostHomeDeliveryAreaFreeshippingTableMap::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(ConnectionInterface $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aArea !== null) { + if ($this->aArea->isModified() || $this->aArea->isNew()) { + $affectedRows += $this->aArea->save($con); + } + $this->setArea($this->aArea); + } + + if ($this->aChronopostHomeDeliveryDeliveryMode !== null) { + if ($this->aChronopostHomeDeliveryDeliveryMode->isModified() || $this->aChronopostHomeDeliveryDeliveryMode->isNew()) { + $affectedRows += $this->aChronopostHomeDeliveryDeliveryMode->save($con); + } + $this->setChronopostHomeDeliveryDeliveryMode($this->aChronopostHomeDeliveryDeliveryMode); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param ConnectionInterface $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(ConnectionInterface $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[ChronopostHomeDeliveryAreaFreeshippingTableMap::ID] = true; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . ChronopostHomeDeliveryAreaFreeshippingTableMap::ID . ')'); + } + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID)) { + $modifiedColumns[':p' . $index++] = 'ID'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID)) { + $modifiedColumns[':p' . $index++] = 'AREA_ID'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID)) { + $modifiedColumns[':p' . $index++] = 'DELIVERY_MODE_ID'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT)) { + $modifiedColumns[':p' . $index++] = 'CART_AMOUNT'; + } + + $sql = sprintf( + 'INSERT INTO chronopost_home_delivery_area_freeshipping (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case 'ID': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case 'AREA_ID': + $stmt->bindValue($identifier, $this->area_id, PDO::PARAM_INT); + break; + case 'DELIVERY_MODE_ID': + $stmt->bindValue($identifier, $this->delivery_mode_id, PDO::PARAM_INT); + break; + case 'CART_AMOUNT': + $stmt->bindValue($identifier, $this->cart_amount, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), 0, $e); + } + + try { + $pk = $con->lastInsertId(); + } catch (Exception $e) { + throw new PropelException('Unable to get autoincrement id.', 0, $e); + } + $this->setId($pk); + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param ConnectionInterface $con + * + * @return Integer Number of updated rows + * @see doSave() + */ + protected function doUpdate(ConnectionInterface $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + + return $selectCriteria->doUpdate($valuesCriteria, $con); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return mixed Value of field. + */ + public function getByName($name, $type = TableMap::TYPE_PHPNAME) + { + $pos = ChronopostHomeDeliveryAreaFreeshippingTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getAreaId(); + break; + case 2: + return $this->getDeliveryModeId(); + break; + case 3: + return $this->getCartAmount(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['ChronopostHomeDeliveryAreaFreeshipping'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['ChronopostHomeDeliveryAreaFreeshipping'][$this->getPrimaryKey()] = true; + $keys = ChronopostHomeDeliveryAreaFreeshippingTableMap::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getAreaId(), + $keys[2] => $this->getDeliveryModeId(), + $keys[3] => $this->getCartAmount(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aArea) { + $result['Area'] = $this->aArea->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aChronopostHomeDeliveryDeliveryMode) { + $result['ChronopostHomeDeliveryDeliveryMode'] = $this->aChronopostHomeDeliveryDeliveryMode->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return void + */ + public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME) + { + $pos = ChronopostHomeDeliveryAreaFreeshippingTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + + return $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setAreaId($value); + break; + case 2: + $this->setDeliveryModeId($value); + break; + case 3: + $this->setCartAmount($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * The default key type is the column's TableMap::TYPE_PHPNAME. + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME) + { + $keys = ChronopostHomeDeliveryAreaFreeshippingTableMap::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setAreaId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDeliveryModeId($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setCartAmount($arr[$keys[3]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + + if ($this->isColumnModified(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID)) $criteria->add(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, $this->id); + if ($this->isColumnModified(ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID)) $criteria->add(ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID, $this->area_id); + if ($this->isColumnModified(ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID)) $criteria->add(ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID, $this->delivery_mode_id); + if ($this->isColumnModified(ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT)) $criteria->add(ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT, $this->cart_amount); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + $criteria->add(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setAreaId($this->getAreaId()); + $copyObj->setDeliveryModeId($this->getDeliveryModeId()); + $copyObj->setCartAmount($this->getCartAmount()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Declares an association between this object and a ChildArea object. + * + * @param ChildArea $v + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping The current object (for fluent API support) + * @throws PropelException + */ + public function setArea(ChildArea $v = null) + { + if ($v === null) { + $this->setAreaId(NULL); + } else { + $this->setAreaId($v->getId()); + } + + $this->aArea = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildArea object, it will not be re-added. + if ($v !== null) { + $v->addChronopostHomeDeliveryAreaFreeshipping($this); + } + + + return $this; + } + + + /** + * Get the associated ChildArea object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildArea The associated ChildArea object. + * @throws PropelException + */ + public function getArea(ConnectionInterface $con = null) + { + if ($this->aArea === null && ($this->area_id !== null)) { + $this->aArea = AreaQuery::create()->findPk($this->area_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aArea->addChronopostHomeDeliveryAreaFreeshippings($this); + */ + } + + return $this->aArea; + } + + /** + * Declares an association between this object and a ChildChronopostHomeDeliveryDeliveryMode object. + * + * @param ChildChronopostHomeDeliveryDeliveryMode $v + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping The current object (for fluent API support) + * @throws PropelException + */ + public function setChronopostHomeDeliveryDeliveryMode(ChildChronopostHomeDeliveryDeliveryMode $v = null) + { + if ($v === null) { + $this->setDeliveryModeId(NULL); + } else { + $this->setDeliveryModeId($v->getId()); + } + + $this->aChronopostHomeDeliveryDeliveryMode = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildChronopostHomeDeliveryDeliveryMode object, it will not be re-added. + if ($v !== null) { + $v->addChronopostHomeDeliveryAreaFreeshipping($this); + } + + + return $this; + } + + + /** + * Get the associated ChildChronopostHomeDeliveryDeliveryMode object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildChronopostHomeDeliveryDeliveryMode The associated ChildChronopostHomeDeliveryDeliveryMode object. + * @throws PropelException + */ + public function getChronopostHomeDeliveryDeliveryMode(ConnectionInterface $con = null) + { + if ($this->aChronopostHomeDeliveryDeliveryMode === null && ($this->delivery_mode_id !== null)) { + $this->aChronopostHomeDeliveryDeliveryMode = ChildChronopostHomeDeliveryDeliveryModeQuery::create()->findPk($this->delivery_mode_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aChronopostHomeDeliveryDeliveryMode->addChronopostHomeDeliveryAreaFreeshippings($this); + */ + } + + return $this->aChronopostHomeDeliveryDeliveryMode; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->area_id = null; + $this->delivery_mode_id = null; + $this->cart_amount = null; + $this->alreadyInSave = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep) { + } // if ($deep) + + $this->aArea = null; + $this->aChronopostHomeDeliveryDeliveryMode = null; + } + + /** + * Return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(ChronopostHomeDeliveryAreaFreeshippingTableMap::DEFAULT_STRING_FORMAT); + } + + /** + * Code to be run before persisting the object + * @param ConnectionInterface $con + * @return boolean + */ + public function preSave(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after persisting the object + * @param ConnectionInterface $con + */ + public function postSave(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before inserting to database + * @param ConnectionInterface $con + * @return boolean + */ + public function preInsert(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after inserting to database + * @param ConnectionInterface $con + */ + public function postInsert(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before updating the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preUpdate(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after updating the object in database + * @param ConnectionInterface $con + */ + public function postUpdate(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before deleting the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preDelete(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after deleting the object in database + * @param ConnectionInterface $con + */ + public function postDelete(ConnectionInterface $con = null) + { + + } + + + /** + * Derived method to catches calls to undefined methods. + * + * Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.). + * Allows to define default __call() behavior if you overwrite __call() + * + * @param string $name + * @param mixed $params + * + * @return array|string + */ + public function __call($name, $params) + { + if (0 === strpos($name, 'get')) { + $virtualColumn = substr($name, 3); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + + $virtualColumn = lcfirst($virtualColumn); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + } + + if (0 === strpos($name, 'from')) { + $format = substr($name, 4); + + return $this->importFrom($format, reset($params)); + } + + if (0 === strpos($name, 'to')) { + $format = substr($name, 2); + $includeLazyLoadColumns = isset($params[0]) ? $params[0] : true; + + return $this->exportTo($format, $includeLazyLoadColumns); + } + + throw new BadMethodCallException(sprintf('Call to undefined method: %s.', $name)); + } + +} diff --git a/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryAreaFreeshippingQuery.php b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryAreaFreeshippingQuery.php new file mode 100644 index 00000000..888e4371 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryAreaFreeshippingQuery.php @@ -0,0 +1,645 @@ +setModelAlias($modelAlias); + } + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ChildChronopostHomeDeliveryAreaFreeshipping|array|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = ChronopostHomeDeliveryAreaFreeshippingTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildChronopostHomeDeliveryAreaFreeshipping A model object, or null if the key is not found + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT ID, AREA_ID, DELIVERY_MODE_ID, CART_AMOUNT FROM chronopost_home_delivery_area_freeshipping WHERE ID = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e); + } + $obj = null; + if ($row = $stmt->fetch(\PDO::FETCH_NUM)) { + $obj = new ChildChronopostHomeDeliveryAreaFreeshipping(); + $obj->hydrate($row); + ChronopostHomeDeliveryAreaFreeshippingTableMap::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildChronopostHomeDeliveryAreaFreeshipping|array|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($dataFetcher); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id > 12 + * + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, $id, $comparison); + } + + /** + * Filter the query on the area_id column + * + * Example usage: + * + * $query->filterByAreaId(1234); // WHERE area_id = 1234 + * $query->filterByAreaId(array(12, 34)); // WHERE area_id IN (12, 34) + * $query->filterByAreaId(array('min' => 12)); // WHERE area_id > 12 + * + * + * @see filterByArea() + * + * @param mixed $areaId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function filterByAreaId($areaId = null, $comparison = null) + { + if (is_array($areaId)) { + $useMinMax = false; + if (isset($areaId['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID, $areaId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($areaId['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID, $areaId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID, $areaId, $comparison); + } + + /** + * Filter the query on the delivery_mode_id column + * + * Example usage: + * + * $query->filterByDeliveryModeId(1234); // WHERE delivery_mode_id = 1234 + * $query->filterByDeliveryModeId(array(12, 34)); // WHERE delivery_mode_id IN (12, 34) + * $query->filterByDeliveryModeId(array('min' => 12)); // WHERE delivery_mode_id > 12 + * + * + * @see filterByChronopostHomeDeliveryDeliveryMode() + * + * @param mixed $deliveryModeId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function filterByDeliveryModeId($deliveryModeId = null, $comparison = null) + { + if (is_array($deliveryModeId)) { + $useMinMax = false; + if (isset($deliveryModeId['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID, $deliveryModeId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($deliveryModeId['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID, $deliveryModeId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID, $deliveryModeId, $comparison); + } + + /** + * Filter the query on the cart_amount column + * + * Example usage: + * + * $query->filterByCartAmount(1234); // WHERE cart_amount = 1234 + * $query->filterByCartAmount(array(12, 34)); // WHERE cart_amount IN (12, 34) + * $query->filterByCartAmount(array('min' => 12)); // WHERE cart_amount > 12 + * + * + * @param mixed $cartAmount The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function filterByCartAmount($cartAmount = null, $comparison = null) + { + if (is_array($cartAmount)) { + $useMinMax = false; + if (isset($cartAmount['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT, $cartAmount['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($cartAmount['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT, $cartAmount['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT, $cartAmount, $comparison); + } + + /** + * Filter the query by a related \ChronopostHomeDelivery\Model\Thelia\Model\Area object + * + * @param \ChronopostHomeDelivery\Model\Thelia\Model\Area|ObjectCollection $area The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function filterByArea($area, $comparison = null) + { + if ($area instanceof \ChronopostHomeDelivery\Model\Thelia\Model\Area) { + return $this + ->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID, $area->getId(), $comparison); + } elseif ($area instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID, $area->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByArea() only accepts arguments of type \ChronopostHomeDelivery\Model\Thelia\Model\Area or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the Area relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function joinArea($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('Area'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'Area'); + } + + return $this; + } + + /** + * Use the Area relation Area object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \ChronopostHomeDelivery\Model\Thelia\Model\AreaQuery A secondary query class using the current class as primary query + */ + public function useAreaQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinArea($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'Area', '\ChronopostHomeDelivery\Model\Thelia\Model\AreaQuery'); + } + + /** + * Filter the query by a related \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode object + * + * @param \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode|ObjectCollection $chronopostHomeDeliveryDeliveryMode The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function filterByChronopostHomeDeliveryDeliveryMode($chronopostHomeDeliveryDeliveryMode, $comparison = null) + { + if ($chronopostHomeDeliveryDeliveryMode instanceof \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode) { + return $this + ->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID, $chronopostHomeDeliveryDeliveryMode->getId(), $comparison); + } elseif ($chronopostHomeDeliveryDeliveryMode instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID, $chronopostHomeDeliveryDeliveryMode->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByChronopostHomeDeliveryDeliveryMode() only accepts arguments of type \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the ChronopostHomeDeliveryDeliveryMode relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function joinChronopostHomeDeliveryDeliveryMode($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('ChronopostHomeDeliveryDeliveryMode'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'ChronopostHomeDeliveryDeliveryMode'); + } + + return $this; + } + + /** + * Use the ChronopostHomeDeliveryDeliveryMode relation ChronopostHomeDeliveryDeliveryMode object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryModeQuery A secondary query class using the current class as primary query + */ + public function useChronopostHomeDeliveryDeliveryModeQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinChronopostHomeDeliveryDeliveryMode($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'ChronopostHomeDeliveryDeliveryMode', '\ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryModeQuery'); + } + + /** + * Exclude object from result + * + * @param ChildChronopostHomeDeliveryAreaFreeshipping $chronopostHomeDeliveryAreaFreeshipping Object to remove from the list of results + * + * @return ChildChronopostHomeDeliveryAreaFreeshippingQuery The current query, for fluid interface + */ + public function prune($chronopostHomeDeliveryAreaFreeshipping = null) + { + if ($chronopostHomeDeliveryAreaFreeshipping) { + $this->addUsingAlias(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, $chronopostHomeDeliveryAreaFreeshipping->getId(), Criteria::NOT_EQUAL); + } + + return $this; + } + + /** + * Deletes all rows from the chronopost_home_delivery_area_freeshipping table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public function doDeleteAll(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += parent::doDeleteAll($con); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + ChronopostHomeDeliveryAreaFreeshippingTableMap::clearInstancePool(); + ChronopostHomeDeliveryAreaFreeshippingTableMap::clearRelatedInstancePool(); + + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $affectedRows; + } + + /** + * Performs a DELETE on the database, given a ChildChronopostHomeDeliveryAreaFreeshipping or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChildChronopostHomeDeliveryAreaFreeshipping object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public function delete(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + } + + $criteria = $this; + + // Set the correct dbName + $criteria->setDbName(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + + ChronopostHomeDeliveryAreaFreeshippingTableMap::removeInstanceFromPool($criteria); + + $affectedRows += ModelCriteria::delete($con); + ChronopostHomeDeliveryAreaFreeshippingTableMap::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + } + +} // ChronopostHomeDeliveryAreaFreeshippingQuery diff --git a/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryDeliveryMode.php b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryDeliveryMode.php new file mode 100644 index 00000000..0f9f86b1 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryDeliveryMode.php @@ -0,0 +1,1906 @@ +modifiedColumns; + } + + /** + * Has specified column been modified? + * + * @param string $col column fully qualified name (TableMap::TYPE_COLNAME), e.g. Book::AUTHOR_ID + * @return boolean True if $col has been modified. + */ + public function isColumnModified($col) + { + return $this->modifiedColumns && isset($this->modifiedColumns[$col]); + } + + /** + * Get the columns that have been modified in this object. + * @return array A unique list of the modified column names for this object. + */ + public function getModifiedColumns() + { + return $this->modifiedColumns ? array_keys($this->modifiedColumns) : []; + } + + /** + * Returns whether the object has ever been saved. This will + * be false, if the object was retrieved from storage or was created + * and then saved. + * + * @return boolean true, if the object has never been persisted. + */ + public function isNew() + { + return $this->new; + } + + /** + * Setter for the isNew attribute. This method will be called + * by Propel-generated children and objects. + * + * @param boolean $b the state of the object. + */ + public function setNew($b) + { + $this->new = (Boolean) $b; + } + + /** + * Whether this object has been deleted. + * @return boolean The deleted state of this object. + */ + public function isDeleted() + { + return $this->deleted; + } + + /** + * Specify whether this object has been deleted. + * @param boolean $b The deleted state of this object. + * @return void + */ + public function setDeleted($b) + { + $this->deleted = (Boolean) $b; + } + + /** + * Sets the modified state for the object to be false. + * @param string $col If supplied, only the specified column is reset. + * @return void + */ + public function resetModified($col = null) + { + if (null !== $col) { + if (isset($this->modifiedColumns[$col])) { + unset($this->modifiedColumns[$col]); + } + } else { + $this->modifiedColumns = array(); + } + } + + /** + * Compares this with another ChronopostHomeDeliveryDeliveryMode instance. If + * obj is an instance of ChronopostHomeDeliveryDeliveryMode, delegates to + * equals(ChronopostHomeDeliveryDeliveryMode). Otherwise, returns false. + * + * @param mixed $obj The object to compare to. + * @return boolean Whether equal to the object specified. + */ + public function equals($obj) + { + $thisclazz = get_class($this); + if (!is_object($obj) || !($obj instanceof $thisclazz)) { + return false; + } + + if ($this === $obj) { + return true; + } + + if (null === $this->getPrimaryKey() + || null === $obj->getPrimaryKey()) { + return false; + } + + return $this->getPrimaryKey() === $obj->getPrimaryKey(); + } + + /** + * If the primary key is not null, return the hashcode of the + * primary key. Otherwise, return the hash code of the object. + * + * @return int Hashcode + */ + public function hashCode() + { + if (null !== $this->getPrimaryKey()) { + return crc32(serialize($this->getPrimaryKey())); + } + + return crc32(serialize(clone $this)); + } + + /** + * Get the associative array of the virtual columns in this object + * + * @return array + */ + public function getVirtualColumns() + { + return $this->virtualColumns; + } + + /** + * Checks the existence of a virtual column in this object + * + * @param string $name The virtual column name + * @return boolean + */ + public function hasVirtualColumn($name) + { + return array_key_exists($name, $this->virtualColumns); + } + + /** + * Get the value of a virtual column in this object + * + * @param string $name The virtual column name + * @return mixed + * + * @throws PropelException + */ + public function getVirtualColumn($name) + { + if (!$this->hasVirtualColumn($name)) { + throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name)); + } + + return $this->virtualColumns[$name]; + } + + /** + * Set the value of a virtual column in this object + * + * @param string $name The virtual column name + * @param mixed $value The value to give to the virtual column + * + * @return ChronopostHomeDeliveryDeliveryMode The current object, for fluid interface + */ + public function setVirtualColumn($name, $value) + { + $this->virtualColumns[$name] = $value; + + return $this; + } + + /** + * Logs a message using Propel::log(). + * + * @param string $msg + * @param int $priority One of the Propel::LOG_* logging levels + * @return boolean + */ + protected function log($msg, $priority = Propel::LOG_INFO) + { + return Propel::log(get_class($this) . ': ' . $msg, $priority); + } + + /** + * Populate the current object from a string, using a given parser format + * + * $book = new Book(); + * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, + * or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param string $data The source data to import from + * + * @return ChronopostHomeDeliveryDeliveryMode The current object, for fluid interface + */ + public function importFrom($parser, $data) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + $this->fromArray($parser->toArray($data), TableMap::TYPE_PHPNAME); + + return $this; + } + + /** + * Export the current object properties to a string, using a given parser format + * + * $book = BookQuery::create()->findPk(9012); + * echo $book->exportTo('JSON'); + * => {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE. + * @return string The exported data + */ + public function exportTo($parser, $includeLazyLoadColumns = true) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $parser->fromArray($this->toArray(TableMap::TYPE_PHPNAME, $includeLazyLoadColumns, array(), true)); + } + + /** + * Clean up internal collections prior to serializing + * Avoids recursive loops that turn into segmentation faults when serializing + */ + public function __sleep() + { + $this->clearAllReferences(); + + return array_keys(get_object_vars($this)); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [title] column value. + * + * @return string + */ + public function getTitle() + { + + return $this->title; + } + + /** + * Get the [code] column value. + * + * @return string + */ + public function getCode() + { + + return $this->code; + } + + /** + * Get the [freeshipping_active] column value. + * + * @return boolean + */ + public function getFreeshippingActive() + { + + return $this->freeshipping_active; + } + + /** + * Get the [freeshipping_from] column value. + * + * @return double + */ + public function getFreeshippingFrom() + { + + return $this->freeshipping_from; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[ChronopostHomeDeliveryDeliveryModeTableMap::ID] = true; + } + + + return $this; + } // setId() + + /** + * Set the value of [title] column. + * + * @param string $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function setTitle($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->title !== $v) { + $this->title = $v; + $this->modifiedColumns[ChronopostHomeDeliveryDeliveryModeTableMap::TITLE] = true; + } + + + return $this; + } // setTitle() + + /** + * Set the value of [code] column. + * + * @param string $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function setCode($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->code !== $v) { + $this->code = $v; + $this->modifiedColumns[ChronopostHomeDeliveryDeliveryModeTableMap::CODE] = true; + } + + + return $this; + } // setCode() + + /** + * Sets the value of the [freeshipping_active] column. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * + * @param boolean|integer|string $v The new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function setFreeshippingActive($v) + { + if ($v !== null) { + if (is_string($v)) { + $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } else { + $v = (boolean) $v; + } + } + + if ($this->freeshipping_active !== $v) { + $this->freeshipping_active = $v; + $this->modifiedColumns[ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_ACTIVE] = true; + } + + + return $this; + } // setFreeshippingActive() + + /** + * Set the value of [freeshipping_from] column. + * + * @param double $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function setFreeshippingFrom($v) + { + if ($v !== null) { + $v = (double) $v; + } + + if ($this->freeshipping_from !== $v) { + $this->freeshipping_from = $v; + $this->modifiedColumns[ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM] = true; + } + + + return $this; + } // setFreeshippingFrom() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return TRUE + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by DataFetcher->fetch(). + * @param int $startcol 0-based offset column which indicates which restultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) + { + try { + + + $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : ChronopostHomeDeliveryDeliveryModeTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + $this->id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ChronopostHomeDeliveryDeliveryModeTableMap::translateFieldName('Title', TableMap::TYPE_PHPNAME, $indexType)]; + $this->title = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ChronopostHomeDeliveryDeliveryModeTableMap::translateFieldName('Code', TableMap::TYPE_PHPNAME, $indexType)]; + $this->code = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ChronopostHomeDeliveryDeliveryModeTableMap::translateFieldName('FreeshippingActive', TableMap::TYPE_PHPNAME, $indexType)]; + $this->freeshipping_active = (null !== $col) ? (boolean) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : ChronopostHomeDeliveryDeliveryModeTableMap::translateFieldName('FreeshippingFrom', TableMap::TYPE_PHPNAME, $indexType)]; + $this->freeshipping_from = (null !== $col) ? (double) $col : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + + return $startcol + 5; // 5 = ChronopostHomeDeliveryDeliveryModeTableMap::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode object", 0, $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param ConnectionInterface $con (optional) The ConnectionInterface connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $dataFetcher = ChildChronopostHomeDeliveryDeliveryModeQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); + $row = $dataFetcher->fetch(); + $dataFetcher->close(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->collChronopostHomeDeliveryPrices = null; + + $this->collChronopostHomeDeliveryAreaFreeshippings = null; + + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param ConnectionInterface $con + * @return void + * @throws PropelException + * @see ChronopostHomeDeliveryDeliveryMode::setDeleted() + * @see ChronopostHomeDeliveryDeliveryMode::isDeleted() + */ + public function delete(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + try { + $deleteQuery = ChildChronopostHomeDeliveryDeliveryModeQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see doSave() + */ + public function save(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + ChronopostHomeDeliveryDeliveryModeTableMap::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(ConnectionInterface $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + if ($this->chronopostHomeDeliveryPricesScheduledForDeletion !== null) { + if (!$this->chronopostHomeDeliveryPricesScheduledForDeletion->isEmpty()) { + \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPriceQuery::create() + ->filterByPrimaryKeys($this->chronopostHomeDeliveryPricesScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->chronopostHomeDeliveryPricesScheduledForDeletion = null; + } + } + + if ($this->collChronopostHomeDeliveryPrices !== null) { + foreach ($this->collChronopostHomeDeliveryPrices as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->chronopostHomeDeliveryAreaFreeshippingsScheduledForDeletion !== null) { + if (!$this->chronopostHomeDeliveryAreaFreeshippingsScheduledForDeletion->isEmpty()) { + \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshippingQuery::create() + ->filterByPrimaryKeys($this->chronopostHomeDeliveryAreaFreeshippingsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->chronopostHomeDeliveryAreaFreeshippingsScheduledForDeletion = null; + } + } + + if ($this->collChronopostHomeDeliveryAreaFreeshippings !== null) { + foreach ($this->collChronopostHomeDeliveryAreaFreeshippings as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param ConnectionInterface $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(ConnectionInterface $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[ChronopostHomeDeliveryDeliveryModeTableMap::ID] = true; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . ChronopostHomeDeliveryDeliveryModeTableMap::ID . ')'); + } + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::ID)) { + $modifiedColumns[':p' . $index++] = 'ID'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::TITLE)) { + $modifiedColumns[':p' . $index++] = 'TITLE'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::CODE)) { + $modifiedColumns[':p' . $index++] = 'CODE'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_ACTIVE)) { + $modifiedColumns[':p' . $index++] = 'FREESHIPPING_ACTIVE'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM)) { + $modifiedColumns[':p' . $index++] = 'FREESHIPPING_FROM'; + } + + $sql = sprintf( + 'INSERT INTO chronopost_home_delivery_delivery_mode (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case 'ID': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case 'TITLE': + $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); + break; + case 'CODE': + $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); + break; + case 'FREESHIPPING_ACTIVE': + $stmt->bindValue($identifier, (int) $this->freeshipping_active, PDO::PARAM_INT); + break; + case 'FREESHIPPING_FROM': + $stmt->bindValue($identifier, $this->freeshipping_from, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), 0, $e); + } + + try { + $pk = $con->lastInsertId(); + } catch (Exception $e) { + throw new PropelException('Unable to get autoincrement id.', 0, $e); + } + $this->setId($pk); + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param ConnectionInterface $con + * + * @return Integer Number of updated rows + * @see doSave() + */ + protected function doUpdate(ConnectionInterface $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + + return $selectCriteria->doUpdate($valuesCriteria, $con); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return mixed Value of field. + */ + public function getByName($name, $type = TableMap::TYPE_PHPNAME) + { + $pos = ChronopostHomeDeliveryDeliveryModeTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getTitle(); + break; + case 2: + return $this->getCode(); + break; + case 3: + return $this->getFreeshippingActive(); + break; + case 4: + return $this->getFreeshippingFrom(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['ChronopostHomeDeliveryDeliveryMode'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['ChronopostHomeDeliveryDeliveryMode'][$this->getPrimaryKey()] = true; + $keys = ChronopostHomeDeliveryDeliveryModeTableMap::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getTitle(), + $keys[2] => $this->getCode(), + $keys[3] => $this->getFreeshippingActive(), + $keys[4] => $this->getFreeshippingFrom(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->collChronopostHomeDeliveryPrices) { + $result['ChronopostHomeDeliveryPrices'] = $this->collChronopostHomeDeliveryPrices->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collChronopostHomeDeliveryAreaFreeshippings) { + $result['ChronopostHomeDeliveryAreaFreeshippings'] = $this->collChronopostHomeDeliveryAreaFreeshippings->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return void + */ + public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME) + { + $pos = ChronopostHomeDeliveryDeliveryModeTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + + return $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setTitle($value); + break; + case 2: + $this->setCode($value); + break; + case 3: + $this->setFreeshippingActive($value); + break; + case 4: + $this->setFreeshippingFrom($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * The default key type is the column's TableMap::TYPE_PHPNAME. + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME) + { + $keys = ChronopostHomeDeliveryDeliveryModeTableMap::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setTitle($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setCode($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setFreeshippingActive($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setFreeshippingFrom($arr[$keys[4]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::ID)) $criteria->add(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $this->id); + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::TITLE)) $criteria->add(ChronopostHomeDeliveryDeliveryModeTableMap::TITLE, $this->title); + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::CODE)) $criteria->add(ChronopostHomeDeliveryDeliveryModeTableMap::CODE, $this->code); + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_ACTIVE)) $criteria->add(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_ACTIVE, $this->freeshipping_active); + if ($this->isColumnModified(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM)) $criteria->add(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM, $this->freeshipping_from); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + $criteria->add(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setTitle($this->getTitle()); + $copyObj->setCode($this->getCode()); + $copyObj->setFreeshippingActive($this->getFreeshippingActive()); + $copyObj->setFreeshippingFrom($this->getFreeshippingFrom()); + + if ($deepCopy) { + // important: temporarily setNew(false) because this affects the behavior of + // the getter/setter methods for fkey referrer objects. + $copyObj->setNew(false); + + foreach ($this->getChronopostHomeDeliveryPrices() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addChronopostHomeDeliveryPrice($relObj->copy($deepCopy)); + } + } + + foreach ($this->getChronopostHomeDeliveryAreaFreeshippings() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addChronopostHomeDeliveryAreaFreeshipping($relObj->copy($deepCopy)); + } + } + + } // if ($deepCopy) + + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + + /** + * Initializes a collection based on the name of a relation. + * Avoids crafting an 'init[$relationName]s' method name + * that wouldn't work when StandardEnglishPluralizer is used. + * + * @param string $relationName The name of the relation to initialize + * @return void + */ + public function initRelation($relationName) + { + if ('ChronopostHomeDeliveryPrice' == $relationName) { + return $this->initChronopostHomeDeliveryPrices(); + } + if ('ChronopostHomeDeliveryAreaFreeshipping' == $relationName) { + return $this->initChronopostHomeDeliveryAreaFreeshippings(); + } + } + + /** + * Clears out the collChronopostHomeDeliveryPrices collection + * + * This does not modify the database; however, it will remove any associated objects, causing + * them to be refetched by subsequent calls to accessor method. + * + * @return void + * @see addChronopostHomeDeliveryPrices() + */ + public function clearChronopostHomeDeliveryPrices() + { + $this->collChronopostHomeDeliveryPrices = null; // important to set this to NULL since that means it is uninitialized + } + + /** + * Reset is the collChronopostHomeDeliveryPrices collection loaded partially. + */ + public function resetPartialChronopostHomeDeliveryPrices($v = true) + { + $this->collChronopostHomeDeliveryPricesPartial = $v; + } + + /** + * Initializes the collChronopostHomeDeliveryPrices collection. + * + * By default this just sets the collChronopostHomeDeliveryPrices collection to an empty array (like clearcollChronopostHomeDeliveryPrices()); + * however, you may wish to override this method in your stub class to provide setting appropriate + * to your application -- for example, setting the initial array to the values stored in database. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initChronopostHomeDeliveryPrices($overrideExisting = true) + { + if (null !== $this->collChronopostHomeDeliveryPrices && !$overrideExisting) { + return; + } + $this->collChronopostHomeDeliveryPrices = new ObjectCollection(); + $this->collChronopostHomeDeliveryPrices->setModel('\ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice'); + } + + /** + * Gets an array of ChildChronopostHomeDeliveryPrice objects which contain a foreign key that references this object. + * + * If the $criteria is not null, it is used to always fetch the results from the database. + * Otherwise the results are fetched from the database the first time, then cached. + * Next time the same method is called without $criteria, the cached collection is returned. + * If this ChildChronopostHomeDeliveryDeliveryMode is new, it will return + * an empty collection or the current collection; the criteria is ignored on a new object. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @return Collection|ChildChronopostHomeDeliveryPrice[] List of ChildChronopostHomeDeliveryPrice objects + * @throws PropelException + */ + public function getChronopostHomeDeliveryPrices($criteria = null, ConnectionInterface $con = null) + { + $partial = $this->collChronopostHomeDeliveryPricesPartial && !$this->isNew(); + if (null === $this->collChronopostHomeDeliveryPrices || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collChronopostHomeDeliveryPrices) { + // return empty collection + $this->initChronopostHomeDeliveryPrices(); + } else { + $collChronopostHomeDeliveryPrices = ChildChronopostHomeDeliveryPriceQuery::create(null, $criteria) + ->filterByChronopostHomeDeliveryDeliveryMode($this) + ->find($con); + + if (null !== $criteria) { + if (false !== $this->collChronopostHomeDeliveryPricesPartial && count($collChronopostHomeDeliveryPrices)) { + $this->initChronopostHomeDeliveryPrices(false); + + foreach ($collChronopostHomeDeliveryPrices as $obj) { + if (false == $this->collChronopostHomeDeliveryPrices->contains($obj)) { + $this->collChronopostHomeDeliveryPrices->append($obj); + } + } + + $this->collChronopostHomeDeliveryPricesPartial = true; + } + + reset($collChronopostHomeDeliveryPrices); + + return $collChronopostHomeDeliveryPrices; + } + + if ($partial && $this->collChronopostHomeDeliveryPrices) { + foreach ($this->collChronopostHomeDeliveryPrices as $obj) { + if ($obj->isNew()) { + $collChronopostHomeDeliveryPrices[] = $obj; + } + } + } + + $this->collChronopostHomeDeliveryPrices = $collChronopostHomeDeliveryPrices; + $this->collChronopostHomeDeliveryPricesPartial = false; + } + } + + return $this->collChronopostHomeDeliveryPrices; + } + + /** + * Sets a collection of ChronopostHomeDeliveryPrice objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param Collection $chronopostHomeDeliveryPrices A Propel collection. + * @param ConnectionInterface $con Optional connection object + * @return ChildChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function setChronopostHomeDeliveryPrices(Collection $chronopostHomeDeliveryPrices, ConnectionInterface $con = null) + { + $chronopostHomeDeliveryPricesToDelete = $this->getChronopostHomeDeliveryPrices(new Criteria(), $con)->diff($chronopostHomeDeliveryPrices); + + + $this->chronopostHomeDeliveryPricesScheduledForDeletion = $chronopostHomeDeliveryPricesToDelete; + + foreach ($chronopostHomeDeliveryPricesToDelete as $chronopostHomeDeliveryPriceRemoved) { + $chronopostHomeDeliveryPriceRemoved->setChronopostHomeDeliveryDeliveryMode(null); + } + + $this->collChronopostHomeDeliveryPrices = null; + foreach ($chronopostHomeDeliveryPrices as $chronopostHomeDeliveryPrice) { + $this->addChronopostHomeDeliveryPrice($chronopostHomeDeliveryPrice); + } + + $this->collChronopostHomeDeliveryPrices = $chronopostHomeDeliveryPrices; + $this->collChronopostHomeDeliveryPricesPartial = false; + + return $this; + } + + /** + * Returns the number of related ChronopostHomeDeliveryPrice objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param ConnectionInterface $con + * @return int Count of related ChronopostHomeDeliveryPrice objects. + * @throws PropelException + */ + public function countChronopostHomeDeliveryPrices(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) + { + $partial = $this->collChronopostHomeDeliveryPricesPartial && !$this->isNew(); + if (null === $this->collChronopostHomeDeliveryPrices || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collChronopostHomeDeliveryPrices) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getChronopostHomeDeliveryPrices()); + } + + $query = ChildChronopostHomeDeliveryPriceQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByChronopostHomeDeliveryDeliveryMode($this) + ->count($con); + } + + return count($this->collChronopostHomeDeliveryPrices); + } + + /** + * Method called to associate a ChildChronopostHomeDeliveryPrice object to this object + * through the ChildChronopostHomeDeliveryPrice foreign key attribute. + * + * @param ChildChronopostHomeDeliveryPrice $l ChildChronopostHomeDeliveryPrice + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function addChronopostHomeDeliveryPrice(ChildChronopostHomeDeliveryPrice $l) + { + if ($this->collChronopostHomeDeliveryPrices === null) { + $this->initChronopostHomeDeliveryPrices(); + $this->collChronopostHomeDeliveryPricesPartial = true; + } + + if (!in_array($l, $this->collChronopostHomeDeliveryPrices->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddChronopostHomeDeliveryPrice($l); + } + + return $this; + } + + /** + * @param ChronopostHomeDeliveryPrice $chronopostHomeDeliveryPrice The chronopostHomeDeliveryPrice object to add. + */ + protected function doAddChronopostHomeDeliveryPrice($chronopostHomeDeliveryPrice) + { + $this->collChronopostHomeDeliveryPrices[]= $chronopostHomeDeliveryPrice; + $chronopostHomeDeliveryPrice->setChronopostHomeDeliveryDeliveryMode($this); + } + + /** + * @param ChronopostHomeDeliveryPrice $chronopostHomeDeliveryPrice The chronopostHomeDeliveryPrice object to remove. + * @return ChildChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function removeChronopostHomeDeliveryPrice($chronopostHomeDeliveryPrice) + { + if ($this->getChronopostHomeDeliveryPrices()->contains($chronopostHomeDeliveryPrice)) { + $this->collChronopostHomeDeliveryPrices->remove($this->collChronopostHomeDeliveryPrices->search($chronopostHomeDeliveryPrice)); + if (null === $this->chronopostHomeDeliveryPricesScheduledForDeletion) { + $this->chronopostHomeDeliveryPricesScheduledForDeletion = clone $this->collChronopostHomeDeliveryPrices; + $this->chronopostHomeDeliveryPricesScheduledForDeletion->clear(); + } + $this->chronopostHomeDeliveryPricesScheduledForDeletion[]= clone $chronopostHomeDeliveryPrice; + $chronopostHomeDeliveryPrice->setChronopostHomeDeliveryDeliveryMode(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this ChronopostHomeDeliveryDeliveryMode is new, it will return + * an empty collection; or if this ChronopostHomeDeliveryDeliveryMode has previously + * been saved, it will retrieve related ChronopostHomeDeliveryPrices from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in ChronopostHomeDeliveryDeliveryMode. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return Collection|ChildChronopostHomeDeliveryPrice[] List of ChildChronopostHomeDeliveryPrice objects + */ + public function getChronopostHomeDeliveryPricesJoinArea($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) + { + $query = ChildChronopostHomeDeliveryPriceQuery::create(null, $criteria); + $query->joinWith('Area', $joinBehavior); + + return $this->getChronopostHomeDeliveryPrices($query, $con); + } + + /** + * Clears out the collChronopostHomeDeliveryAreaFreeshippings collection + * + * This does not modify the database; however, it will remove any associated objects, causing + * them to be refetched by subsequent calls to accessor method. + * + * @return void + * @see addChronopostHomeDeliveryAreaFreeshippings() + */ + public function clearChronopostHomeDeliveryAreaFreeshippings() + { + $this->collChronopostHomeDeliveryAreaFreeshippings = null; // important to set this to NULL since that means it is uninitialized + } + + /** + * Reset is the collChronopostHomeDeliveryAreaFreeshippings collection loaded partially. + */ + public function resetPartialChronopostHomeDeliveryAreaFreeshippings($v = true) + { + $this->collChronopostHomeDeliveryAreaFreeshippingsPartial = $v; + } + + /** + * Initializes the collChronopostHomeDeliveryAreaFreeshippings collection. + * + * By default this just sets the collChronopostHomeDeliveryAreaFreeshippings collection to an empty array (like clearcollChronopostHomeDeliveryAreaFreeshippings()); + * however, you may wish to override this method in your stub class to provide setting appropriate + * to your application -- for example, setting the initial array to the values stored in database. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initChronopostHomeDeliveryAreaFreeshippings($overrideExisting = true) + { + if (null !== $this->collChronopostHomeDeliveryAreaFreeshippings && !$overrideExisting) { + return; + } + $this->collChronopostHomeDeliveryAreaFreeshippings = new ObjectCollection(); + $this->collChronopostHomeDeliveryAreaFreeshippings->setModel('\ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping'); + } + + /** + * Gets an array of ChildChronopostHomeDeliveryAreaFreeshipping objects which contain a foreign key that references this object. + * + * If the $criteria is not null, it is used to always fetch the results from the database. + * Otherwise the results are fetched from the database the first time, then cached. + * Next time the same method is called without $criteria, the cached collection is returned. + * If this ChildChronopostHomeDeliveryDeliveryMode is new, it will return + * an empty collection or the current collection; the criteria is ignored on a new object. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @return Collection|ChildChronopostHomeDeliveryAreaFreeshipping[] List of ChildChronopostHomeDeliveryAreaFreeshipping objects + * @throws PropelException + */ + public function getChronopostHomeDeliveryAreaFreeshippings($criteria = null, ConnectionInterface $con = null) + { + $partial = $this->collChronopostHomeDeliveryAreaFreeshippingsPartial && !$this->isNew(); + if (null === $this->collChronopostHomeDeliveryAreaFreeshippings || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collChronopostHomeDeliveryAreaFreeshippings) { + // return empty collection + $this->initChronopostHomeDeliveryAreaFreeshippings(); + } else { + $collChronopostHomeDeliveryAreaFreeshippings = ChildChronopostHomeDeliveryAreaFreeshippingQuery::create(null, $criteria) + ->filterByChronopostHomeDeliveryDeliveryMode($this) + ->find($con); + + if (null !== $criteria) { + if (false !== $this->collChronopostHomeDeliveryAreaFreeshippingsPartial && count($collChronopostHomeDeliveryAreaFreeshippings)) { + $this->initChronopostHomeDeliveryAreaFreeshippings(false); + + foreach ($collChronopostHomeDeliveryAreaFreeshippings as $obj) { + if (false == $this->collChronopostHomeDeliveryAreaFreeshippings->contains($obj)) { + $this->collChronopostHomeDeliveryAreaFreeshippings->append($obj); + } + } + + $this->collChronopostHomeDeliveryAreaFreeshippingsPartial = true; + } + + reset($collChronopostHomeDeliveryAreaFreeshippings); + + return $collChronopostHomeDeliveryAreaFreeshippings; + } + + if ($partial && $this->collChronopostHomeDeliveryAreaFreeshippings) { + foreach ($this->collChronopostHomeDeliveryAreaFreeshippings as $obj) { + if ($obj->isNew()) { + $collChronopostHomeDeliveryAreaFreeshippings[] = $obj; + } + } + } + + $this->collChronopostHomeDeliveryAreaFreeshippings = $collChronopostHomeDeliveryAreaFreeshippings; + $this->collChronopostHomeDeliveryAreaFreeshippingsPartial = false; + } + } + + return $this->collChronopostHomeDeliveryAreaFreeshippings; + } + + /** + * Sets a collection of ChronopostHomeDeliveryAreaFreeshipping objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param Collection $chronopostHomeDeliveryAreaFreeshippings A Propel collection. + * @param ConnectionInterface $con Optional connection object + * @return ChildChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function setChronopostHomeDeliveryAreaFreeshippings(Collection $chronopostHomeDeliveryAreaFreeshippings, ConnectionInterface $con = null) + { + $chronopostHomeDeliveryAreaFreeshippingsToDelete = $this->getChronopostHomeDeliveryAreaFreeshippings(new Criteria(), $con)->diff($chronopostHomeDeliveryAreaFreeshippings); + + + $this->chronopostHomeDeliveryAreaFreeshippingsScheduledForDeletion = $chronopostHomeDeliveryAreaFreeshippingsToDelete; + + foreach ($chronopostHomeDeliveryAreaFreeshippingsToDelete as $chronopostHomeDeliveryAreaFreeshippingRemoved) { + $chronopostHomeDeliveryAreaFreeshippingRemoved->setChronopostHomeDeliveryDeliveryMode(null); + } + + $this->collChronopostHomeDeliveryAreaFreeshippings = null; + foreach ($chronopostHomeDeliveryAreaFreeshippings as $chronopostHomeDeliveryAreaFreeshipping) { + $this->addChronopostHomeDeliveryAreaFreeshipping($chronopostHomeDeliveryAreaFreeshipping); + } + + $this->collChronopostHomeDeliveryAreaFreeshippings = $chronopostHomeDeliveryAreaFreeshippings; + $this->collChronopostHomeDeliveryAreaFreeshippingsPartial = false; + + return $this; + } + + /** + * Returns the number of related ChronopostHomeDeliveryAreaFreeshipping objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param ConnectionInterface $con + * @return int Count of related ChronopostHomeDeliveryAreaFreeshipping objects. + * @throws PropelException + */ + public function countChronopostHomeDeliveryAreaFreeshippings(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) + { + $partial = $this->collChronopostHomeDeliveryAreaFreeshippingsPartial && !$this->isNew(); + if (null === $this->collChronopostHomeDeliveryAreaFreeshippings || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collChronopostHomeDeliveryAreaFreeshippings) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getChronopostHomeDeliveryAreaFreeshippings()); + } + + $query = ChildChronopostHomeDeliveryAreaFreeshippingQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByChronopostHomeDeliveryDeliveryMode($this) + ->count($con); + } + + return count($this->collChronopostHomeDeliveryAreaFreeshippings); + } + + /** + * Method called to associate a ChildChronopostHomeDeliveryAreaFreeshipping object to this object + * through the ChildChronopostHomeDeliveryAreaFreeshipping foreign key attribute. + * + * @param ChildChronopostHomeDeliveryAreaFreeshipping $l ChildChronopostHomeDeliveryAreaFreeshipping + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function addChronopostHomeDeliveryAreaFreeshipping(ChildChronopostHomeDeliveryAreaFreeshipping $l) + { + if ($this->collChronopostHomeDeliveryAreaFreeshippings === null) { + $this->initChronopostHomeDeliveryAreaFreeshippings(); + $this->collChronopostHomeDeliveryAreaFreeshippingsPartial = true; + } + + if (!in_array($l, $this->collChronopostHomeDeliveryAreaFreeshippings->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddChronopostHomeDeliveryAreaFreeshipping($l); + } + + return $this; + } + + /** + * @param ChronopostHomeDeliveryAreaFreeshipping $chronopostHomeDeliveryAreaFreeshipping The chronopostHomeDeliveryAreaFreeshipping object to add. + */ + protected function doAddChronopostHomeDeliveryAreaFreeshipping($chronopostHomeDeliveryAreaFreeshipping) + { + $this->collChronopostHomeDeliveryAreaFreeshippings[]= $chronopostHomeDeliveryAreaFreeshipping; + $chronopostHomeDeliveryAreaFreeshipping->setChronopostHomeDeliveryDeliveryMode($this); + } + + /** + * @param ChronopostHomeDeliveryAreaFreeshipping $chronopostHomeDeliveryAreaFreeshipping The chronopostHomeDeliveryAreaFreeshipping object to remove. + * @return ChildChronopostHomeDeliveryDeliveryMode The current object (for fluent API support) + */ + public function removeChronopostHomeDeliveryAreaFreeshipping($chronopostHomeDeliveryAreaFreeshipping) + { + if ($this->getChronopostHomeDeliveryAreaFreeshippings()->contains($chronopostHomeDeliveryAreaFreeshipping)) { + $this->collChronopostHomeDeliveryAreaFreeshippings->remove($this->collChronopostHomeDeliveryAreaFreeshippings->search($chronopostHomeDeliveryAreaFreeshipping)); + if (null === $this->chronopostHomeDeliveryAreaFreeshippingsScheduledForDeletion) { + $this->chronopostHomeDeliveryAreaFreeshippingsScheduledForDeletion = clone $this->collChronopostHomeDeliveryAreaFreeshippings; + $this->chronopostHomeDeliveryAreaFreeshippingsScheduledForDeletion->clear(); + } + $this->chronopostHomeDeliveryAreaFreeshippingsScheduledForDeletion[]= clone $chronopostHomeDeliveryAreaFreeshipping; + $chronopostHomeDeliveryAreaFreeshipping->setChronopostHomeDeliveryDeliveryMode(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this ChronopostHomeDeliveryDeliveryMode is new, it will return + * an empty collection; or if this ChronopostHomeDeliveryDeliveryMode has previously + * been saved, it will retrieve related ChronopostHomeDeliveryAreaFreeshippings from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in ChronopostHomeDeliveryDeliveryMode. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return Collection|ChildChronopostHomeDeliveryAreaFreeshipping[] List of ChildChronopostHomeDeliveryAreaFreeshipping objects + */ + public function getChronopostHomeDeliveryAreaFreeshippingsJoinArea($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) + { + $query = ChildChronopostHomeDeliveryAreaFreeshippingQuery::create(null, $criteria); + $query->joinWith('Area', $joinBehavior); + + return $this->getChronopostHomeDeliveryAreaFreeshippings($query, $con); + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->title = null; + $this->code = null; + $this->freeshipping_active = null; + $this->freeshipping_from = null; + $this->alreadyInSave = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep) { + if ($this->collChronopostHomeDeliveryPrices) { + foreach ($this->collChronopostHomeDeliveryPrices as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collChronopostHomeDeliveryAreaFreeshippings) { + foreach ($this->collChronopostHomeDeliveryAreaFreeshippings as $o) { + $o->clearAllReferences($deep); + } + } + } // if ($deep) + + $this->collChronopostHomeDeliveryPrices = null; + $this->collChronopostHomeDeliveryAreaFreeshippings = null; + } + + /** + * Return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(ChronopostHomeDeliveryDeliveryModeTableMap::DEFAULT_STRING_FORMAT); + } + + /** + * Code to be run before persisting the object + * @param ConnectionInterface $con + * @return boolean + */ + public function preSave(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after persisting the object + * @param ConnectionInterface $con + */ + public function postSave(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before inserting to database + * @param ConnectionInterface $con + * @return boolean + */ + public function preInsert(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after inserting to database + * @param ConnectionInterface $con + */ + public function postInsert(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before updating the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preUpdate(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after updating the object in database + * @param ConnectionInterface $con + */ + public function postUpdate(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before deleting the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preDelete(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after deleting the object in database + * @param ConnectionInterface $con + */ + public function postDelete(ConnectionInterface $con = null) + { + + } + + + /** + * Derived method to catches calls to undefined methods. + * + * Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.). + * Allows to define default __call() behavior if you overwrite __call() + * + * @param string $name + * @param mixed $params + * + * @return array|string + */ + public function __call($name, $params) + { + if (0 === strpos($name, 'get')) { + $virtualColumn = substr($name, 3); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + + $virtualColumn = lcfirst($virtualColumn); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + } + + if (0 === strpos($name, 'from')) { + $format = substr($name, 4); + + return $this->importFrom($format, reset($params)); + } + + if (0 === strpos($name, 'to')) { + $format = substr($name, 2); + $includeLazyLoadColumns = isset($params[0]) ? $params[0] : true; + + return $this->exportTo($format, $includeLazyLoadColumns); + } + + throw new BadMethodCallException(sprintf('Call to undefined method: %s.', $name)); + } + +} diff --git a/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryDeliveryModeQuery.php b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryDeliveryModeQuery.php new file mode 100644 index 00000000..f3c7c0a9 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryDeliveryModeQuery.php @@ -0,0 +1,643 @@ +setModelAlias($modelAlias); + } + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ChildChronopostHomeDeliveryDeliveryMode|array|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = ChronopostHomeDeliveryDeliveryModeTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildChronopostHomeDeliveryDeliveryMode A model object, or null if the key is not found + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT ID, TITLE, CODE, FREESHIPPING_ACTIVE, FREESHIPPING_FROM FROM chronopost_home_delivery_delivery_mode WHERE ID = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e); + } + $obj = null; + if ($row = $stmt->fetch(\PDO::FETCH_NUM)) { + $obj = new ChildChronopostHomeDeliveryDeliveryMode(); + $obj->hydrate($row); + ChronopostHomeDeliveryDeliveryModeTableMap::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildChronopostHomeDeliveryDeliveryMode|array|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($dataFetcher); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id > 12 + * + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $id, $comparison); + } + + /** + * Filter the query on the title column + * + * Example usage: + * + * $query->filterByTitle('fooValue'); // WHERE title = 'fooValue' + * $query->filterByTitle('%fooValue%'); // WHERE title LIKE '%fooValue%' + * + * + * @param string $title The value to use as filter. + * Accepts wildcards (* and % trigger a LIKE) + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function filterByTitle($title = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($title)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $title)) { + $title = str_replace('*', '%', $title); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::TITLE, $title, $comparison); + } + + /** + * Filter the query on the code column + * + * Example usage: + * + * $query->filterByCode('fooValue'); // WHERE code = 'fooValue' + * $query->filterByCode('%fooValue%'); // WHERE code LIKE '%fooValue%' + * + * + * @param string $code The value to use as filter. + * Accepts wildcards (* and % trigger a LIKE) + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function filterByCode($code = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($code)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $code)) { + $code = str_replace('*', '%', $code); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::CODE, $code, $comparison); + } + + /** + * Filter the query on the freeshipping_active column + * + * Example usage: + * + * $query->filterByFreeshippingActive(true); // WHERE freeshipping_active = true + * $query->filterByFreeshippingActive('yes'); // WHERE freeshipping_active = true + * + * + * @param boolean|string $freeshippingActive The value to use as filter. + * Non-boolean arguments are converted using the following rules: + * * 1, '1', 'true', 'on', and 'yes' are converted to boolean true + * * 0, '0', 'false', 'off', and 'no' are converted to boolean false + * Check on string values is case insensitive (so 'FaLsE' is seen as 'false'). + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function filterByFreeshippingActive($freeshippingActive = null, $comparison = null) + { + if (is_string($freeshippingActive)) { + $freeshipping_active = in_array(strtolower($freeshippingActive), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; + } + + return $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_ACTIVE, $freeshippingActive, $comparison); + } + + /** + * Filter the query on the freeshipping_from column + * + * Example usage: + * + * $query->filterByFreeshippingFrom(1234); // WHERE freeshipping_from = 1234 + * $query->filterByFreeshippingFrom(array(12, 34)); // WHERE freeshipping_from IN (12, 34) + * $query->filterByFreeshippingFrom(array('min' => 12)); // WHERE freeshipping_from > 12 + * + * + * @param mixed $freeshippingFrom The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function filterByFreeshippingFrom($freeshippingFrom = null, $comparison = null) + { + if (is_array($freeshippingFrom)) { + $useMinMax = false; + if (isset($freeshippingFrom['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM, $freeshippingFrom['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($freeshippingFrom['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM, $freeshippingFrom['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM, $freeshippingFrom, $comparison); + } + + /** + * Filter the query by a related \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice object + * + * @param \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice|ObjectCollection $chronopostHomeDeliveryPrice the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function filterByChronopostHomeDeliveryPrice($chronopostHomeDeliveryPrice, $comparison = null) + { + if ($chronopostHomeDeliveryPrice instanceof \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice) { + return $this + ->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $chronopostHomeDeliveryPrice->getDeliveryModeId(), $comparison); + } elseif ($chronopostHomeDeliveryPrice instanceof ObjectCollection) { + return $this + ->useChronopostHomeDeliveryPriceQuery() + ->filterByPrimaryKeys($chronopostHomeDeliveryPrice->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByChronopostHomeDeliveryPrice() only accepts arguments of type \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the ChronopostHomeDeliveryPrice relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function joinChronopostHomeDeliveryPrice($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('ChronopostHomeDeliveryPrice'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'ChronopostHomeDeliveryPrice'); + } + + return $this; + } + + /** + * Use the ChronopostHomeDeliveryPrice relation ChronopostHomeDeliveryPrice object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPriceQuery A secondary query class using the current class as primary query + */ + public function useChronopostHomeDeliveryPriceQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinChronopostHomeDeliveryPrice($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'ChronopostHomeDeliveryPrice', '\ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPriceQuery'); + } + + /** + * Filter the query by a related \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping object + * + * @param \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping|ObjectCollection $chronopostHomeDeliveryAreaFreeshipping the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function filterByChronopostHomeDeliveryAreaFreeshipping($chronopostHomeDeliveryAreaFreeshipping, $comparison = null) + { + if ($chronopostHomeDeliveryAreaFreeshipping instanceof \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping) { + return $this + ->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $chronopostHomeDeliveryAreaFreeshipping->getDeliveryModeId(), $comparison); + } elseif ($chronopostHomeDeliveryAreaFreeshipping instanceof ObjectCollection) { + return $this + ->useChronopostHomeDeliveryAreaFreeshippingQuery() + ->filterByPrimaryKeys($chronopostHomeDeliveryAreaFreeshipping->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByChronopostHomeDeliveryAreaFreeshipping() only accepts arguments of type \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the ChronopostHomeDeliveryAreaFreeshipping relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function joinChronopostHomeDeliveryAreaFreeshipping($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('ChronopostHomeDeliveryAreaFreeshipping'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'ChronopostHomeDeliveryAreaFreeshipping'); + } + + return $this; + } + + /** + * Use the ChronopostHomeDeliveryAreaFreeshipping relation ChronopostHomeDeliveryAreaFreeshipping object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshippingQuery A secondary query class using the current class as primary query + */ + public function useChronopostHomeDeliveryAreaFreeshippingQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinChronopostHomeDeliveryAreaFreeshipping($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'ChronopostHomeDeliveryAreaFreeshipping', '\ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshippingQuery'); + } + + /** + * Exclude object from result + * + * @param ChildChronopostHomeDeliveryDeliveryMode $chronopostHomeDeliveryDeliveryMode Object to remove from the list of results + * + * @return ChildChronopostHomeDeliveryDeliveryModeQuery The current query, for fluid interface + */ + public function prune($chronopostHomeDeliveryDeliveryMode = null) + { + if ($chronopostHomeDeliveryDeliveryMode) { + $this->addUsingAlias(ChronopostHomeDeliveryDeliveryModeTableMap::ID, $chronopostHomeDeliveryDeliveryMode->getId(), Criteria::NOT_EQUAL); + } + + return $this; + } + + /** + * Deletes all rows from the chronopost_home_delivery_delivery_mode table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public function doDeleteAll(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += parent::doDeleteAll($con); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + ChronopostHomeDeliveryDeliveryModeTableMap::clearInstancePool(); + ChronopostHomeDeliveryDeliveryModeTableMap::clearRelatedInstancePool(); + + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $affectedRows; + } + + /** + * Performs a DELETE on the database, given a ChildChronopostHomeDeliveryDeliveryMode or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChildChronopostHomeDeliveryDeliveryMode object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public function delete(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + } + + $criteria = $this; + + // Set the correct dbName + $criteria->setDbName(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + + ChronopostHomeDeliveryDeliveryModeTableMap::removeInstanceFromPool($criteria); + + $affectedRows += ModelCriteria::delete($con); + ChronopostHomeDeliveryDeliveryModeTableMap::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + } + +} // ChronopostHomeDeliveryDeliveryModeQuery diff --git a/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryOrder.php b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryOrder.php new file mode 100644 index 00000000..bfb48155 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryOrder.php @@ -0,0 +1,1427 @@ +modifiedColumns; + } + + /** + * Has specified column been modified? + * + * @param string $col column fully qualified name (TableMap::TYPE_COLNAME), e.g. Book::AUTHOR_ID + * @return boolean True if $col has been modified. + */ + public function isColumnModified($col) + { + return $this->modifiedColumns && isset($this->modifiedColumns[$col]); + } + + /** + * Get the columns that have been modified in this object. + * @return array A unique list of the modified column names for this object. + */ + public function getModifiedColumns() + { + return $this->modifiedColumns ? array_keys($this->modifiedColumns) : []; + } + + /** + * Returns whether the object has ever been saved. This will + * be false, if the object was retrieved from storage or was created + * and then saved. + * + * @return boolean true, if the object has never been persisted. + */ + public function isNew() + { + return $this->new; + } + + /** + * Setter for the isNew attribute. This method will be called + * by Propel-generated children and objects. + * + * @param boolean $b the state of the object. + */ + public function setNew($b) + { + $this->new = (Boolean) $b; + } + + /** + * Whether this object has been deleted. + * @return boolean The deleted state of this object. + */ + public function isDeleted() + { + return $this->deleted; + } + + /** + * Specify whether this object has been deleted. + * @param boolean $b The deleted state of this object. + * @return void + */ + public function setDeleted($b) + { + $this->deleted = (Boolean) $b; + } + + /** + * Sets the modified state for the object to be false. + * @param string $col If supplied, only the specified column is reset. + * @return void + */ + public function resetModified($col = null) + { + if (null !== $col) { + if (isset($this->modifiedColumns[$col])) { + unset($this->modifiedColumns[$col]); + } + } else { + $this->modifiedColumns = array(); + } + } + + /** + * Compares this with another ChronopostHomeDeliveryOrder instance. If + * obj is an instance of ChronopostHomeDeliveryOrder, delegates to + * equals(ChronopostHomeDeliveryOrder). Otherwise, returns false. + * + * @param mixed $obj The object to compare to. + * @return boolean Whether equal to the object specified. + */ + public function equals($obj) + { + $thisclazz = get_class($this); + if (!is_object($obj) || !($obj instanceof $thisclazz)) { + return false; + } + + if ($this === $obj) { + return true; + } + + if (null === $this->getPrimaryKey() + || null === $obj->getPrimaryKey()) { + return false; + } + + return $this->getPrimaryKey() === $obj->getPrimaryKey(); + } + + /** + * If the primary key is not null, return the hashcode of the + * primary key. Otherwise, return the hash code of the object. + * + * @return int Hashcode + */ + public function hashCode() + { + if (null !== $this->getPrimaryKey()) { + return crc32(serialize($this->getPrimaryKey())); + } + + return crc32(serialize(clone $this)); + } + + /** + * Get the associative array of the virtual columns in this object + * + * @return array + */ + public function getVirtualColumns() + { + return $this->virtualColumns; + } + + /** + * Checks the existence of a virtual column in this object + * + * @param string $name The virtual column name + * @return boolean + */ + public function hasVirtualColumn($name) + { + return array_key_exists($name, $this->virtualColumns); + } + + /** + * Get the value of a virtual column in this object + * + * @param string $name The virtual column name + * @return mixed + * + * @throws PropelException + */ + public function getVirtualColumn($name) + { + if (!$this->hasVirtualColumn($name)) { + throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name)); + } + + return $this->virtualColumns[$name]; + } + + /** + * Set the value of a virtual column in this object + * + * @param string $name The virtual column name + * @param mixed $value The value to give to the virtual column + * + * @return ChronopostHomeDeliveryOrder The current object, for fluid interface + */ + public function setVirtualColumn($name, $value) + { + $this->virtualColumns[$name] = $value; + + return $this; + } + + /** + * Logs a message using Propel::log(). + * + * @param string $msg + * @param int $priority One of the Propel::LOG_* logging levels + * @return boolean + */ + protected function log($msg, $priority = Propel::LOG_INFO) + { + return Propel::log(get_class($this) . ': ' . $msg, $priority); + } + + /** + * Populate the current object from a string, using a given parser format + * + * $book = new Book(); + * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, + * or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param string $data The source data to import from + * + * @return ChronopostHomeDeliveryOrder The current object, for fluid interface + */ + public function importFrom($parser, $data) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + $this->fromArray($parser->toArray($data), TableMap::TYPE_PHPNAME); + + return $this; + } + + /** + * Export the current object properties to a string, using a given parser format + * + * $book = BookQuery::create()->findPk(9012); + * echo $book->exportTo('JSON'); + * => {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE. + * @return string The exported data + */ + public function exportTo($parser, $includeLazyLoadColumns = true) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $parser->fromArray($this->toArray(TableMap::TYPE_PHPNAME, $includeLazyLoadColumns, array(), true)); + } + + /** + * Clean up internal collections prior to serializing + * Avoids recursive loops that turn into segmentation faults when serializing + */ + public function __sleep() + { + $this->clearAllReferences(); + + return array_keys(get_object_vars($this)); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [order_id] column value. + * + * @return int + */ + public function getOrderId() + { + + return $this->order_id; + } + + /** + * Get the [delivery_type] column value. + * + * @return string + */ + public function getDeliveryType() + { + + return $this->delivery_type; + } + + /** + * Get the [delivery_code] column value. + * + * @return string + */ + public function getDeliveryCode() + { + + return $this->delivery_code; + } + + /** + * Get the [label_directory] column value. + * + * @return string + */ + public function getLabelDirectory() + { + + return $this->label_directory; + } + + /** + * Get the [label_number] column value. + * + * @return string + */ + public function getLabelNumber() + { + + return $this->label_number; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[ChronopostHomeDeliveryOrderTableMap::ID] = true; + } + + + return $this; + } // setId() + + /** + * Set the value of [order_id] column. + * + * @param int $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder The current object (for fluent API support) + */ + public function setOrderId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->order_id !== $v) { + $this->order_id = $v; + $this->modifiedColumns[ChronopostHomeDeliveryOrderTableMap::ORDER_ID] = true; + } + + if ($this->aOrder !== null && $this->aOrder->getId() !== $v) { + $this->aOrder = null; + } + + + return $this; + } // setOrderId() + + /** + * Set the value of [delivery_type] column. + * + * @param string $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder The current object (for fluent API support) + */ + public function setDeliveryType($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->delivery_type !== $v) { + $this->delivery_type = $v; + $this->modifiedColumns[ChronopostHomeDeliveryOrderTableMap::DELIVERY_TYPE] = true; + } + + + return $this; + } // setDeliveryType() + + /** + * Set the value of [delivery_code] column. + * + * @param string $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder The current object (for fluent API support) + */ + public function setDeliveryCode($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->delivery_code !== $v) { + $this->delivery_code = $v; + $this->modifiedColumns[ChronopostHomeDeliveryOrderTableMap::DELIVERY_CODE] = true; + } + + + return $this; + } // setDeliveryCode() + + /** + * Set the value of [label_directory] column. + * + * @param string $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder The current object (for fluent API support) + */ + public function setLabelDirectory($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->label_directory !== $v) { + $this->label_directory = $v; + $this->modifiedColumns[ChronopostHomeDeliveryOrderTableMap::LABEL_DIRECTORY] = true; + } + + + return $this; + } // setLabelDirectory() + + /** + * Set the value of [label_number] column. + * + * @param string $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder The current object (for fluent API support) + */ + public function setLabelNumber($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->label_number !== $v) { + $this->label_number = $v; + $this->modifiedColumns[ChronopostHomeDeliveryOrderTableMap::LABEL_NUMBER] = true; + } + + + return $this; + } // setLabelNumber() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return TRUE + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by DataFetcher->fetch(). + * @param int $startcol 0-based offset column which indicates which restultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) + { + try { + + + $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : ChronopostHomeDeliveryOrderTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + $this->id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ChronopostHomeDeliveryOrderTableMap::translateFieldName('OrderId', TableMap::TYPE_PHPNAME, $indexType)]; + $this->order_id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ChronopostHomeDeliveryOrderTableMap::translateFieldName('DeliveryType', TableMap::TYPE_PHPNAME, $indexType)]; + $this->delivery_type = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ChronopostHomeDeliveryOrderTableMap::translateFieldName('DeliveryCode', TableMap::TYPE_PHPNAME, $indexType)]; + $this->delivery_code = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : ChronopostHomeDeliveryOrderTableMap::translateFieldName('LabelDirectory', TableMap::TYPE_PHPNAME, $indexType)]; + $this->label_directory = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : ChronopostHomeDeliveryOrderTableMap::translateFieldName('LabelNumber', TableMap::TYPE_PHPNAME, $indexType)]; + $this->label_number = (null !== $col) ? (string) $col : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + + return $startcol + 6; // 6 = ChronopostHomeDeliveryOrderTableMap::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder object", 0, $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + if ($this->aOrder !== null && $this->order_id !== $this->aOrder->getId()) { + $this->aOrder = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param ConnectionInterface $con (optional) The ConnectionInterface connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $dataFetcher = ChildChronopostHomeDeliveryOrderQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); + $row = $dataFetcher->fetch(); + $dataFetcher->close(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aOrder = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param ConnectionInterface $con + * @return void + * @throws PropelException + * @see ChronopostHomeDeliveryOrder::setDeleted() + * @see ChronopostHomeDeliveryOrder::isDeleted() + */ + public function delete(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + try { + $deleteQuery = ChildChronopostHomeDeliveryOrderQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see doSave() + */ + public function save(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + ChronopostHomeDeliveryOrderTableMap::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(ConnectionInterface $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aOrder !== null) { + if ($this->aOrder->isModified() || $this->aOrder->isNew()) { + $affectedRows += $this->aOrder->save($con); + } + $this->setOrder($this->aOrder); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param ConnectionInterface $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(ConnectionInterface $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[ChronopostHomeDeliveryOrderTableMap::ID] = true; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . ChronopostHomeDeliveryOrderTableMap::ID . ')'); + } + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::ID)) { + $modifiedColumns[':p' . $index++] = 'ID'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::ORDER_ID)) { + $modifiedColumns[':p' . $index++] = 'ORDER_ID'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::DELIVERY_TYPE)) { + $modifiedColumns[':p' . $index++] = 'DELIVERY_TYPE'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::DELIVERY_CODE)) { + $modifiedColumns[':p' . $index++] = 'DELIVERY_CODE'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::LABEL_DIRECTORY)) { + $modifiedColumns[':p' . $index++] = 'LABEL_DIRECTORY'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::LABEL_NUMBER)) { + $modifiedColumns[':p' . $index++] = 'LABEL_NUMBER'; + } + + $sql = sprintf( + 'INSERT INTO chronopost_home_delivery_order (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case 'ID': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case 'ORDER_ID': + $stmt->bindValue($identifier, $this->order_id, PDO::PARAM_INT); + break; + case 'DELIVERY_TYPE': + $stmt->bindValue($identifier, $this->delivery_type, PDO::PARAM_STR); + break; + case 'DELIVERY_CODE': + $stmt->bindValue($identifier, $this->delivery_code, PDO::PARAM_STR); + break; + case 'LABEL_DIRECTORY': + $stmt->bindValue($identifier, $this->label_directory, PDO::PARAM_STR); + break; + case 'LABEL_NUMBER': + $stmt->bindValue($identifier, $this->label_number, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), 0, $e); + } + + try { + $pk = $con->lastInsertId(); + } catch (Exception $e) { + throw new PropelException('Unable to get autoincrement id.', 0, $e); + } + $this->setId($pk); + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param ConnectionInterface $con + * + * @return Integer Number of updated rows + * @see doSave() + */ + protected function doUpdate(ConnectionInterface $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + + return $selectCriteria->doUpdate($valuesCriteria, $con); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return mixed Value of field. + */ + public function getByName($name, $type = TableMap::TYPE_PHPNAME) + { + $pos = ChronopostHomeDeliveryOrderTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getOrderId(); + break; + case 2: + return $this->getDeliveryType(); + break; + case 3: + return $this->getDeliveryCode(); + break; + case 4: + return $this->getLabelDirectory(); + break; + case 5: + return $this->getLabelNumber(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['ChronopostHomeDeliveryOrder'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['ChronopostHomeDeliveryOrder'][$this->getPrimaryKey()] = true; + $keys = ChronopostHomeDeliveryOrderTableMap::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getOrderId(), + $keys[2] => $this->getDeliveryType(), + $keys[3] => $this->getDeliveryCode(), + $keys[4] => $this->getLabelDirectory(), + $keys[5] => $this->getLabelNumber(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aOrder) { + $result['Order'] = $this->aOrder->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return void + */ + public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME) + { + $pos = ChronopostHomeDeliveryOrderTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + + return $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setOrderId($value); + break; + case 2: + $this->setDeliveryType($value); + break; + case 3: + $this->setDeliveryCode($value); + break; + case 4: + $this->setLabelDirectory($value); + break; + case 5: + $this->setLabelNumber($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * The default key type is the column's TableMap::TYPE_PHPNAME. + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME) + { + $keys = ChronopostHomeDeliveryOrderTableMap::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setOrderId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDeliveryType($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setDeliveryCode($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setLabelDirectory($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setLabelNumber($arr[$keys[5]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::ID)) $criteria->add(ChronopostHomeDeliveryOrderTableMap::ID, $this->id); + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::ORDER_ID)) $criteria->add(ChronopostHomeDeliveryOrderTableMap::ORDER_ID, $this->order_id); + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::DELIVERY_TYPE)) $criteria->add(ChronopostHomeDeliveryOrderTableMap::DELIVERY_TYPE, $this->delivery_type); + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::DELIVERY_CODE)) $criteria->add(ChronopostHomeDeliveryOrderTableMap::DELIVERY_CODE, $this->delivery_code); + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::LABEL_DIRECTORY)) $criteria->add(ChronopostHomeDeliveryOrderTableMap::LABEL_DIRECTORY, $this->label_directory); + if ($this->isColumnModified(ChronopostHomeDeliveryOrderTableMap::LABEL_NUMBER)) $criteria->add(ChronopostHomeDeliveryOrderTableMap::LABEL_NUMBER, $this->label_number); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + $criteria->add(ChronopostHomeDeliveryOrderTableMap::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setOrderId($this->getOrderId()); + $copyObj->setDeliveryType($this->getDeliveryType()); + $copyObj->setDeliveryCode($this->getDeliveryCode()); + $copyObj->setLabelDirectory($this->getLabelDirectory()); + $copyObj->setLabelNumber($this->getLabelNumber()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Declares an association between this object and a ChildOrder object. + * + * @param ChildOrder $v + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder The current object (for fluent API support) + * @throws PropelException + */ + public function setOrder(ChildOrder $v = null) + { + if ($v === null) { + $this->setOrderId(NULL); + } else { + $this->setOrderId($v->getId()); + } + + $this->aOrder = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildOrder object, it will not be re-added. + if ($v !== null) { + $v->addChronopostHomeDeliveryOrder($this); + } + + + return $this; + } + + + /** + * Get the associated ChildOrder object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildOrder The associated ChildOrder object. + * @throws PropelException + */ + public function getOrder(ConnectionInterface $con = null) + { + if ($this->aOrder === null && ($this->order_id !== null)) { + $this->aOrder = OrderQuery::create()->findPk($this->order_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aOrder->addChronopostHomeDeliveryOrders($this); + */ + } + + return $this->aOrder; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->order_id = null; + $this->delivery_type = null; + $this->delivery_code = null; + $this->label_directory = null; + $this->label_number = null; + $this->alreadyInSave = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep) { + } // if ($deep) + + $this->aOrder = null; + } + + /** + * Return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(ChronopostHomeDeliveryOrderTableMap::DEFAULT_STRING_FORMAT); + } + + /** + * Code to be run before persisting the object + * @param ConnectionInterface $con + * @return boolean + */ + public function preSave(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after persisting the object + * @param ConnectionInterface $con + */ + public function postSave(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before inserting to database + * @param ConnectionInterface $con + * @return boolean + */ + public function preInsert(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after inserting to database + * @param ConnectionInterface $con + */ + public function postInsert(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before updating the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preUpdate(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after updating the object in database + * @param ConnectionInterface $con + */ + public function postUpdate(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before deleting the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preDelete(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after deleting the object in database + * @param ConnectionInterface $con + */ + public function postDelete(ConnectionInterface $con = null) + { + + } + + + /** + * Derived method to catches calls to undefined methods. + * + * Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.). + * Allows to define default __call() behavior if you overwrite __call() + * + * @param string $name + * @param mixed $params + * + * @return array|string + */ + public function __call($name, $params) + { + if (0 === strpos($name, 'get')) { + $virtualColumn = substr($name, 3); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + + $virtualColumn = lcfirst($virtualColumn); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + } + + if (0 === strpos($name, 'from')) { + $format = substr($name, 4); + + return $this->importFrom($format, reset($params)); + } + + if (0 === strpos($name, 'to')) { + $format = substr($name, 2); + $includeLazyLoadColumns = isset($params[0]) ? $params[0] : true; + + return $this->exportTo($format, $includeLazyLoadColumns); + } + + throw new BadMethodCallException(sprintf('Call to undefined method: %s.', $name)); + } + +} diff --git a/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryOrderQuery.php b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryOrderQuery.php new file mode 100644 index 00000000..09c59428 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryOrderQuery.php @@ -0,0 +1,606 @@ +setModelAlias($modelAlias); + } + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ChildChronopostHomeDeliveryOrder|array|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = ChronopostHomeDeliveryOrderTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildChronopostHomeDeliveryOrder A model object, or null if the key is not found + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT ID, ORDER_ID, DELIVERY_TYPE, DELIVERY_CODE, LABEL_DIRECTORY, LABEL_NUMBER FROM chronopost_home_delivery_order WHERE ID = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e); + } + $obj = null; + if ($row = $stmt->fetch(\PDO::FETCH_NUM)) { + $obj = new ChildChronopostHomeDeliveryOrder(); + $obj->hydrate($row); + ChronopostHomeDeliveryOrderTableMap::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildChronopostHomeDeliveryOrder|array|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($dataFetcher); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id > 12 + * + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ID, $id, $comparison); + } + + /** + * Filter the query on the order_id column + * + * Example usage: + * + * $query->filterByOrderId(1234); // WHERE order_id = 1234 + * $query->filterByOrderId(array(12, 34)); // WHERE order_id IN (12, 34) + * $query->filterByOrderId(array('min' => 12)); // WHERE order_id > 12 + * + * + * @see filterByOrder() + * + * @param mixed $orderId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function filterByOrderId($orderId = null, $comparison = null) + { + if (is_array($orderId)) { + $useMinMax = false; + if (isset($orderId['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ORDER_ID, $orderId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($orderId['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ORDER_ID, $orderId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ORDER_ID, $orderId, $comparison); + } + + /** + * Filter the query on the delivery_type column + * + * Example usage: + * + * $query->filterByDeliveryType('fooValue'); // WHERE delivery_type = 'fooValue' + * $query->filterByDeliveryType('%fooValue%'); // WHERE delivery_type LIKE '%fooValue%' + * + * + * @param string $deliveryType The value to use as filter. + * Accepts wildcards (* and % trigger a LIKE) + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function filterByDeliveryType($deliveryType = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($deliveryType)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $deliveryType)) { + $deliveryType = str_replace('*', '%', $deliveryType); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::DELIVERY_TYPE, $deliveryType, $comparison); + } + + /** + * Filter the query on the delivery_code column + * + * Example usage: + * + * $query->filterByDeliveryCode('fooValue'); // WHERE delivery_code = 'fooValue' + * $query->filterByDeliveryCode('%fooValue%'); // WHERE delivery_code LIKE '%fooValue%' + * + * + * @param string $deliveryCode The value to use as filter. + * Accepts wildcards (* and % trigger a LIKE) + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function filterByDeliveryCode($deliveryCode = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($deliveryCode)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $deliveryCode)) { + $deliveryCode = str_replace('*', '%', $deliveryCode); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::DELIVERY_CODE, $deliveryCode, $comparison); + } + + /** + * Filter the query on the label_directory column + * + * Example usage: + * + * $query->filterByLabelDirectory('fooValue'); // WHERE label_directory = 'fooValue' + * $query->filterByLabelDirectory('%fooValue%'); // WHERE label_directory LIKE '%fooValue%' + * + * + * @param string $labelDirectory The value to use as filter. + * Accepts wildcards (* and % trigger a LIKE) + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function filterByLabelDirectory($labelDirectory = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($labelDirectory)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $labelDirectory)) { + $labelDirectory = str_replace('*', '%', $labelDirectory); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::LABEL_DIRECTORY, $labelDirectory, $comparison); + } + + /** + * Filter the query on the label_number column + * + * Example usage: + * + * $query->filterByLabelNumber('fooValue'); // WHERE label_number = 'fooValue' + * $query->filterByLabelNumber('%fooValue%'); // WHERE label_number LIKE '%fooValue%' + * + * + * @param string $labelNumber The value to use as filter. + * Accepts wildcards (* and % trigger a LIKE) + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function filterByLabelNumber($labelNumber = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($labelNumber)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $labelNumber)) { + $labelNumber = str_replace('*', '%', $labelNumber); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::LABEL_NUMBER, $labelNumber, $comparison); + } + + /** + * Filter the query by a related \ChronopostHomeDelivery\Model\Thelia\Model\Order object + * + * @param \ChronopostHomeDelivery\Model\Thelia\Model\Order|ObjectCollection $order The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function filterByOrder($order, $comparison = null) + { + if ($order instanceof \ChronopostHomeDelivery\Model\Thelia\Model\Order) { + return $this + ->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ORDER_ID, $order->getId(), $comparison); + } elseif ($order instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ORDER_ID, $order->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByOrder() only accepts arguments of type \ChronopostHomeDelivery\Model\Thelia\Model\Order or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the Order relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function joinOrder($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('Order'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'Order'); + } + + return $this; + } + + /** + * Use the Order relation Order object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \ChronopostHomeDelivery\Model\Thelia\Model\OrderQuery A secondary query class using the current class as primary query + */ + public function useOrderQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinOrder($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'Order', '\ChronopostHomeDelivery\Model\Thelia\Model\OrderQuery'); + } + + /** + * Exclude object from result + * + * @param ChildChronopostHomeDeliveryOrder $chronopostHomeDeliveryOrder Object to remove from the list of results + * + * @return ChildChronopostHomeDeliveryOrderQuery The current query, for fluid interface + */ + public function prune($chronopostHomeDeliveryOrder = null) + { + if ($chronopostHomeDeliveryOrder) { + $this->addUsingAlias(ChronopostHomeDeliveryOrderTableMap::ID, $chronopostHomeDeliveryOrder->getId(), Criteria::NOT_EQUAL); + } + + return $this; + } + + /** + * Deletes all rows from the chronopost_home_delivery_order table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public function doDeleteAll(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += parent::doDeleteAll($con); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + ChronopostHomeDeliveryOrderTableMap::clearInstancePool(); + ChronopostHomeDeliveryOrderTableMap::clearRelatedInstancePool(); + + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $affectedRows; + } + + /** + * Performs a DELETE on the database, given a ChildChronopostHomeDeliveryOrder or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChildChronopostHomeDeliveryOrder object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public function delete(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + } + + $criteria = $this; + + // Set the correct dbName + $criteria->setDbName(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + + ChronopostHomeDeliveryOrderTableMap::removeInstanceFromPool($criteria); + + $affectedRows += ModelCriteria::delete($con); + ChronopostHomeDeliveryOrderTableMap::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + } + +} // ChronopostHomeDeliveryOrderQuery diff --git a/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryPrice.php b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryPrice.php new file mode 100644 index 00000000..999e4c7b --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryPrice.php @@ -0,0 +1,1562 @@ +modifiedColumns; + } + + /** + * Has specified column been modified? + * + * @param string $col column fully qualified name (TableMap::TYPE_COLNAME), e.g. Book::AUTHOR_ID + * @return boolean True if $col has been modified. + */ + public function isColumnModified($col) + { + return $this->modifiedColumns && isset($this->modifiedColumns[$col]); + } + + /** + * Get the columns that have been modified in this object. + * @return array A unique list of the modified column names for this object. + */ + public function getModifiedColumns() + { + return $this->modifiedColumns ? array_keys($this->modifiedColumns) : []; + } + + /** + * Returns whether the object has ever been saved. This will + * be false, if the object was retrieved from storage or was created + * and then saved. + * + * @return boolean true, if the object has never been persisted. + */ + public function isNew() + { + return $this->new; + } + + /** + * Setter for the isNew attribute. This method will be called + * by Propel-generated children and objects. + * + * @param boolean $b the state of the object. + */ + public function setNew($b) + { + $this->new = (Boolean) $b; + } + + /** + * Whether this object has been deleted. + * @return boolean The deleted state of this object. + */ + public function isDeleted() + { + return $this->deleted; + } + + /** + * Specify whether this object has been deleted. + * @param boolean $b The deleted state of this object. + * @return void + */ + public function setDeleted($b) + { + $this->deleted = (Boolean) $b; + } + + /** + * Sets the modified state for the object to be false. + * @param string $col If supplied, only the specified column is reset. + * @return void + */ + public function resetModified($col = null) + { + if (null !== $col) { + if (isset($this->modifiedColumns[$col])) { + unset($this->modifiedColumns[$col]); + } + } else { + $this->modifiedColumns = array(); + } + } + + /** + * Compares this with another ChronopostHomeDeliveryPrice instance. If + * obj is an instance of ChronopostHomeDeliveryPrice, delegates to + * equals(ChronopostHomeDeliveryPrice). Otherwise, returns false. + * + * @param mixed $obj The object to compare to. + * @return boolean Whether equal to the object specified. + */ + public function equals($obj) + { + $thisclazz = get_class($this); + if (!is_object($obj) || !($obj instanceof $thisclazz)) { + return false; + } + + if ($this === $obj) { + return true; + } + + if (null === $this->getPrimaryKey() + || null === $obj->getPrimaryKey()) { + return false; + } + + return $this->getPrimaryKey() === $obj->getPrimaryKey(); + } + + /** + * If the primary key is not null, return the hashcode of the + * primary key. Otherwise, return the hash code of the object. + * + * @return int Hashcode + */ + public function hashCode() + { + if (null !== $this->getPrimaryKey()) { + return crc32(serialize($this->getPrimaryKey())); + } + + return crc32(serialize(clone $this)); + } + + /** + * Get the associative array of the virtual columns in this object + * + * @return array + */ + public function getVirtualColumns() + { + return $this->virtualColumns; + } + + /** + * Checks the existence of a virtual column in this object + * + * @param string $name The virtual column name + * @return boolean + */ + public function hasVirtualColumn($name) + { + return array_key_exists($name, $this->virtualColumns); + } + + /** + * Get the value of a virtual column in this object + * + * @param string $name The virtual column name + * @return mixed + * + * @throws PropelException + */ + public function getVirtualColumn($name) + { + if (!$this->hasVirtualColumn($name)) { + throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name)); + } + + return $this->virtualColumns[$name]; + } + + /** + * Set the value of a virtual column in this object + * + * @param string $name The virtual column name + * @param mixed $value The value to give to the virtual column + * + * @return ChronopostHomeDeliveryPrice The current object, for fluid interface + */ + public function setVirtualColumn($name, $value) + { + $this->virtualColumns[$name] = $value; + + return $this; + } + + /** + * Logs a message using Propel::log(). + * + * @param string $msg + * @param int $priority One of the Propel::LOG_* logging levels + * @return boolean + */ + protected function log($msg, $priority = Propel::LOG_INFO) + { + return Propel::log(get_class($this) . ': ' . $msg, $priority); + } + + /** + * Populate the current object from a string, using a given parser format + * + * $book = new Book(); + * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, + * or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param string $data The source data to import from + * + * @return ChronopostHomeDeliveryPrice The current object, for fluid interface + */ + public function importFrom($parser, $data) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + $this->fromArray($parser->toArray($data), TableMap::TYPE_PHPNAME); + + return $this; + } + + /** + * Export the current object properties to a string, using a given parser format + * + * $book = BookQuery::create()->findPk(9012); + * echo $book->exportTo('JSON'); + * => {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE. + * @return string The exported data + */ + public function exportTo($parser, $includeLazyLoadColumns = true) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $parser->fromArray($this->toArray(TableMap::TYPE_PHPNAME, $includeLazyLoadColumns, array(), true)); + } + + /** + * Clean up internal collections prior to serializing + * Avoids recursive loops that turn into segmentation faults when serializing + */ + public function __sleep() + { + $this->clearAllReferences(); + + return array_keys(get_object_vars($this)); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [area_id] column value. + * + * @return int + */ + public function getAreaId() + { + + return $this->area_id; + } + + /** + * Get the [delivery_mode_id] column value. + * + * @return int + */ + public function getDeliveryModeId() + { + + return $this->delivery_mode_id; + } + + /** + * Get the [weight_max] column value. + * + * @return double + */ + public function getWeightMax() + { + + return $this->weight_max; + } + + /** + * Get the [price_max] column value. + * + * @return double + */ + public function getPriceMax() + { + + return $this->price_max; + } + + /** + * Get the [franco_min_price] column value. + * + * @return double + */ + public function getFrancoMinPrice() + { + + return $this->franco_min_price; + } + + /** + * Get the [price] column value. + * + * @return double + */ + public function getPrice() + { + + return $this->price; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[ChronopostHomeDeliveryPriceTableMap::ID] = true; + } + + + return $this; + } // setId() + + /** + * Set the value of [area_id] column. + * + * @param int $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice The current object (for fluent API support) + */ + public function setAreaId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->area_id !== $v) { + $this->area_id = $v; + $this->modifiedColumns[ChronopostHomeDeliveryPriceTableMap::AREA_ID] = true; + } + + if ($this->aArea !== null && $this->aArea->getId() !== $v) { + $this->aArea = null; + } + + + return $this; + } // setAreaId() + + /** + * Set the value of [delivery_mode_id] column. + * + * @param int $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice The current object (for fluent API support) + */ + public function setDeliveryModeId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->delivery_mode_id !== $v) { + $this->delivery_mode_id = $v; + $this->modifiedColumns[ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID] = true; + } + + if ($this->aChronopostHomeDeliveryDeliveryMode !== null && $this->aChronopostHomeDeliveryDeliveryMode->getId() !== $v) { + $this->aChronopostHomeDeliveryDeliveryMode = null; + } + + + return $this; + } // setDeliveryModeId() + + /** + * Set the value of [weight_max] column. + * + * @param double $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice The current object (for fluent API support) + */ + public function setWeightMax($v) + { + if ($v !== null) { + $v = (double) $v; + } + + if ($this->weight_max !== $v) { + $this->weight_max = $v; + $this->modifiedColumns[ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX] = true; + } + + + return $this; + } // setWeightMax() + + /** + * Set the value of [price_max] column. + * + * @param double $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice The current object (for fluent API support) + */ + public function setPriceMax($v) + { + if ($v !== null) { + $v = (double) $v; + } + + if ($this->price_max !== $v) { + $this->price_max = $v; + $this->modifiedColumns[ChronopostHomeDeliveryPriceTableMap::PRICE_MAX] = true; + } + + + return $this; + } // setPriceMax() + + /** + * Set the value of [franco_min_price] column. + * + * @param double $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice The current object (for fluent API support) + */ + public function setFrancoMinPrice($v) + { + if ($v !== null) { + $v = (double) $v; + } + + if ($this->franco_min_price !== $v) { + $this->franco_min_price = $v; + $this->modifiedColumns[ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE] = true; + } + + + return $this; + } // setFrancoMinPrice() + + /** + * Set the value of [price] column. + * + * @param double $v new value + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice The current object (for fluent API support) + */ + public function setPrice($v) + { + if ($v !== null) { + $v = (double) $v; + } + + if ($this->price !== $v) { + $this->price = $v; + $this->modifiedColumns[ChronopostHomeDeliveryPriceTableMap::PRICE] = true; + } + + + return $this; + } // setPrice() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return TRUE + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by DataFetcher->fetch(). + * @param int $startcol 0-based offset column which indicates which restultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) + { + try { + + + $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : ChronopostHomeDeliveryPriceTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + $this->id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ChronopostHomeDeliveryPriceTableMap::translateFieldName('AreaId', TableMap::TYPE_PHPNAME, $indexType)]; + $this->area_id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ChronopostHomeDeliveryPriceTableMap::translateFieldName('DeliveryModeId', TableMap::TYPE_PHPNAME, $indexType)]; + $this->delivery_mode_id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ChronopostHomeDeliveryPriceTableMap::translateFieldName('WeightMax', TableMap::TYPE_PHPNAME, $indexType)]; + $this->weight_max = (null !== $col) ? (double) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : ChronopostHomeDeliveryPriceTableMap::translateFieldName('PriceMax', TableMap::TYPE_PHPNAME, $indexType)]; + $this->price_max = (null !== $col) ? (double) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : ChronopostHomeDeliveryPriceTableMap::translateFieldName('FrancoMinPrice', TableMap::TYPE_PHPNAME, $indexType)]; + $this->franco_min_price = (null !== $col) ? (double) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : ChronopostHomeDeliveryPriceTableMap::translateFieldName('Price', TableMap::TYPE_PHPNAME, $indexType)]; + $this->price = (null !== $col) ? (double) $col : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + + return $startcol + 7; // 7 = ChronopostHomeDeliveryPriceTableMap::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice object", 0, $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + if ($this->aArea !== null && $this->area_id !== $this->aArea->getId()) { + $this->aArea = null; + } + if ($this->aChronopostHomeDeliveryDeliveryMode !== null && $this->delivery_mode_id !== $this->aChronopostHomeDeliveryDeliveryMode->getId()) { + $this->aChronopostHomeDeliveryDeliveryMode = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param ConnectionInterface $con (optional) The ConnectionInterface connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $dataFetcher = ChildChronopostHomeDeliveryPriceQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); + $row = $dataFetcher->fetch(); + $dataFetcher->close(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aArea = null; + $this->aChronopostHomeDeliveryDeliveryMode = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param ConnectionInterface $con + * @return void + * @throws PropelException + * @see ChronopostHomeDeliveryPrice::setDeleted() + * @see ChronopostHomeDeliveryPrice::isDeleted() + */ + public function delete(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + try { + $deleteQuery = ChildChronopostHomeDeliveryPriceQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see doSave() + */ + public function save(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + ChronopostHomeDeliveryPriceTableMap::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(ConnectionInterface $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aArea !== null) { + if ($this->aArea->isModified() || $this->aArea->isNew()) { + $affectedRows += $this->aArea->save($con); + } + $this->setArea($this->aArea); + } + + if ($this->aChronopostHomeDeliveryDeliveryMode !== null) { + if ($this->aChronopostHomeDeliveryDeliveryMode->isModified() || $this->aChronopostHomeDeliveryDeliveryMode->isNew()) { + $affectedRows += $this->aChronopostHomeDeliveryDeliveryMode->save($con); + } + $this->setChronopostHomeDeliveryDeliveryMode($this->aChronopostHomeDeliveryDeliveryMode); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param ConnectionInterface $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(ConnectionInterface $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[ChronopostHomeDeliveryPriceTableMap::ID] = true; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . ChronopostHomeDeliveryPriceTableMap::ID . ')'); + } + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::ID)) { + $modifiedColumns[':p' . $index++] = 'ID'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::AREA_ID)) { + $modifiedColumns[':p' . $index++] = 'AREA_ID'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID)) { + $modifiedColumns[':p' . $index++] = 'DELIVERY_MODE_ID'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX)) { + $modifiedColumns[':p' . $index++] = 'WEIGHT_MAX'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::PRICE_MAX)) { + $modifiedColumns[':p' . $index++] = 'PRICE_MAX'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE)) { + $modifiedColumns[':p' . $index++] = 'FRANCO_MIN_PRICE'; + } + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::PRICE)) { + $modifiedColumns[':p' . $index++] = 'PRICE'; + } + + $sql = sprintf( + 'INSERT INTO chronopost_home_delivery_price (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case 'ID': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case 'AREA_ID': + $stmt->bindValue($identifier, $this->area_id, PDO::PARAM_INT); + break; + case 'DELIVERY_MODE_ID': + $stmt->bindValue($identifier, $this->delivery_mode_id, PDO::PARAM_INT); + break; + case 'WEIGHT_MAX': + $stmt->bindValue($identifier, $this->weight_max, PDO::PARAM_STR); + break; + case 'PRICE_MAX': + $stmt->bindValue($identifier, $this->price_max, PDO::PARAM_STR); + break; + case 'FRANCO_MIN_PRICE': + $stmt->bindValue($identifier, $this->franco_min_price, PDO::PARAM_STR); + break; + case 'PRICE': + $stmt->bindValue($identifier, $this->price, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), 0, $e); + } + + try { + $pk = $con->lastInsertId(); + } catch (Exception $e) { + throw new PropelException('Unable to get autoincrement id.', 0, $e); + } + $this->setId($pk); + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param ConnectionInterface $con + * + * @return Integer Number of updated rows + * @see doSave() + */ + protected function doUpdate(ConnectionInterface $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + + return $selectCriteria->doUpdate($valuesCriteria, $con); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return mixed Value of field. + */ + public function getByName($name, $type = TableMap::TYPE_PHPNAME) + { + $pos = ChronopostHomeDeliveryPriceTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getAreaId(); + break; + case 2: + return $this->getDeliveryModeId(); + break; + case 3: + return $this->getWeightMax(); + break; + case 4: + return $this->getPriceMax(); + break; + case 5: + return $this->getFrancoMinPrice(); + break; + case 6: + return $this->getPrice(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['ChronopostHomeDeliveryPrice'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['ChronopostHomeDeliveryPrice'][$this->getPrimaryKey()] = true; + $keys = ChronopostHomeDeliveryPriceTableMap::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getAreaId(), + $keys[2] => $this->getDeliveryModeId(), + $keys[3] => $this->getWeightMax(), + $keys[4] => $this->getPriceMax(), + $keys[5] => $this->getFrancoMinPrice(), + $keys[6] => $this->getPrice(), + ); + $virtualColumns = $this->virtualColumns; + foreach ($virtualColumns as $key => $virtualColumn) { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aArea) { + $result['Area'] = $this->aArea->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aChronopostHomeDeliveryDeliveryMode) { + $result['ChronopostHomeDeliveryDeliveryMode'] = $this->aChronopostHomeDeliveryDeliveryMode->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return void + */ + public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME) + { + $pos = ChronopostHomeDeliveryPriceTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + + return $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setAreaId($value); + break; + case 2: + $this->setDeliveryModeId($value); + break; + case 3: + $this->setWeightMax($value); + break; + case 4: + $this->setPriceMax($value); + break; + case 5: + $this->setFrancoMinPrice($value); + break; + case 6: + $this->setPrice($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * The default key type is the column's TableMap::TYPE_PHPNAME. + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME) + { + $keys = ChronopostHomeDeliveryPriceTableMap::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setAreaId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setDeliveryModeId($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setWeightMax($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setPriceMax($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setFrancoMinPrice($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setPrice($arr[$keys[6]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::ID)) $criteria->add(ChronopostHomeDeliveryPriceTableMap::ID, $this->id); + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::AREA_ID)) $criteria->add(ChronopostHomeDeliveryPriceTableMap::AREA_ID, $this->area_id); + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID)) $criteria->add(ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID, $this->delivery_mode_id); + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX)) $criteria->add(ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX, $this->weight_max); + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::PRICE_MAX)) $criteria->add(ChronopostHomeDeliveryPriceTableMap::PRICE_MAX, $this->price_max); + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE)) $criteria->add(ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE, $this->franco_min_price); + if ($this->isColumnModified(ChronopostHomeDeliveryPriceTableMap::PRICE)) $criteria->add(ChronopostHomeDeliveryPriceTableMap::PRICE, $this->price); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + $criteria->add(ChronopostHomeDeliveryPriceTableMap::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setAreaId($this->getAreaId()); + $copyObj->setDeliveryModeId($this->getDeliveryModeId()); + $copyObj->setWeightMax($this->getWeightMax()); + $copyObj->setPriceMax($this->getPriceMax()); + $copyObj->setFrancoMinPrice($this->getFrancoMinPrice()); + $copyObj->setPrice($this->getPrice()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Declares an association between this object and a ChildArea object. + * + * @param ChildArea $v + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice The current object (for fluent API support) + * @throws PropelException + */ + public function setArea(ChildArea $v = null) + { + if ($v === null) { + $this->setAreaId(NULL); + } else { + $this->setAreaId($v->getId()); + } + + $this->aArea = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildArea object, it will not be re-added. + if ($v !== null) { + $v->addChronopostHomeDeliveryPrice($this); + } + + + return $this; + } + + + /** + * Get the associated ChildArea object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildArea The associated ChildArea object. + * @throws PropelException + */ + public function getArea(ConnectionInterface $con = null) + { + if ($this->aArea === null && ($this->area_id !== null)) { + $this->aArea = AreaQuery::create()->findPk($this->area_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aArea->addChronopostHomeDeliveryPrices($this); + */ + } + + return $this->aArea; + } + + /** + * Declares an association between this object and a ChildChronopostHomeDeliveryDeliveryMode object. + * + * @param ChildChronopostHomeDeliveryDeliveryMode $v + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice The current object (for fluent API support) + * @throws PropelException + */ + public function setChronopostHomeDeliveryDeliveryMode(ChildChronopostHomeDeliveryDeliveryMode $v = null) + { + if ($v === null) { + $this->setDeliveryModeId(NULL); + } else { + $this->setDeliveryModeId($v->getId()); + } + + $this->aChronopostHomeDeliveryDeliveryMode = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildChronopostHomeDeliveryDeliveryMode object, it will not be re-added. + if ($v !== null) { + $v->addChronopostHomeDeliveryPrice($this); + } + + + return $this; + } + + + /** + * Get the associated ChildChronopostHomeDeliveryDeliveryMode object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildChronopostHomeDeliveryDeliveryMode The associated ChildChronopostHomeDeliveryDeliveryMode object. + * @throws PropelException + */ + public function getChronopostHomeDeliveryDeliveryMode(ConnectionInterface $con = null) + { + if ($this->aChronopostHomeDeliveryDeliveryMode === null && ($this->delivery_mode_id !== null)) { + $this->aChronopostHomeDeliveryDeliveryMode = ChildChronopostHomeDeliveryDeliveryModeQuery::create()->findPk($this->delivery_mode_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aChronopostHomeDeliveryDeliveryMode->addChronopostHomeDeliveryPrices($this); + */ + } + + return $this->aChronopostHomeDeliveryDeliveryMode; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->area_id = null; + $this->delivery_mode_id = null; + $this->weight_max = null; + $this->price_max = null; + $this->franco_min_price = null; + $this->price = null; + $this->alreadyInSave = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep) { + } // if ($deep) + + $this->aArea = null; + $this->aChronopostHomeDeliveryDeliveryMode = null; + } + + /** + * Return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(ChronopostHomeDeliveryPriceTableMap::DEFAULT_STRING_FORMAT); + } + + /** + * Code to be run before persisting the object + * @param ConnectionInterface $con + * @return boolean + */ + public function preSave(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after persisting the object + * @param ConnectionInterface $con + */ + public function postSave(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before inserting to database + * @param ConnectionInterface $con + * @return boolean + */ + public function preInsert(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after inserting to database + * @param ConnectionInterface $con + */ + public function postInsert(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before updating the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preUpdate(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after updating the object in database + * @param ConnectionInterface $con + */ + public function postUpdate(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before deleting the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preDelete(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after deleting the object in database + * @param ConnectionInterface $con + */ + public function postDelete(ConnectionInterface $con = null) + { + + } + + + /** + * Derived method to catches calls to undefined methods. + * + * Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.). + * Allows to define default __call() behavior if you overwrite __call() + * + * @param string $name + * @param mixed $params + * + * @return array|string + */ + public function __call($name, $params) + { + if (0 === strpos($name, 'get')) { + $virtualColumn = substr($name, 3); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + + $virtualColumn = lcfirst($virtualColumn); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + } + + if (0 === strpos($name, 'from')) { + $format = substr($name, 4); + + return $this->importFrom($format, reset($params)); + } + + if (0 === strpos($name, 'to')) { + $format = substr($name, 2); + $includeLazyLoadColumns = isset($params[0]) ? $params[0] : true; + + return $this->exportTo($format, $includeLazyLoadColumns); + } + + throw new BadMethodCallException(sprintf('Call to undefined method: %s.', $name)); + } + +} diff --git a/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryPriceQuery.php b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryPriceQuery.php new file mode 100644 index 00000000..5f8fa717 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Base/ChronopostHomeDeliveryPriceQuery.php @@ -0,0 +1,780 @@ +setModelAlias($modelAlias); + } + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ChildChronopostHomeDeliveryPrice|array|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = ChronopostHomeDeliveryPriceTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildChronopostHomeDeliveryPrice A model object, or null if the key is not found + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT ID, AREA_ID, DELIVERY_MODE_ID, WEIGHT_MAX, PRICE_MAX, FRANCO_MIN_PRICE, PRICE FROM chronopost_home_delivery_price WHERE ID = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e); + } + $obj = null; + if ($row = $stmt->fetch(\PDO::FETCH_NUM)) { + $obj = new ChildChronopostHomeDeliveryPrice(); + $obj->hydrate($row); + ChronopostHomeDeliveryPriceTableMap::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildChronopostHomeDeliveryPrice|array|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($dataFetcher); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id > 12 + * + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::ID, $id, $comparison); + } + + /** + * Filter the query on the area_id column + * + * Example usage: + * + * $query->filterByAreaId(1234); // WHERE area_id = 1234 + * $query->filterByAreaId(array(12, 34)); // WHERE area_id IN (12, 34) + * $query->filterByAreaId(array('min' => 12)); // WHERE area_id > 12 + * + * + * @see filterByArea() + * + * @param mixed $areaId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByAreaId($areaId = null, $comparison = null) + { + if (is_array($areaId)) { + $useMinMax = false; + if (isset($areaId['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::AREA_ID, $areaId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($areaId['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::AREA_ID, $areaId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::AREA_ID, $areaId, $comparison); + } + + /** + * Filter the query on the delivery_mode_id column + * + * Example usage: + * + * $query->filterByDeliveryModeId(1234); // WHERE delivery_mode_id = 1234 + * $query->filterByDeliveryModeId(array(12, 34)); // WHERE delivery_mode_id IN (12, 34) + * $query->filterByDeliveryModeId(array('min' => 12)); // WHERE delivery_mode_id > 12 + * + * + * @see filterByChronopostHomeDeliveryDeliveryMode() + * + * @param mixed $deliveryModeId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByDeliveryModeId($deliveryModeId = null, $comparison = null) + { + if (is_array($deliveryModeId)) { + $useMinMax = false; + if (isset($deliveryModeId['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID, $deliveryModeId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($deliveryModeId['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID, $deliveryModeId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID, $deliveryModeId, $comparison); + } + + /** + * Filter the query on the weight_max column + * + * Example usage: + * + * $query->filterByWeightMax(1234); // WHERE weight_max = 1234 + * $query->filterByWeightMax(array(12, 34)); // WHERE weight_max IN (12, 34) + * $query->filterByWeightMax(array('min' => 12)); // WHERE weight_max > 12 + * + * + * @param mixed $weightMax The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByWeightMax($weightMax = null, $comparison = null) + { + if (is_array($weightMax)) { + $useMinMax = false; + if (isset($weightMax['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX, $weightMax['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($weightMax['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX, $weightMax['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX, $weightMax, $comparison); + } + + /** + * Filter the query on the price_max column + * + * Example usage: + * + * $query->filterByPriceMax(1234); // WHERE price_max = 1234 + * $query->filterByPriceMax(array(12, 34)); // WHERE price_max IN (12, 34) + * $query->filterByPriceMax(array('min' => 12)); // WHERE price_max > 12 + * + * + * @param mixed $priceMax The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByPriceMax($priceMax = null, $comparison = null) + { + if (is_array($priceMax)) { + $useMinMax = false; + if (isset($priceMax['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::PRICE_MAX, $priceMax['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($priceMax['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::PRICE_MAX, $priceMax['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::PRICE_MAX, $priceMax, $comparison); + } + + /** + * Filter the query on the franco_min_price column + * + * Example usage: + * + * $query->filterByFrancoMinPrice(1234); // WHERE franco_min_price = 1234 + * $query->filterByFrancoMinPrice(array(12, 34)); // WHERE franco_min_price IN (12, 34) + * $query->filterByFrancoMinPrice(array('min' => 12)); // WHERE franco_min_price > 12 + * + * + * @param mixed $francoMinPrice The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByFrancoMinPrice($francoMinPrice = null, $comparison = null) + { + if (is_array($francoMinPrice)) { + $useMinMax = false; + if (isset($francoMinPrice['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE, $francoMinPrice['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($francoMinPrice['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE, $francoMinPrice['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE, $francoMinPrice, $comparison); + } + + /** + * Filter the query on the price column + * + * Example usage: + * + * $query->filterByPrice(1234); // WHERE price = 1234 + * $query->filterByPrice(array(12, 34)); // WHERE price IN (12, 34) + * $query->filterByPrice(array('min' => 12)); // WHERE price > 12 + * + * + * @param mixed $price The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByPrice($price = null, $comparison = null) + { + if (is_array($price)) { + $useMinMax = false; + if (isset($price['min'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::PRICE, $price['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($price['max'])) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::PRICE, $price['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::PRICE, $price, $comparison); + } + + /** + * Filter the query by a related \ChronopostHomeDelivery\Model\Thelia\Model\Area object + * + * @param \ChronopostHomeDelivery\Model\Thelia\Model\Area|ObjectCollection $area The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByArea($area, $comparison = null) + { + if ($area instanceof \ChronopostHomeDelivery\Model\Thelia\Model\Area) { + return $this + ->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::AREA_ID, $area->getId(), $comparison); + } elseif ($area instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::AREA_ID, $area->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByArea() only accepts arguments of type \ChronopostHomeDelivery\Model\Thelia\Model\Area or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the Area relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function joinArea($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('Area'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'Area'); + } + + return $this; + } + + /** + * Use the Area relation Area object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \ChronopostHomeDelivery\Model\Thelia\Model\AreaQuery A secondary query class using the current class as primary query + */ + public function useAreaQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinArea($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'Area', '\ChronopostHomeDelivery\Model\Thelia\Model\AreaQuery'); + } + + /** + * Filter the query by a related \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode object + * + * @param \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode|ObjectCollection $chronopostHomeDeliveryDeliveryMode The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function filterByChronopostHomeDeliveryDeliveryMode($chronopostHomeDeliveryDeliveryMode, $comparison = null) + { + if ($chronopostHomeDeliveryDeliveryMode instanceof \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode) { + return $this + ->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID, $chronopostHomeDeliveryDeliveryMode->getId(), $comparison); + } elseif ($chronopostHomeDeliveryDeliveryMode instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID, $chronopostHomeDeliveryDeliveryMode->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByChronopostHomeDeliveryDeliveryMode() only accepts arguments of type \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the ChronopostHomeDeliveryDeliveryMode relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function joinChronopostHomeDeliveryDeliveryMode($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('ChronopostHomeDeliveryDeliveryMode'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'ChronopostHomeDeliveryDeliveryMode'); + } + + return $this; + } + + /** + * Use the ChronopostHomeDeliveryDeliveryMode relation ChronopostHomeDeliveryDeliveryMode object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryModeQuery A secondary query class using the current class as primary query + */ + public function useChronopostHomeDeliveryDeliveryModeQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinChronopostHomeDeliveryDeliveryMode($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'ChronopostHomeDeliveryDeliveryMode', '\ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryModeQuery'); + } + + /** + * Exclude object from result + * + * @param ChildChronopostHomeDeliveryPrice $chronopostHomeDeliveryPrice Object to remove from the list of results + * + * @return ChildChronopostHomeDeliveryPriceQuery The current query, for fluid interface + */ + public function prune($chronopostHomeDeliveryPrice = null) + { + if ($chronopostHomeDeliveryPrice) { + $this->addUsingAlias(ChronopostHomeDeliveryPriceTableMap::ID, $chronopostHomeDeliveryPrice->getId(), Criteria::NOT_EQUAL); + } + + return $this; + } + + /** + * Deletes all rows from the chronopost_home_delivery_price table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public function doDeleteAll(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += parent::doDeleteAll($con); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + ChronopostHomeDeliveryPriceTableMap::clearInstancePool(); + ChronopostHomeDeliveryPriceTableMap::clearRelatedInstancePool(); + + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $affectedRows; + } + + /** + * Performs a DELETE on the database, given a ChildChronopostHomeDeliveryPrice or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChildChronopostHomeDeliveryPrice object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public function delete(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + } + + $criteria = $this; + + // Set the correct dbName + $criteria->setDbName(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + + ChronopostHomeDeliveryPriceTableMap::removeInstanceFromPool($criteria); + + $affectedRows += ModelCriteria::delete($con); + ChronopostHomeDeliveryPriceTableMap::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + } + +} // ChronopostHomeDeliveryPriceQuery diff --git a/local/modules/ChronopostHomeDelivery/Model/ChronopostHomeDeliveryAreaFreeshipping.php b/local/modules/ChronopostHomeDelivery/Model/ChronopostHomeDeliveryAreaFreeshipping.php new file mode 100644 index 00000000..2790dca8 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/ChronopostHomeDeliveryAreaFreeshipping.php @@ -0,0 +1,10 @@ + array('Id', 'AreaId', 'DeliveryModeId', 'CartAmount', ), + self::TYPE_STUDLYPHPNAME => array('id', 'areaId', 'deliveryModeId', 'cartAmount', ), + self::TYPE_COLNAME => array(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID, ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID, ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT, ), + self::TYPE_RAW_COLNAME => array('ID', 'AREA_ID', 'DELIVERY_MODE_ID', 'CART_AMOUNT', ), + self::TYPE_FIELDNAME => array('id', 'area_id', 'delivery_mode_id', 'cart_amount', ), + self::TYPE_NUM => array(0, 1, 2, 3, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + self::TYPE_PHPNAME => array('Id' => 0, 'AreaId' => 1, 'DeliveryModeId' => 2, 'CartAmount' => 3, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'areaId' => 1, 'deliveryModeId' => 2, 'cartAmount' => 3, ), + self::TYPE_COLNAME => array(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID => 0, ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID => 1, ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID => 2, ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT => 3, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'AREA_ID' => 1, 'DELIVERY_MODE_ID' => 2, 'CART_AMOUNT' => 3, ), + self::TYPE_FIELDNAME => array('id' => 0, 'area_id' => 1, 'delivery_mode_id' => 2, 'cart_amount' => 3, ), + self::TYPE_NUM => array(0, 1, 2, 3, ) + ); + + /** + * Initialize the table attributes and columns + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('chronopost_home_delivery_area_freeshipping'); + $this->setPhpName('ChronopostHomeDeliveryAreaFreeshipping'); + $this->setClassName('\\ChronopostHomeDelivery\\Model\\ChronopostHomeDeliveryAreaFreeshipping'); + $this->setPackage('ChronopostHomeDelivery.Model'); + $this->setUseIdGenerator(true); + // columns + $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); + $this->addForeignKey('AREA_ID', 'AreaId', 'INTEGER', 'area', 'ID', true, null, null); + $this->addForeignKey('DELIVERY_MODE_ID', 'DeliveryModeId', 'INTEGER', 'chronopost_home_delivery_delivery_mode', 'ID', true, null, null); + $this->addColumn('CART_AMOUNT', 'CartAmount', 'DECIMAL', false, 16, 0); + } // initialize() + + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('Area', '\\ChronopostHomeDelivery\\Model\\Thelia\\Model\\Area', RelationMap::MANY_TO_ONE, array('area_id' => 'id', ), 'RESTRICT', 'RESTRICT'); + $this->addRelation('ChronopostHomeDeliveryDeliveryMode', '\\ChronopostHomeDelivery\\Model\\ChronopostHomeDeliveryDeliveryMode', RelationMap::MANY_TO_ONE, array('delivery_mode_id' => 'id', ), 'RESTRICT', 'RESTRICT'); + } // buildRelations() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + */ + public static function getPrimaryKeyHashFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + // If the PK cannot be derived from the row, return NULL. + if ($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)] === null) { + return null; + } + + return (string) $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + * + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + + return (int) $row[ + $indexType == TableMap::TYPE_NUM + ? 0 + $offset + : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType) + ]; + } + + /** + * The class that the tableMap will make instances of. + * + * If $withPrefix is true, the returned path + * uses a dot-path notation which is translated into a path + * relative to a location on the PHP include_path. + * (e.g. path.to.MyClass -> 'path/to/MyClass.php') + * + * @param boolean $withPrefix Whether or not to return the path with the class name + * @return string path.to.ClassName + */ + public static function getOMClass($withPrefix = true) + { + return $withPrefix ? ChronopostHomeDeliveryAreaFreeshippingTableMap::CLASS_DEFAULT : ChronopostHomeDeliveryAreaFreeshippingTableMap::OM_CLASS; + } + + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row row returned by DataFetcher->fetch(). + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (ChronopostHomeDeliveryAreaFreeshipping object, last column rank) + */ + public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + $key = ChronopostHomeDeliveryAreaFreeshippingTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); + if (null !== ($obj = ChronopostHomeDeliveryAreaFreeshippingTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $offset, true); // rehydrate + $col = $offset + ChronopostHomeDeliveryAreaFreeshippingTableMap::NUM_HYDRATE_COLUMNS; + } else { + $cls = ChronopostHomeDeliveryAreaFreeshippingTableMap::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $offset, false, $indexType); + ChronopostHomeDeliveryAreaFreeshippingTableMap::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @param DataFetcherInterface $dataFetcher + * @return array + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(DataFetcherInterface $dataFetcher) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = static::getOMClass(false); + // populate the object(s) + while ($row = $dataFetcher->fetch()) { + $key = ChronopostHomeDeliveryAreaFreeshippingTableMap::getPrimaryKeyHashFromRow($row, 0, $dataFetcher->getIndexType()); + if (null !== ($obj = ChronopostHomeDeliveryAreaFreeshippingTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + ChronopostHomeDeliveryAreaFreeshippingTableMap::addInstanceToPool($obj, $key); + } // if key exists + } + + return $results; + } + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID); + $criteria->addSelectColumn(ChronopostHomeDeliveryAreaFreeshippingTableMap::AREA_ID); + $criteria->addSelectColumn(ChronopostHomeDeliveryAreaFreeshippingTableMap::DELIVERY_MODE_ID); + $criteria->addSelectColumn(ChronopostHomeDeliveryAreaFreeshippingTableMap::CART_AMOUNT); + } else { + $criteria->addSelectColumn($alias . '.ID'); + $criteria->addSelectColumn($alias . '.AREA_ID'); + $criteria->addSelectColumn($alias . '.DELIVERY_MODE_ID'); + $criteria->addSelectColumn($alias . '.CART_AMOUNT'); + } + } + + /** + * Returns the TableMap related to this object. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getServiceContainer()->getDatabaseMap(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME)->getTable(ChronopostHomeDeliveryAreaFreeshippingTableMap::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this tableMap class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getServiceContainer()->getDatabaseMap(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + if (!$dbMap->hasTable(ChronopostHomeDeliveryAreaFreeshippingTableMap::TABLE_NAME)) { + $dbMap->addTableObject(new ChronopostHomeDeliveryAreaFreeshippingTableMap()); + } + } + + /** + * Performs a DELETE on the database, given a ChronopostHomeDeliveryAreaFreeshipping or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChronopostHomeDeliveryAreaFreeshipping object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + } + + if ($values instanceof Criteria) { + // rename for clarity + $criteria = $values; + } elseif ($values instanceof \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryAreaFreeshipping) { // it's a model object + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + $criteria->add(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID, (array) $values, Criteria::IN); + } + + $query = ChronopostHomeDeliveryAreaFreeshippingQuery::create()->mergeWith($criteria); + + if ($values instanceof Criteria) { ChronopostHomeDeliveryAreaFreeshippingTableMap::clearInstancePool(); + } elseif (!is_object($values)) { // it's a primary key, or an array of pks + foreach ((array) $values as $singleval) { ChronopostHomeDeliveryAreaFreeshippingTableMap::removeInstanceFromPool($singleval); + } + } + + return $query->delete($con); + } + + /** + * Deletes all rows from the chronopost_home_delivery_area_freeshipping table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public static function doDeleteAll(ConnectionInterface $con = null) + { + return ChronopostHomeDeliveryAreaFreeshippingQuery::create()->doDeleteAll($con); + } + + /** + * Performs an INSERT on the database, given a ChronopostHomeDeliveryAreaFreeshipping or Criteria object. + * + * @param mixed $criteria Criteria or ChronopostHomeDeliveryAreaFreeshipping object containing data that is used to create the INSERT statement. + * @param ConnectionInterface $con the ConnectionInterface connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($criteria, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryAreaFreeshippingTableMap::DATABASE_NAME); + } + + if ($criteria instanceof Criteria) { + $criteria = clone $criteria; // rename for clarity + } else { + $criteria = $criteria->buildCriteria(); // build Criteria from ChronopostHomeDeliveryAreaFreeshipping object + } + + if ($criteria->containsKey(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID) && $criteria->keyContainsValue(ChronopostHomeDeliveryAreaFreeshippingTableMap::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.ChronopostHomeDeliveryAreaFreeshippingTableMap::ID.')'); + } + + + // Set the correct dbName + $query = ChronopostHomeDeliveryAreaFreeshippingQuery::create()->mergeWith($criteria); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = $query->doInsert($con); + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + +} // ChronopostHomeDeliveryAreaFreeshippingTableMap +// This is the static code needed to register the TableMap for this table with the main Propel class. +// +ChronopostHomeDeliveryAreaFreeshippingTableMap::buildTableMap(); diff --git a/local/modules/ChronopostHomeDelivery/Model/Map/ChronopostHomeDeliveryDeliveryModeTableMap.php b/local/modules/ChronopostHomeDelivery/Model/Map/ChronopostHomeDeliveryDeliveryModeTableMap.php new file mode 100644 index 00000000..a2093f8a --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Map/ChronopostHomeDeliveryDeliveryModeTableMap.php @@ -0,0 +1,436 @@ + array('Id', 'Title', 'Code', 'FreeshippingActive', 'FreeshippingFrom', ), + self::TYPE_STUDLYPHPNAME => array('id', 'title', 'code', 'freeshippingActive', 'freeshippingFrom', ), + self::TYPE_COLNAME => array(ChronopostHomeDeliveryDeliveryModeTableMap::ID, ChronopostHomeDeliveryDeliveryModeTableMap::TITLE, ChronopostHomeDeliveryDeliveryModeTableMap::CODE, ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_ACTIVE, ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM, ), + self::TYPE_RAW_COLNAME => array('ID', 'TITLE', 'CODE', 'FREESHIPPING_ACTIVE', 'FREESHIPPING_FROM', ), + self::TYPE_FIELDNAME => array('id', 'title', 'code', 'freeshipping_active', 'freeshipping_from', ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + self::TYPE_PHPNAME => array('Id' => 0, 'Title' => 1, 'Code' => 2, 'FreeshippingActive' => 3, 'FreeshippingFrom' => 4, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'title' => 1, 'code' => 2, 'freeshippingActive' => 3, 'freeshippingFrom' => 4, ), + self::TYPE_COLNAME => array(ChronopostHomeDeliveryDeliveryModeTableMap::ID => 0, ChronopostHomeDeliveryDeliveryModeTableMap::TITLE => 1, ChronopostHomeDeliveryDeliveryModeTableMap::CODE => 2, ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_ACTIVE => 3, ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM => 4, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'TITLE' => 1, 'CODE' => 2, 'FREESHIPPING_ACTIVE' => 3, 'FREESHIPPING_FROM' => 4, ), + self::TYPE_FIELDNAME => array('id' => 0, 'title' => 1, 'code' => 2, 'freeshipping_active' => 3, 'freeshipping_from' => 4, ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, ) + ); + + /** + * Initialize the table attributes and columns + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('chronopost_home_delivery_delivery_mode'); + $this->setPhpName('ChronopostHomeDeliveryDeliveryMode'); + $this->setClassName('\\ChronopostHomeDelivery\\Model\\ChronopostHomeDeliveryDeliveryMode'); + $this->setPackage('ChronopostHomeDelivery.Model'); + $this->setUseIdGenerator(true); + // columns + $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); + $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); + $this->addColumn('CODE', 'Code', 'VARCHAR', true, 55, null); + $this->addColumn('FREESHIPPING_ACTIVE', 'FreeshippingActive', 'BOOLEAN', false, 1, null); + $this->addColumn('FREESHIPPING_FROM', 'FreeshippingFrom', 'FLOAT', false, null, null); + } // initialize() + + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('ChronopostHomeDeliveryPrice', '\\ChronopostHomeDelivery\\Model\\ChronopostHomeDeliveryPrice', RelationMap::ONE_TO_MANY, array('id' => 'delivery_mode_id', ), 'RESTRICT', 'RESTRICT', 'ChronopostHomeDeliveryPrices'); + $this->addRelation('ChronopostHomeDeliveryAreaFreeshipping', '\\ChronopostHomeDelivery\\Model\\ChronopostHomeDeliveryAreaFreeshipping', RelationMap::ONE_TO_MANY, array('id' => 'delivery_mode_id', ), 'RESTRICT', 'RESTRICT', 'ChronopostHomeDeliveryAreaFreeshippings'); + } // buildRelations() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + */ + public static function getPrimaryKeyHashFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + // If the PK cannot be derived from the row, return NULL. + if ($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)] === null) { + return null; + } + + return (string) $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + * + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + + return (int) $row[ + $indexType == TableMap::TYPE_NUM + ? 0 + $offset + : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType) + ]; + } + + /** + * The class that the tableMap will make instances of. + * + * If $withPrefix is true, the returned path + * uses a dot-path notation which is translated into a path + * relative to a location on the PHP include_path. + * (e.g. path.to.MyClass -> 'path/to/MyClass.php') + * + * @param boolean $withPrefix Whether or not to return the path with the class name + * @return string path.to.ClassName + */ + public static function getOMClass($withPrefix = true) + { + return $withPrefix ? ChronopostHomeDeliveryDeliveryModeTableMap::CLASS_DEFAULT : ChronopostHomeDeliveryDeliveryModeTableMap::OM_CLASS; + } + + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row row returned by DataFetcher->fetch(). + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (ChronopostHomeDeliveryDeliveryMode object, last column rank) + */ + public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + $key = ChronopostHomeDeliveryDeliveryModeTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); + if (null !== ($obj = ChronopostHomeDeliveryDeliveryModeTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $offset, true); // rehydrate + $col = $offset + ChronopostHomeDeliveryDeliveryModeTableMap::NUM_HYDRATE_COLUMNS; + } else { + $cls = ChronopostHomeDeliveryDeliveryModeTableMap::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $offset, false, $indexType); + ChronopostHomeDeliveryDeliveryModeTableMap::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @param DataFetcherInterface $dataFetcher + * @return array + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(DataFetcherInterface $dataFetcher) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = static::getOMClass(false); + // populate the object(s) + while ($row = $dataFetcher->fetch()) { + $key = ChronopostHomeDeliveryDeliveryModeTableMap::getPrimaryKeyHashFromRow($row, 0, $dataFetcher->getIndexType()); + if (null !== ($obj = ChronopostHomeDeliveryDeliveryModeTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + ChronopostHomeDeliveryDeliveryModeTableMap::addInstanceToPool($obj, $key); + } // if key exists + } + + return $results; + } + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(ChronopostHomeDeliveryDeliveryModeTableMap::ID); + $criteria->addSelectColumn(ChronopostHomeDeliveryDeliveryModeTableMap::TITLE); + $criteria->addSelectColumn(ChronopostHomeDeliveryDeliveryModeTableMap::CODE); + $criteria->addSelectColumn(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_ACTIVE); + $criteria->addSelectColumn(ChronopostHomeDeliveryDeliveryModeTableMap::FREESHIPPING_FROM); + } else { + $criteria->addSelectColumn($alias . '.ID'); + $criteria->addSelectColumn($alias . '.TITLE'); + $criteria->addSelectColumn($alias . '.CODE'); + $criteria->addSelectColumn($alias . '.FREESHIPPING_ACTIVE'); + $criteria->addSelectColumn($alias . '.FREESHIPPING_FROM'); + } + } + + /** + * Returns the TableMap related to this object. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getServiceContainer()->getDatabaseMap(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME)->getTable(ChronopostHomeDeliveryDeliveryModeTableMap::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this tableMap class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getServiceContainer()->getDatabaseMap(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + if (!$dbMap->hasTable(ChronopostHomeDeliveryDeliveryModeTableMap::TABLE_NAME)) { + $dbMap->addTableObject(new ChronopostHomeDeliveryDeliveryModeTableMap()); + } + } + + /** + * Performs a DELETE on the database, given a ChronopostHomeDeliveryDeliveryMode or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChronopostHomeDeliveryDeliveryMode object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + } + + if ($values instanceof Criteria) { + // rename for clarity + $criteria = $values; + } elseif ($values instanceof \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryDeliveryMode) { // it's a model object + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + $criteria->add(ChronopostHomeDeliveryDeliveryModeTableMap::ID, (array) $values, Criteria::IN); + } + + $query = ChronopostHomeDeliveryDeliveryModeQuery::create()->mergeWith($criteria); + + if ($values instanceof Criteria) { ChronopostHomeDeliveryDeliveryModeTableMap::clearInstancePool(); + } elseif (!is_object($values)) { // it's a primary key, or an array of pks + foreach ((array) $values as $singleval) { ChronopostHomeDeliveryDeliveryModeTableMap::removeInstanceFromPool($singleval); + } + } + + return $query->delete($con); + } + + /** + * Deletes all rows from the chronopost_home_delivery_delivery_mode table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public static function doDeleteAll(ConnectionInterface $con = null) + { + return ChronopostHomeDeliveryDeliveryModeQuery::create()->doDeleteAll($con); + } + + /** + * Performs an INSERT on the database, given a ChronopostHomeDeliveryDeliveryMode or Criteria object. + * + * @param mixed $criteria Criteria or ChronopostHomeDeliveryDeliveryMode object containing data that is used to create the INSERT statement. + * @param ConnectionInterface $con the ConnectionInterface connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($criteria, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryDeliveryModeTableMap::DATABASE_NAME); + } + + if ($criteria instanceof Criteria) { + $criteria = clone $criteria; // rename for clarity + } else { + $criteria = $criteria->buildCriteria(); // build Criteria from ChronopostHomeDeliveryDeliveryMode object + } + + if ($criteria->containsKey(ChronopostHomeDeliveryDeliveryModeTableMap::ID) && $criteria->keyContainsValue(ChronopostHomeDeliveryDeliveryModeTableMap::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.ChronopostHomeDeliveryDeliveryModeTableMap::ID.')'); + } + + + // Set the correct dbName + $query = ChronopostHomeDeliveryDeliveryModeQuery::create()->mergeWith($criteria); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = $query->doInsert($con); + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + +} // ChronopostHomeDeliveryDeliveryModeTableMap +// This is the static code needed to register the TableMap for this table with the main Propel class. +// +ChronopostHomeDeliveryDeliveryModeTableMap::buildTableMap(); diff --git a/local/modules/ChronopostHomeDelivery/Model/Map/ChronopostHomeDeliveryOrderTableMap.php b/local/modules/ChronopostHomeDelivery/Model/Map/ChronopostHomeDeliveryOrderTableMap.php new file mode 100644 index 00000000..d19e0d50 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Map/ChronopostHomeDeliveryOrderTableMap.php @@ -0,0 +1,443 @@ + array('Id', 'OrderId', 'DeliveryType', 'DeliveryCode', 'LabelDirectory', 'LabelNumber', ), + self::TYPE_STUDLYPHPNAME => array('id', 'orderId', 'deliveryType', 'deliveryCode', 'labelDirectory', 'labelNumber', ), + self::TYPE_COLNAME => array(ChronopostHomeDeliveryOrderTableMap::ID, ChronopostHomeDeliveryOrderTableMap::ORDER_ID, ChronopostHomeDeliveryOrderTableMap::DELIVERY_TYPE, ChronopostHomeDeliveryOrderTableMap::DELIVERY_CODE, ChronopostHomeDeliveryOrderTableMap::LABEL_DIRECTORY, ChronopostHomeDeliveryOrderTableMap::LABEL_NUMBER, ), + self::TYPE_RAW_COLNAME => array('ID', 'ORDER_ID', 'DELIVERY_TYPE', 'DELIVERY_CODE', 'LABEL_DIRECTORY', 'LABEL_NUMBER', ), + self::TYPE_FIELDNAME => array('id', 'order_id', 'delivery_type', 'delivery_code', 'label_directory', 'label_number', ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + self::TYPE_PHPNAME => array('Id' => 0, 'OrderId' => 1, 'DeliveryType' => 2, 'DeliveryCode' => 3, 'LabelDirectory' => 4, 'LabelNumber' => 5, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'orderId' => 1, 'deliveryType' => 2, 'deliveryCode' => 3, 'labelDirectory' => 4, 'labelNumber' => 5, ), + self::TYPE_COLNAME => array(ChronopostHomeDeliveryOrderTableMap::ID => 0, ChronopostHomeDeliveryOrderTableMap::ORDER_ID => 1, ChronopostHomeDeliveryOrderTableMap::DELIVERY_TYPE => 2, ChronopostHomeDeliveryOrderTableMap::DELIVERY_CODE => 3, ChronopostHomeDeliveryOrderTableMap::LABEL_DIRECTORY => 4, ChronopostHomeDeliveryOrderTableMap::LABEL_NUMBER => 5, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'ORDER_ID' => 1, 'DELIVERY_TYPE' => 2, 'DELIVERY_CODE' => 3, 'LABEL_DIRECTORY' => 4, 'LABEL_NUMBER' => 5, ), + self::TYPE_FIELDNAME => array('id' => 0, 'order_id' => 1, 'delivery_type' => 2, 'delivery_code' => 3, 'label_directory' => 4, 'label_number' => 5, ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, ) + ); + + /** + * Initialize the table attributes and columns + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('chronopost_home_delivery_order'); + $this->setPhpName('ChronopostHomeDeliveryOrder'); + $this->setClassName('\\ChronopostHomeDelivery\\Model\\ChronopostHomeDeliveryOrder'); + $this->setPackage('ChronopostHomeDelivery.Model'); + $this->setUseIdGenerator(true); + // columns + $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); + $this->addForeignKey('ORDER_ID', 'OrderId', 'INTEGER', 'order', 'ID', true, null, null); + $this->addColumn('DELIVERY_TYPE', 'DeliveryType', 'LONGVARCHAR', false, null, null); + $this->addColumn('DELIVERY_CODE', 'DeliveryCode', 'LONGVARCHAR', false, null, null); + $this->addColumn('LABEL_DIRECTORY', 'LabelDirectory', 'LONGVARCHAR', false, null, null); + $this->addColumn('LABEL_NUMBER', 'LabelNumber', 'LONGVARCHAR', false, null, null); + } // initialize() + + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('Order', '\\ChronopostHomeDelivery\\Model\\Thelia\\Model\\Order', RelationMap::MANY_TO_ONE, array('order_id' => 'id', ), 'CASCADE', 'RESTRICT'); + } // buildRelations() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + */ + public static function getPrimaryKeyHashFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + // If the PK cannot be derived from the row, return NULL. + if ($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)] === null) { + return null; + } + + return (string) $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + * + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + + return (int) $row[ + $indexType == TableMap::TYPE_NUM + ? 0 + $offset + : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType) + ]; + } + + /** + * The class that the tableMap will make instances of. + * + * If $withPrefix is true, the returned path + * uses a dot-path notation which is translated into a path + * relative to a location on the PHP include_path. + * (e.g. path.to.MyClass -> 'path/to/MyClass.php') + * + * @param boolean $withPrefix Whether or not to return the path with the class name + * @return string path.to.ClassName + */ + public static function getOMClass($withPrefix = true) + { + return $withPrefix ? ChronopostHomeDeliveryOrderTableMap::CLASS_DEFAULT : ChronopostHomeDeliveryOrderTableMap::OM_CLASS; + } + + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row row returned by DataFetcher->fetch(). + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (ChronopostHomeDeliveryOrder object, last column rank) + */ + public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + $key = ChronopostHomeDeliveryOrderTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); + if (null !== ($obj = ChronopostHomeDeliveryOrderTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $offset, true); // rehydrate + $col = $offset + ChronopostHomeDeliveryOrderTableMap::NUM_HYDRATE_COLUMNS; + } else { + $cls = ChronopostHomeDeliveryOrderTableMap::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $offset, false, $indexType); + ChronopostHomeDeliveryOrderTableMap::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @param DataFetcherInterface $dataFetcher + * @return array + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(DataFetcherInterface $dataFetcher) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = static::getOMClass(false); + // populate the object(s) + while ($row = $dataFetcher->fetch()) { + $key = ChronopostHomeDeliveryOrderTableMap::getPrimaryKeyHashFromRow($row, 0, $dataFetcher->getIndexType()); + if (null !== ($obj = ChronopostHomeDeliveryOrderTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + ChronopostHomeDeliveryOrderTableMap::addInstanceToPool($obj, $key); + } // if key exists + } + + return $results; + } + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(ChronopostHomeDeliveryOrderTableMap::ID); + $criteria->addSelectColumn(ChronopostHomeDeliveryOrderTableMap::ORDER_ID); + $criteria->addSelectColumn(ChronopostHomeDeliveryOrderTableMap::DELIVERY_TYPE); + $criteria->addSelectColumn(ChronopostHomeDeliveryOrderTableMap::DELIVERY_CODE); + $criteria->addSelectColumn(ChronopostHomeDeliveryOrderTableMap::LABEL_DIRECTORY); + $criteria->addSelectColumn(ChronopostHomeDeliveryOrderTableMap::LABEL_NUMBER); + } else { + $criteria->addSelectColumn($alias . '.ID'); + $criteria->addSelectColumn($alias . '.ORDER_ID'); + $criteria->addSelectColumn($alias . '.DELIVERY_TYPE'); + $criteria->addSelectColumn($alias . '.DELIVERY_CODE'); + $criteria->addSelectColumn($alias . '.LABEL_DIRECTORY'); + $criteria->addSelectColumn($alias . '.LABEL_NUMBER'); + } + } + + /** + * Returns the TableMap related to this object. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getServiceContainer()->getDatabaseMap(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME)->getTable(ChronopostHomeDeliveryOrderTableMap::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this tableMap class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getServiceContainer()->getDatabaseMap(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + if (!$dbMap->hasTable(ChronopostHomeDeliveryOrderTableMap::TABLE_NAME)) { + $dbMap->addTableObject(new ChronopostHomeDeliveryOrderTableMap()); + } + } + + /** + * Performs a DELETE on the database, given a ChronopostHomeDeliveryOrder or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChronopostHomeDeliveryOrder object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + } + + if ($values instanceof Criteria) { + // rename for clarity + $criteria = $values; + } elseif ($values instanceof \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryOrder) { // it's a model object + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + $criteria->add(ChronopostHomeDeliveryOrderTableMap::ID, (array) $values, Criteria::IN); + } + + $query = ChronopostHomeDeliveryOrderQuery::create()->mergeWith($criteria); + + if ($values instanceof Criteria) { ChronopostHomeDeliveryOrderTableMap::clearInstancePool(); + } elseif (!is_object($values)) { // it's a primary key, or an array of pks + foreach ((array) $values as $singleval) { ChronopostHomeDeliveryOrderTableMap::removeInstanceFromPool($singleval); + } + } + + return $query->delete($con); + } + + /** + * Deletes all rows from the chronopost_home_delivery_order table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public static function doDeleteAll(ConnectionInterface $con = null) + { + return ChronopostHomeDeliveryOrderQuery::create()->doDeleteAll($con); + } + + /** + * Performs an INSERT on the database, given a ChronopostHomeDeliveryOrder or Criteria object. + * + * @param mixed $criteria Criteria or ChronopostHomeDeliveryOrder object containing data that is used to create the INSERT statement. + * @param ConnectionInterface $con the ConnectionInterface connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($criteria, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryOrderTableMap::DATABASE_NAME); + } + + if ($criteria instanceof Criteria) { + $criteria = clone $criteria; // rename for clarity + } else { + $criteria = $criteria->buildCriteria(); // build Criteria from ChronopostHomeDeliveryOrder object + } + + if ($criteria->containsKey(ChronopostHomeDeliveryOrderTableMap::ID) && $criteria->keyContainsValue(ChronopostHomeDeliveryOrderTableMap::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.ChronopostHomeDeliveryOrderTableMap::ID.')'); + } + + + // Set the correct dbName + $query = ChronopostHomeDeliveryOrderQuery::create()->mergeWith($criteria); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = $query->doInsert($con); + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + +} // ChronopostHomeDeliveryOrderTableMap +// This is the static code needed to register the TableMap for this table with the main Propel class. +// +ChronopostHomeDeliveryOrderTableMap::buildTableMap(); diff --git a/local/modules/ChronopostHomeDelivery/Model/Map/ChronopostHomeDeliveryPriceTableMap.php b/local/modules/ChronopostHomeDelivery/Model/Map/ChronopostHomeDeliveryPriceTableMap.php new file mode 100644 index 00000000..cb135f45 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Model/Map/ChronopostHomeDeliveryPriceTableMap.php @@ -0,0 +1,452 @@ + array('Id', 'AreaId', 'DeliveryModeId', 'WeightMax', 'PriceMax', 'FrancoMinPrice', 'Price', ), + self::TYPE_STUDLYPHPNAME => array('id', 'areaId', 'deliveryModeId', 'weightMax', 'priceMax', 'francoMinPrice', 'price', ), + self::TYPE_COLNAME => array(ChronopostHomeDeliveryPriceTableMap::ID, ChronopostHomeDeliveryPriceTableMap::AREA_ID, ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID, ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX, ChronopostHomeDeliveryPriceTableMap::PRICE_MAX, ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE, ChronopostHomeDeliveryPriceTableMap::PRICE, ), + self::TYPE_RAW_COLNAME => array('ID', 'AREA_ID', 'DELIVERY_MODE_ID', 'WEIGHT_MAX', 'PRICE_MAX', 'FRANCO_MIN_PRICE', 'PRICE', ), + self::TYPE_FIELDNAME => array('id', 'area_id', 'delivery_mode_id', 'weight_max', 'price_max', 'franco_min_price', 'price', ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + self::TYPE_PHPNAME => array('Id' => 0, 'AreaId' => 1, 'DeliveryModeId' => 2, 'WeightMax' => 3, 'PriceMax' => 4, 'FrancoMinPrice' => 5, 'Price' => 6, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'areaId' => 1, 'deliveryModeId' => 2, 'weightMax' => 3, 'priceMax' => 4, 'francoMinPrice' => 5, 'price' => 6, ), + self::TYPE_COLNAME => array(ChronopostHomeDeliveryPriceTableMap::ID => 0, ChronopostHomeDeliveryPriceTableMap::AREA_ID => 1, ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID => 2, ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX => 3, ChronopostHomeDeliveryPriceTableMap::PRICE_MAX => 4, ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE => 5, ChronopostHomeDeliveryPriceTableMap::PRICE => 6, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'AREA_ID' => 1, 'DELIVERY_MODE_ID' => 2, 'WEIGHT_MAX' => 3, 'PRICE_MAX' => 4, 'FRANCO_MIN_PRICE' => 5, 'PRICE' => 6, ), + self::TYPE_FIELDNAME => array('id' => 0, 'area_id' => 1, 'delivery_mode_id' => 2, 'weight_max' => 3, 'price_max' => 4, 'franco_min_price' => 5, 'price' => 6, ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, ) + ); + + /** + * Initialize the table attributes and columns + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('chronopost_home_delivery_price'); + $this->setPhpName('ChronopostHomeDeliveryPrice'); + $this->setClassName('\\ChronopostHomeDelivery\\Model\\ChronopostHomeDeliveryPrice'); + $this->setPackage('ChronopostHomeDelivery.Model'); + $this->setUseIdGenerator(true); + // columns + $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); + $this->addForeignKey('AREA_ID', 'AreaId', 'INTEGER', 'area', 'ID', true, null, null); + $this->addForeignKey('DELIVERY_MODE_ID', 'DeliveryModeId', 'INTEGER', 'chronopost_home_delivery_delivery_mode', 'ID', true, null, null); + $this->addColumn('WEIGHT_MAX', 'WeightMax', 'FLOAT', false, null, null); + $this->addColumn('PRICE_MAX', 'PriceMax', 'FLOAT', false, null, null); + $this->addColumn('FRANCO_MIN_PRICE', 'FrancoMinPrice', 'FLOAT', false, null, null); + $this->addColumn('PRICE', 'Price', 'FLOAT', true, null, null); + } // initialize() + + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('Area', '\\ChronopostHomeDelivery\\Model\\Thelia\\Model\\Area', RelationMap::MANY_TO_ONE, array('area_id' => 'id', ), 'RESTRICT', 'RESTRICT'); + $this->addRelation('ChronopostHomeDeliveryDeliveryMode', '\\ChronopostHomeDelivery\\Model\\ChronopostHomeDeliveryDeliveryMode', RelationMap::MANY_TO_ONE, array('delivery_mode_id' => 'id', ), 'RESTRICT', 'RESTRICT'); + } // buildRelations() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + */ + public static function getPrimaryKeyHashFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + // If the PK cannot be derived from the row, return NULL. + if ($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)] === null) { + return null; + } + + return (string) $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + * + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + + return (int) $row[ + $indexType == TableMap::TYPE_NUM + ? 0 + $offset + : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType) + ]; + } + + /** + * The class that the tableMap will make instances of. + * + * If $withPrefix is true, the returned path + * uses a dot-path notation which is translated into a path + * relative to a location on the PHP include_path. + * (e.g. path.to.MyClass -> 'path/to/MyClass.php') + * + * @param boolean $withPrefix Whether or not to return the path with the class name + * @return string path.to.ClassName + */ + public static function getOMClass($withPrefix = true) + { + return $withPrefix ? ChronopostHomeDeliveryPriceTableMap::CLASS_DEFAULT : ChronopostHomeDeliveryPriceTableMap::OM_CLASS; + } + + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row row returned by DataFetcher->fetch(). + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (ChronopostHomeDeliveryPrice object, last column rank) + */ + public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + $key = ChronopostHomeDeliveryPriceTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); + if (null !== ($obj = ChronopostHomeDeliveryPriceTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $offset, true); // rehydrate + $col = $offset + ChronopostHomeDeliveryPriceTableMap::NUM_HYDRATE_COLUMNS; + } else { + $cls = ChronopostHomeDeliveryPriceTableMap::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $offset, false, $indexType); + ChronopostHomeDeliveryPriceTableMap::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @param DataFetcherInterface $dataFetcher + * @return array + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(DataFetcherInterface $dataFetcher) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = static::getOMClass(false); + // populate the object(s) + while ($row = $dataFetcher->fetch()) { + $key = ChronopostHomeDeliveryPriceTableMap::getPrimaryKeyHashFromRow($row, 0, $dataFetcher->getIndexType()); + if (null !== ($obj = ChronopostHomeDeliveryPriceTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + ChronopostHomeDeliveryPriceTableMap::addInstanceToPool($obj, $key); + } // if key exists + } + + return $results; + } + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(ChronopostHomeDeliveryPriceTableMap::ID); + $criteria->addSelectColumn(ChronopostHomeDeliveryPriceTableMap::AREA_ID); + $criteria->addSelectColumn(ChronopostHomeDeliveryPriceTableMap::DELIVERY_MODE_ID); + $criteria->addSelectColumn(ChronopostHomeDeliveryPriceTableMap::WEIGHT_MAX); + $criteria->addSelectColumn(ChronopostHomeDeliveryPriceTableMap::PRICE_MAX); + $criteria->addSelectColumn(ChronopostHomeDeliveryPriceTableMap::FRANCO_MIN_PRICE); + $criteria->addSelectColumn(ChronopostHomeDeliveryPriceTableMap::PRICE); + } else { + $criteria->addSelectColumn($alias . '.ID'); + $criteria->addSelectColumn($alias . '.AREA_ID'); + $criteria->addSelectColumn($alias . '.DELIVERY_MODE_ID'); + $criteria->addSelectColumn($alias . '.WEIGHT_MAX'); + $criteria->addSelectColumn($alias . '.PRICE_MAX'); + $criteria->addSelectColumn($alias . '.FRANCO_MIN_PRICE'); + $criteria->addSelectColumn($alias . '.PRICE'); + } + } + + /** + * Returns the TableMap related to this object. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getServiceContainer()->getDatabaseMap(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME)->getTable(ChronopostHomeDeliveryPriceTableMap::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this tableMap class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getServiceContainer()->getDatabaseMap(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + if (!$dbMap->hasTable(ChronopostHomeDeliveryPriceTableMap::TABLE_NAME)) { + $dbMap->addTableObject(new ChronopostHomeDeliveryPriceTableMap()); + } + } + + /** + * Performs a DELETE on the database, given a ChronopostHomeDeliveryPrice or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChronopostHomeDeliveryPrice object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + } + + if ($values instanceof Criteria) { + // rename for clarity + $criteria = $values; + } elseif ($values instanceof \ChronopostHomeDelivery\Model\ChronopostHomeDeliveryPrice) { // it's a model object + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + $criteria->add(ChronopostHomeDeliveryPriceTableMap::ID, (array) $values, Criteria::IN); + } + + $query = ChronopostHomeDeliveryPriceQuery::create()->mergeWith($criteria); + + if ($values instanceof Criteria) { ChronopostHomeDeliveryPriceTableMap::clearInstancePool(); + } elseif (!is_object($values)) { // it's a primary key, or an array of pks + foreach ((array) $values as $singleval) { ChronopostHomeDeliveryPriceTableMap::removeInstanceFromPool($singleval); + } + } + + return $query->delete($con); + } + + /** + * Deletes all rows from the chronopost_home_delivery_price table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public static function doDeleteAll(ConnectionInterface $con = null) + { + return ChronopostHomeDeliveryPriceQuery::create()->doDeleteAll($con); + } + + /** + * Performs an INSERT on the database, given a ChronopostHomeDeliveryPrice or Criteria object. + * + * @param mixed $criteria Criteria or ChronopostHomeDeliveryPrice object containing data that is used to create the INSERT statement. + * @param ConnectionInterface $con the ConnectionInterface connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($criteria, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ChronopostHomeDeliveryPriceTableMap::DATABASE_NAME); + } + + if ($criteria instanceof Criteria) { + $criteria = clone $criteria; // rename for clarity + } else { + $criteria = $criteria->buildCriteria(); // build Criteria from ChronopostHomeDeliveryPrice object + } + + if ($criteria->containsKey(ChronopostHomeDeliveryPriceTableMap::ID) && $criteria->keyContainsValue(ChronopostHomeDeliveryPriceTableMap::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.ChronopostHomeDeliveryPriceTableMap::ID.')'); + } + + + // Set the correct dbName + $query = ChronopostHomeDeliveryPriceQuery::create()->mergeWith($criteria); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = $query->doInsert($con); + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + +} // ChronopostHomeDeliveryPriceTableMap +// This is the static code needed to register the TableMap for this table with the main Propel class. +// +ChronopostHomeDeliveryPriceTableMap::buildTableMap(); diff --git a/local/modules/ChronopostHomeDelivery/README.md b/local/modules/ChronopostHomeDelivery/README.md new file mode 100644 index 00000000..98f3c34c --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/README.md @@ -0,0 +1,103 @@ +# ChronopostHomeDelivery + +Allows you to choose between differents delivery modes offered by Chronopost. +Activating one or more of them will let your customers choose which one +they want. + +Delivery types currently availables : + +- Chrono13 +- Chrono18 +- Chrono Classic (Delivery in Europe) +- Chrono Express (Express delivery in Europe) +- Fresh13 +- Others will be added in future versions + +NB1 : You need IDs provided by Chronopost to use this module. + + +## Installation + +### Manually + +* Copy the module into ```/local/modules/``` directory and be sure that the name of the module is Chronopost. +* Activate it in your thelia administration panel + +### Composer + +Add it in your main thelia composer.json file + +``` +composer require thelia/chronopost-home-delivery-module:~1.0 +``` + +## Usage + +First, go to your back office, tab Modules, and activate the module Chronopost. +Then go to Chronopost configuration page, tab "Advanced Configuration" and fill the required fields. + +After activating the delivery types you wih to use, new tabs will appear. With these, you can +change the shipping prices according to the delivery type and the area, and/or activate free shipping for a given price and/or given area, or just +activate it no matter the are and cart amount. + +If you also have the ChronopostLabel module, you can then generate and download labels from the Chronopost Label page accessible from the toolbar on the left of the BackOffice, or directly from the order page. + + +## Loop + +###[chronopost.home.delivery] + +### Input arguments + +|Argument |Description | +|--- |--- | +|**area_id** | **Mandatory** ID of the area from which you want to know the prices. | +|**delivery_mode_id** | **Mandatory** ID of the delivery mode of which you want to know the prices. | + +### Output arguments + +|Variable |Description | +|--- |--- | +|$SLICE_ID | ID of the price slice | +|$MAX_WEIGHT | Max weight for this slice price | +|$MAX_PRICE | Max untaxed price of a cart for this price | +|$PRICE | Price for this slice | +|$FRANCO | Price of the Franco for this slice | + +###[chronopost.home.delivery.delivery.mode] + +### Input arguments + +None + +### Output arguments + +|Variable |Description | +|--- |--- | +|$ID | The delivery mode ID in the table | +|$TITLE | The delivery mode title (ex : Fresh13) | +|$CODE | The delivery mode code (ex : 2R) | +|$FREESHIPPING_ACTIVE | 0 or 1 depending on whether the total freeshipping is active or not | +|$FREESHIPPING_FROM | Cart price needed for freeshipping | + +###[chronopost.home.delivery.area.freeshipping] + +### Input arguments + +|Argument |Description | +|--- |--- | +|**area_id** | ID of the area from which you want to know the free shipping minimum amount needed. | +|**delivery_mode_id** | ID of the delivery mode of which you want to know the free shipping minimum amount needed. | + +### Output arguments + +|Variable |Description | +|--- |--- | +|$AREA_ID | ID of the area | +|$DELIVERY_MODE_ID | ID of the delivery mode | +|$CART_AMOUNT | Cart amount needed for free shipping in this area and for this delivery mode | + +##Integration + +Templates are examples of integration for the default theme of Thelia and should probably be +modified to suit your website better. diff --git a/local/modules/ChronopostHomeDelivery/Smarty/Plugins/ChronopostHomeDeliveryDeliveryType.php b/local/modules/ChronopostHomeDelivery/Smarty/Plugins/ChronopostHomeDeliveryDeliveryType.php new file mode 100644 index 00000000..2a5edec6 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/Smarty/Plugins/ChronopostHomeDeliveryDeliveryType.php @@ -0,0 +1,121 @@ +request = $request; + $this->dispatcher = $dispatcher; + } + + /** + * @return array|SmartyPluginDescriptor[] + */ + public function getPluginDescriptors() + { + return array( + new SmartyPluginDescriptor("function", "chronopostHomeDeliveryDeliveryType", $this, "chronopostHomeDeliveryDeliveryType"), + new SmartyPluginDescriptor("function", "chronopostHomeDeliveryDeliveryPrice", $this, "chronopostHomeDeliveryDeliveryPrice"), + new SmartyPluginDescriptor("function", "chronopostHomeDeliveryGetDeliveryTypesStatusKeys", $this, "chronopostHomeDeliveryGetDeliveryTypesStatusKeys"), + ); + } + + /** + * @param $params + * @param $smarty + * @throws PropelException + */ + public function chronopostHomeDeliveryDeliveryPrice($params, $smarty) + { + $deliveryMode = $params["delivery-mode"]; + $country = CountryQuery::create()->findOneById($params["country"]); + + $cartWeight = $this->request->getSession()->getSessionCart($this->dispatcher)->getWeight(); + $cartAmount = $this->request->getSession()->getSessionCart($this->dispatcher)->getTaxedAmount($country); + + try { + + $countryAreas = $country->getCountryAreas(); + $areasArray = []; + + /** @var CountryArea $countryArea */ + foreach ($countryAreas as $countryArea) { + $areasArray[] = $countryArea->getAreaId(); + } + + $price = (new ChronopostHomeDelivery)->getMinPostage( + $areasArray, + $cartWeight, + $cartAmount, + $deliveryMode + ); + + $consumedCouponsCodes = $this->request->getSession()->getConsumedCoupons(); + + foreach ($consumedCouponsCodes as $consumedCouponCode) { + $coupon = CouponQuery::create() + ->filterByCode($consumedCouponCode) + ->findOne(); + + /** @var Coupon $coupon */ + if(null !== $coupon){ + if($coupon->getIsRemovingPostage()){ + $price = 0; + } + } + } + + } catch (DeliveryException $ex) { + $smarty->assign('isValidMode', false); + } + + $smarty->assign('chronopostHomeDeliveryDeliveryModePrice', $price); + + } + + /** + * @param $params + * @param $smarty + */ + public function chronopostHomeDeliveryDeliveryType($params, $smarty) + { + foreach (ChronopostHomeDeliveryConst::getDeliveryTypesStatusKeys() as $deliveryTypeName => $statusKey) { + $smarty->assign('is' . $deliveryTypeName . 'Enabled', (bool)ChronopostHomeDelivery::getConfigValue($statusKey)); + } + } + + /** + * @param $params + * @param $smarty + */ + public function chronopostHomeDeliveryGetDeliveryTypesStatusKeys($params, $smarty) + { + $smarty->assign('chronopostHomeDeliveryDeliveryTypesStatusKeys', ChronopostHomeDeliveryConst::getDeliveryTypesStatusKeys()); + } + +} diff --git a/local/modules/ChronopostHomeDelivery/composer.json b/local/modules/ChronopostHomeDelivery/composer.json new file mode 100644 index 00000000..74a45476 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/composer.json @@ -0,0 +1,12 @@ +{ + "name": "thelia/chronopost-home-delivery-module", + "license": "LGPL-3.0+", + "type": "thelia-module", + "require": { + "thelia/installer": "~1.1" + }, + "extra": { + "installer-name": "ChronopostHomeDelivery" + }, + "description": "Chronopost delivery module for home deliveries." +} \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/templates/backOffice/default/ChronopostHomeDelivery/ChronopostHomeDeliveryAdvancedConfig.html b/local/modules/ChronopostHomeDelivery/templates/backOffice/default/ChronopostHomeDelivery/ChronopostHomeDeliveryAdvancedConfig.html new file mode 100644 index 00000000..e2674190 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/templates/backOffice/default/ChronopostHomeDelivery/ChronopostHomeDeliveryAdvancedConfig.html @@ -0,0 +1,42 @@ +
+
+ {form name="chronopost_home_delivery_configuration_form" type="chronopost_home_delivery_configuration_form"} + +
{intl l="Chronopost informations"}
+ {include + file = "includes/inner-form-toolbar.html" + hide_flags = true + hide_save_and_close_button = true + } +
+
+
{intl l="Service Configuration" d='chronopost.home.delivery.bo.default'}
+
+
+
+ {form_hidden_fields form=$form} + + {if $form_error} +
{$form_error_message}
+ {/if} + + {render_form_field field="success_url" value={url path="/admin/module/ChronopostHomeDelivery"}} + + {render_form_field field="chronopost_home_delivery_code"} + + {render_form_field field="chronopost_home_delivery_password"} +
+ +
+ {intl l="Allowed shipping modes" d='chronopost.home.delivery.bo.default'} + + {chronopostHomeDeliveryGetDeliveryTypesStatusKeys} + {foreach from=$chronopostHomeDeliveryDeliveryTypesStatusKeys key=k item=statusKey} + {render_form_field field={$statusKey}} + {/foreach} +
+
+
+ + {/form} +
\ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/templates/backOffice/default/ChronopostHomeDelivery/ChronopostHomeDeliveryConfig.html b/local/modules/ChronopostHomeDelivery/templates/backOffice/default/ChronopostHomeDelivery/ChronopostHomeDeliveryConfig.html new file mode 100644 index 00000000..b8efb287 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/templates/backOffice/default/ChronopostHomeDelivery/ChronopostHomeDeliveryConfig.html @@ -0,0 +1,256 @@ + +{assign var="tab" value="configure"} +{if isset($smarty.get.current_tab)} + {assign var="tab" value=$smarty.get.current_tab} +{/if} + + {* default currency *} +{loop type="currency" name="default_currency" default_only="1"} +{$currencySymbol=$SYMBOL} +{/loop} + + +
+
+
+ + + + +
+ +
+ {include file = "ChronopostHomeDelivery/ChronopostHomeDeliveryAdvancedConfig.html"} +
+ + {loop type="chronopost.home.delivery.delivery.mode" name="delivery_mode"} + {$deliveryModeId=$ID} +
+ {if null !== $smarty.get.price_error && {$deliveryModeId} == $smarty.get.price_error_id} + + {/if} +
+
+ +
+ + {assign var="isChronopostHomeDeliveryFreeShipping" value=0} + {form name="chronopost.home.delivery.freeshipping.form"} +
+ {form_hidden_fields form=$form} + + {form_field form=$form field="delivery_mode"} + + {/form_field} + + {form_field form=$form field="freeshipping"} + + +
+ +
+ {/form_field} +
+ {/form} +
+ + + + + +
+
+ +
+ {intl l="You can create price slices by specifying a maximum cart weight and/or a maximum cart price." d='socolissimo.bo.default'} + {intl l="The slices are ordered by maximum cart weight then by maximum cart price." d='socolissimo.bo.default'} + {intl l="If a cart matches multiple slices, it will take the last slice following that order." d='socolissimo.bo.default'} + {intl l="If you don't specify a cart weight in a slice, it will have priority over the slices with weight." d='socolissimo.bo.default'} + {intl l="If you don't specify a cart price in a slice, it will have priority over the other slices with the same weight." d='socolissimo.bo.default'} + {intl l="If you specify both, the cart will require to have a lower weight AND a lower price in order to match the slice." d='socolissimo.bo.default'} +
+ +
+ + {loop type="module" name="module-id-loop" code="ChronopostHomeDelivery"} + {assign var="module_id" value=$ID} + {/loop} + {loop type="area" name="area_loop" module_id=$module_id backend_context=true} + {$area_id=$ID} +
+
+ + + + + + + + + + + + + + + + + {loop type="chronopost.home.delivery" name="chronopost_home_delivery_area_$ID" area_id={$area_id} delivery_mode_id={$deliveryModeId} } + + + + + + + {/loop} + + {* New slice *} + {loop type="auth" name="can_change" role="ADMIN" module="chronopost" access="CREATE"} + + + + + + + {/loop} + +
+ + + +
{intl l="Weight up to ... kg" d='chronopost.home.delivery.bo.default'}{intl l="Untaxed Price up to ... %symbol" symbol=$currencySymbol d='chronopost.home.delivery.bo.default'}{intl l="Price (%symbol)" symbol=$currencySymbol d='chronopost.home.delivery.bo.default'}{intl l="Actions" d='chronopost.home.delivery.bo.default'}
+ + + + + + +
+ {loop type="auth" name="can_change" role="ADMIN" module="customdelivery" access="UPDATE"} + + + + {/loop} + {loop type="auth" name="can_change" role="ADMIN" module="customdelivery" access="DELETE"} + + + + {/loop} +
+
+ + + + + + + + + +
+
+
+ + {/loop} + {elseloop rel="area_loop"} +
+
+ {intl d='chronopost.home.delivery.bo.default' l="You should first attribute shipping zones to the modules: "} + + {intl d='chronopost.home.delivery.bo.default' l="manage shipping zones"} + +
+
+ {/elseloop} +
+ +
+ {/loop} + +
+
+
+
+ + + {include + file = "includes/generic-warning-dialog.html" + + dialog_id = "chronopost_home_delivery_dialog" + dialog_body = "" + dialog_title = {intl d='chronopost.home.delivery.bo.default' l="Message"} + } + + {* JS Templates *} + + diff --git a/local/modules/ChronopostHomeDelivery/templates/backOffice/default/ChronopostHomeDelivery/module-config-js.html b/local/modules/ChronopostHomeDelivery/templates/backOffice/default/ChronopostHomeDelivery/module-config-js.html new file mode 100644 index 00000000..ef00bb35 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/templates/backOffice/default/ChronopostHomeDelivery/module-config-js.html @@ -0,0 +1,173 @@ +{javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'} + +{/javascripts} + +{javascripts file='assets/js/libs/underscore-min.js'} + +{/javascripts} + + + \ No newline at end of file diff --git a/local/modules/ChronopostHomeDelivery/templates/email/default/order_shipped.html b/local/modules/ChronopostHomeDelivery/templates/email/default/order_shipped.html new file mode 100644 index 00000000..0f54f214 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/templates/email/default/order_shipped.html @@ -0,0 +1,34 @@ +{extends file="email-layout.tpl"} + +{* Do not provide a "Open in browser" link *} +{block name="browser"}{/block} +{* No pre-header *} +{block name="pre-header"}{/block} + +{* Subject *} +{block name="email-subject"}{intl l="Your order confirmation Nº %ref" ref={$order_ref}}{/block} + +{* Title *} +{block name="email-title"}{/block} + +{* Content *} +{block name="email-content"} + + {loop type="customer" name="customer.politesse" id={$customer_id} current="0"} + {assign var="customerRef" value=$REF} + +

{if {$TITLE} == 9}{intl l="Dear Mr. "} + {else}{intl l="Dear Ms. "} + {/if} + {$FIRSTNAME} {$LASTNAME}, +

+ + {/loop} + +

{intl l="We are pleased to inform you that your order number"} {$order_ref} {intl l="has been shipped on"} {format_date date=$update_date output="date"} {intl l="with the tracking number"} {$package}.

+ +

{intl l='Click here to track your shipment.' package=$package}

+

{intl l='Thank you for your shopping with us and hope to see you soon on www.yourshop.com'}

+

{intl l="Your on-line store Manager"}
+ {intl l="Your shop"}

+{/block} diff --git a/local/modules/ChronopostHomeDelivery/templates/email/default/order_shipped.txt b/local/modules/ChronopostHomeDelivery/templates/email/default/order_shipped.txt new file mode 100644 index 00000000..7222a484 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/templates/email/default/order_shipped.txt @@ -0,0 +1 @@ +{intl l="Please display this message in HTML"} diff --git a/local/modules/ChronopostHomeDelivery/templates/frontOffice/default/ChronopostHomeDelivery.html b/local/modules/ChronopostHomeDelivery/templates/frontOffice/default/ChronopostHomeDelivery.html new file mode 100644 index 00000000..0d189313 --- /dev/null +++ b/local/modules/ChronopostHomeDelivery/templates/frontOffice/default/ChronopostHomeDelivery.html @@ -0,0 +1,191 @@ +{loop type="delivery" name="chronopost-home-delivery" id=$module force_return="true"} + + +
+
+ + {chronopostHomeDeliveryDeliveryType} + + {* Chrono13 *} + {if $isChrono13Enabled !== false} + {chronopostHomeDeliveryDeliveryPrice delivery-mode="1" country=$country} + {if $chronopostHomeDeliveryDeliveryModePrice} +
+
+ {intl l="Chrono 13H delivery" d='chronoposthomedelivery.fo.default'} / {$chronopostHomeDeliveryDeliveryModePrice} {currency attr="symbol"} +
+
+
+ +
+ {intl l="Delivery to you or a personal address of your choice, before tomorrow 13H." d='chronoposthomedelivery.fo.default'} + +
+ +
+
+ +
+
+
+ {/if} + {/if} + + {* Chrono18 *} + {if $isChrono18Enabled !== false} + {chronopostHomeDeliveryDeliveryPrice delivery-mode="16" country=$country} + {if $chronopostHomeDeliveryDeliveryModePrice} +
+
+ {intl l="Chrono 18H delivery" d='chronoposthomedelivery.fo.default'} / {$chronopostHomeDeliveryDeliveryModePrice} {currency attr="symbol"} +
+
+
+ +
+ {intl l="Delivery to you or a personal address of your choice, before tomorrow 18H." d='chronoposthomedelivery.fo.default'} + +
+ +
+
+ +
+
+
+ {/if} + {/if} + + {* Chrono Classic *} + {if $isChronoClassicEnabled !== false} + {chronopostHomeDeliveryDeliveryPrice delivery-mode="44" country=$country} + {if $chronopostHomeDeliveryDeliveryModePrice} +
+
+ {intl l="Chrono Europe Classic delivery" d='chronoposthomedelivery.fo.default'} / {$chronopostHomeDeliveryDeliveryModePrice} {currency attr="symbol"} +
+
+
+ +
+ {intl l="Delivery to you or a personal address of your choice, anywhere in Europe." d='chronoposthomedelivery.fo.default'} + +
+ +
+
+ +
+
+
+ {/if} + {/if} + + {* Chrono Express *} + {if $isChronoExpressEnabled !== false} + {chronopostHomeDeliveryDeliveryPrice delivery-mode="17" country=$country} + {if $chronopostHomeDeliveryDeliveryModePrice} +
+
+ {intl l="Chrono Europe Express delivery" d='chronoposthomedelivery.fo.default'} / {$chronopostHomeDeliveryDeliveryModePrice} {currency attr="symbol"} +
+
+
+ +
+ {intl l="Delivery to you or a personal address of your choice, anywhere in Europe in less than 3 days." d='chronoposthomedelivery.fo.default'} + +
+ +
+
+ +
+
+
+ {/if} + {/if} + + {* Fresh13 *} + {if $isFresh13Enabled !== false} + {chronopostHomeDeliveryDeliveryPrice delivery-mode="2R" country=$country} + {if $chronopostHomeDeliveryDeliveryModePrice} +
+
+ {intl l="Fresh 13H delivery" d='chronoposthomedelivery.fo.default'} / {$chronopostHomeDeliveryDeliveryModePrice} {currency attr="symbol"} +
+
+
+ +
+ {intl l="Delivery of fresh products before 13H tomorrow." d='chronoposthomedelivery.fo.default'} + +
+ +
+
+
+
+
+ {/if} + {/if} + + {* Chrono10 *} + {if $isChrono10Enabled !== false} + {chronopostHomeDeliveryDeliveryPrice delivery-mode="2" country=$country} + {if $chronopostHomeDeliveryDeliveryModePrice} +
+
+ {intl l="Chrono10" d='chronoposthomedelivery.fo.default'} / {$chronopostHomeDeliveryDeliveryModePrice} {currency attr="symbol"} +
+
+
+ +
+ {intl l="Delivery before 10H tomorrow." d='chronoposthomedelivery.fo.default'} + +
+ +
+
+
+
+
+ {/if} + {/if} + + {* TODO Add other delivery types *} + +
+
+ + + + +{/loop} \ No newline at end of file diff --git a/local/modules/MondialRelay/templates/frontOffice/default/mondialrelay/assets/css/styles.css b/local/modules/MondialRelay/templates/frontOffice/default/mondialrelay/assets/css/styles.css index bca5a3a0..9ec22986 100644 --- a/local/modules/MondialRelay/templates/frontOffice/default/mondialrelay/assets/css/styles.css +++ b/local/modules/MondialRelay/templates/frontOffice/default/mondialrelay/assets/css/styles.css @@ -64,3 +64,6 @@ margin-right: -30px; } +.text-center { + text-align: right; +} \ No newline at end of file diff --git a/templates/frontOffice/default2020/assets/dist/css/custom.min.css b/templates/frontOffice/default2020/assets/dist/css/custom.min.css index fbf2beaf..d397a402 100644 --- a/templates/frontOffice/default2020/assets/dist/css/custom.min.css +++ b/templates/frontOffice/default2020/assets/dist/css/custom.min.css @@ -1 +1 @@ -div.container{width:90%!important}.container{width:95%} \ No newline at end of file +div.container{width:90%!important}.container{width:95%}.navbar li.cart-not-empty>a.cart:before{color:#fff} \ No newline at end of file diff --git a/templates/frontOffice/default2020/assets/dist/css/thelia.min.css b/templates/frontOffice/default2020/assets/dist/css/thelia.min.css index 6a07cc32..349bdd1e 100644 --- a/templates/frontOffice/default2020/assets/dist/css/thelia.min.css +++ b/templates/frontOffice/default2020/assets/dist/css/thelia.min.css @@ -2,7 +2,7 @@ * Bootstrap v3.3.6 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800);.label,audio,canvas,progress,sub,sup,video{vertical-align:baseline}hr,img{border:0}.breadcrumb>li+li:before,.cart-warning:before,.fa,.glyphicon{-moz-osx-font-smoothing:grayscale}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{background:#ff0;color:#000}sub,sup{font-size:75%;line-height:0;position:relative}sup{top:-.5em}sub{bottom:-.25em}img{vertical-align:middle}svg:not(:root){overflow:hidden}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}.glyphicon,.popover,.tooltip,address{font-style:normal}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{blockquote,img,pre,tr{page-break-inside:avoid}*,:after,:before{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999}thead{display:table-header-group}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/bootstrap/glyphicons-halflings-regular.eot);src:url(../fonts/bootstrap/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/bootstrap/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/bootstrap/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/bootstrap/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/bootstrap/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-weight:400;line-height:1;-webkit-font-smoothing:antialiased}#products-new .overlay:after,#products-offer .overlay:after,#products-upsell .overlay:after,.popover,.tooltip,body{font-family:'Open Sans',sans-serif}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before,.glyphicon-btc:before,.glyphicon-xbt:before{content:"\e227"}.glyphicon-jpy:before,.glyphicon-yen:before{content:"\00a5"}.glyphicon-rub:before,.glyphicon-ruble:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*,:after,:before{box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{margin:0;font-size:14px;line-height:1.42857143;color:#7a7a7a;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#f49a17;text-decoration:none}a:focus,a:hover{color:#b66f09;text-decoration:underline}a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}figure{margin:0}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:3px;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#e5e5e5}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,.label,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}.badge,.label,dt,kbd kbd{font-weight:700}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{background-color:#fcf8e3;padding:.2em}.list-inline,.list-unstyled{padding-left:0;list-style:none}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}#categories.block-nav .block-title,#filters>h3,#product #product-tabs .nav-tabs li,.availability .in-stock,.availability .out-of-stock,.filter .filter-heading,.initialism,.panel-heading,.table-cart tfoot th.total,.table-cart thead th,.table-order tfoot th.total,.table-order thead th{text-transform:uppercase}.text-muted{color:#e5e5e5}.text-primary{color:#f49a17}a.text-primary:focus,a.text-primary:hover{color:#ce7e0a}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#f49a17}a.bg-primary:focus,a.bg-primary:hover{background-color:#ce7e0a}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}pre code,table{background-color:transparent}.page-header{padding-bottom:9px;margin:40px 0 20px}dl,ol,ul{margin-top:0}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child,ol ol,ol ul,ul ol,ul ul{margin-bottom:0}ol,ul{margin-bottom:10px}.list-inline{margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-bottom:20px}dd,dt{line-height:1.42857143}dd{margin-left:0}@media (min-width:992px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #e5e5e5}.initialism{font-size:90%}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#e5e5e5}legend,pre{color:#7a7a7a}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}code,kbd{padding:2px 4px;font-size:90%;border-radius:3px}.dropdown-menu,caption,th{text-align:left}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;line-height:1.42857143}code,kbd,pre,samp{font-family:Monaco,Menlo,Consolas,"Courier New",monospace}code{color:#c7254e;background-color:#f9f2f4}kbd{color:#fff;background-color:#333;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:3px}.container,.container-fluid{margin-right:auto;margin-left:auto}.btn-group-vertical>.btn:not(:first-child):not(:last-child),.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn,.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle),.btn-link,pre code{border-radius:0}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.header-custom.row{margin-left:0;margin-right:0}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}caption{padding-top:8px;padding-bottom:8px;color:#e5e5e5}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover,.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset,legend{padding:0;border:0}fieldset{margin:0;min-width:0}legend{display:block;width:100%;margin-bottom:20px;font-size:21px;line-height:inherit;border-bottom:1px solid transparent}label{display:inline-block;max-width:100%;margin-bottom:5px}input[type=search]{box-sizing:border-box;-webkit-appearance:none}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}.form-control,output{font-size:14px;line-height:1.42857143;display:block;color:#555}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}output{padding-top:7px}.form-control{width:100%;height:34px;padding:6px 12px;background-color:#fff;background-image:none;border:1px solid #e5e5e5;border-radius:3px;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#c7c7c7;opacity:1}.form-control:-ms-input-placeholder{color:#c7c7c7}.form-control::-webkit-input-placeholder{color:#c7c7c7}.form-control::-ms-expand{border:0;background-color:transparent}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px;margin-top:4px\9}.checkbox-inline,.collapsing,.dropdown,.dropup,.has-feedback,.radio-inline{position:relative}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.btn-block+.btn-block,.help-block{margin-top:5px}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio label,fieldset[disabled] .radio-inline,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.form-group-sm .form-control,.input-sm{padding:5px 10px;border-radius:3px;font-size:12px}.input-sm{height:30px;line-height:1.5}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;line-height:1.5}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.btn-group-lg>.btn,.btn-lg,.form-group-lg .form-control,.input-lg{padding:10px 16px;font-size:18px}.input-lg{height:46px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-bottom:10px;color:#bababa}@media (min-width:768px){.form-inline .form-control,.form-inline .form-control-static,.form-inline .form-group{display:inline-block}.form-inline .checkbox,.form-inline .control-label,.form-inline .form-group,.form-inline .radio{margin-bottom:0;vertical-align:middle}.form-inline .form-control{width:auto;vertical-align:middle}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;margin-bottom:0;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#f49a17;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#f49a17;background-color:#f7f7f7;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#f49a17;background-color:#dedede;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#f49a17;background-color:#dedede;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#f49a17;background-color:#ccc;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#f7f7f7;border-color:#ccc}.btn-default .badge{color:#f7f7f7;background-color:#f49a17}.btn-primary{color:#fff;background-color:#f49a17;border-color:#f49a17}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#ce7e0a;border-color:#855206}.btn-primary.active,.btn-primary:active,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#ce7e0a;border-color:#c47809}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#ac6908;border-color:#855206}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#f49a17;border-color:#f49a17}.btn-primary .badge{color:#f49a17;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success.active,.btn-success:active,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info.active,.btn-info:active,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger.active,.btn-danger:active,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{color:#f49a17}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#b66f09;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#e5e5e5;text-decoration:none}.btn-group-lg>.btn,.btn-lg{line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{height:0;overflow:hidden;transition-property:height,visibility;transition-duration:.35s;transition-timing-function:ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:3px;background-clip:padding-box}.dropdown-menu-right,.dropdown-menu.pull-right{left:auto;right:0}.dropdown-header,.dropdown-menu>li>a{display:block;padding:3px 20px;line-height:1.42857143;white-space:nowrap}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child,.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{clear:both;font-weight:400;color:#7a7a7a}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#6d6d6d;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#f49a17}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#e5e5e5}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{font-size:12px;color:#e5e5e5}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.nav-justified>.dropdown .dropdown-menu,.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:992px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}#cart-address .panel,.block,.btn-group.open .dropdown-toggle.btn-link,.btn.active,.btn:active{box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.media-object.img-thumbnail,.nav>li>a>img{max-width:none}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-radius:3px 3px 0 0}.btn-group-vertical>.btn:last-child:not(:first-child){border-radius:0 0 3px 3px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group,.input-group .form-control,.input-group-btn,.input-group-btn>.btn,.nav>li,.nav>li>a,.navbar{position:relative}.input-group{display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #e5e5e5;border-radius:3px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{font-size:0;white-space:nowrap}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{display:block}.nav>li>a{display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#e5e5e5}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#e5e5e5;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#f49a17}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:3px 3px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px;margin-right:0;border-radius:3px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0;border-bottom:1px solid #ddd;border-radius:3px 3px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-justified>li,.nav-stacked>li{float:none}.nav-pills>li>a{border-radius:3px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#f49a17}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:3px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:3px 3px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{min-height:50px;margin-bottom:20px;border:1px solid transparent}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:992px){.navbar{border-radius:3px}.navbar-header{float:left}.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-left:0;padding-right:0}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}.navbar-static-top{border-radius:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:15px;font-size:18px;line-height:20px;height:50px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:992px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:3px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:991px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:992px){.navbar-toggle{display:none}.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin:8px -15px}@media (min-width:768px){.navbar-form .form-control,.navbar-form .form-control-static,.navbar-form .form-group{display:inline-block}.navbar-form .checkbox,.navbar-form .control-label,.navbar-form .form-group,.navbar-form .radio{margin-bottom:0;vertical-align:middle}.navbar-form .form-control{width:auto;vertical-align:middle}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}.breadcrumb>li,.pagination{display:inline-block}@media (max-width:991px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:992px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;box-shadow:none}.navbar-text{float:left;margin-left:15px;margin-right:15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-radius:3px 3px 0 0}.breadcrumb,.pagination,.progress{border-radius:3px}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:992px){.navbar-left{float:left!important;float:left}.navbar-right{float:right!important;float:right;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f5f5f5;border-color:#fff}.navbar-default .navbar-brand{color:#707070}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#575757;background-color:transparent}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{color:#707070}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#fff;background-color:#f49a17}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#fff}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background-color:#f49a17;color:#fff}@media (max-width:991px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#707070}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:#f49a17}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#707070}.navbar-default .navbar-link:hover{color:#fff}.navbar-default .btn-link{color:#707070}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#fff}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{background-color:transparent;color:#fff}.navbar-inverse .navbar-brand{color:#fff}.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{color:#fff}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{background-color:#080808;color:#fff}@media (max-width:991px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#fff}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .btn-link,.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover,.navbar-inverse .navbar-link,.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{margin-bottom:20px;list-style:none;background-color:#fff}.breadcrumb>li+li:before{padding:0 5px;color:#7a7a7a}.breadcrumb>.active{color:#7a7a7a}.pagination{padding-left:0;margin:20px 0}.pager li,.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857143;text-decoration:none;background-color:#f9f9f9;border:1px solid #ddd;margin-left:-1px}.close,.list-group-item>.badge,.pager .next>a,.pager .next>span{float:right}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#b66f09;background-color:transparent;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;background-color:#f49a17;border-color:#f49a17;cursor:default}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#e5e5e5;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.badge,.label{line-height:1}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}.pager{padding-left:0;margin:20px 0;list-style:none;text-align:center}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#f7f7f7;border:1px solid #ccc;border-radius:0}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:transparent}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#e5e5e5;background-color:#f7f7f7;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;color:#fff;text-align:center;white-space:nowrap;border-radius:.25em}.badge,.progress-bar{font-size:12px;text-align:center}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#e5e5e5}.label-default[href]:focus,.label-default[href]:hover{background-color:#ccc}.label-primary{background-color:#f49a17}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#ce7e0a}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;color:#fff;vertical-align:middle;white-space:nowrap;border-radius:10px}.badge:empty,.modal{display:none}.popover,.tooltip{text-transform:none;white-space:normal;word-wrap:normal;text-decoration:none}.media-object,.thumbnail{display:block}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#f49a17;background-color:#fff}.jumbotron,.jumbotron .h1,.jumbotron h1{color:inherit}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;background-color:#eee}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.alert,.progress,.thumbnail{margin-bottom:20px}.alert .alert-link,.close{font-weight:700}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px;padding-left:15px;padding-right:15px}.list-group-item,.thumbnail{background-color:#fff;border:1px solid #ddd}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-left:60px;padding-right:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{padding:4px;line-height:1.42857143;border-radius:3px;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-left:auto;margin-right:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#f49a17}.thumbnail .caption{padding:9px;color:#7a7a7a}.alert,.panel-body{padding:15px}.alert{border:1px solid transparent;border-radius:3px}.alert h4{margin-top:0;color:inherit}.alert>p+p,.panel-group .panel+.panel{margin-top:5px}.alert>p,.alert>ul{margin-bottom:0}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:20px;background-color:#f5f5f5;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0%;height:100%;line-height:20px;color:#fff;background-color:#f49a17;box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{zoom:1;overflow:hidden}.media-body{width:10000px}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px}.list-group-item:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{text-decoration:none;color:#555;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{background-color:#eee;color:#e5e5e5;cursor:not-allowed}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#e5e5e5}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#f49a17;border-color:#f49a17}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#fdefda}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.panel-heading>.dropdown .dropdown-toggle,.panel-title,.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:0;box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-title,.panel>.list-group,.panel>.panel-collapse>.list-group,.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive,.panel>.table-responsive>.table{margin-bottom:0}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:-1;border-top-left-radius:-1}.panel-title{margin-top:0;font-size:16px}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:-1;border-bottom-left-radius:-1}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:-1;border-top-left-radius:-1}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:-1;border-bottom-left-radius:-1}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.table-responsive:first-child>.table:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-right-radius:-1;border-top-left-radius:-1}.list-group+.panel-footer,.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-left:15px;padding-right:15px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:-1}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:-1}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:-1;border-bottom-left-radius:-1}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-left-radius:-1;border-bottom-right-radius:-1}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:-1}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:-1}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-responsive{border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:0}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#f5f5f5}.panel-default>.panel-heading{color:#7a7a7a;background-color:#f5f5f5;border-color:#f5f5f5}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#f5f5f5}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#7a7a7a}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#f5f5f5}.panel-primary{border-color:#f49a17}.panel-primary>.panel-heading{color:#fff;background-color:#f49a17;border-color:#f49a17}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#f49a17}.panel-primary>.panel-heading .badge{color:#f49a17;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#f49a17}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:3px;box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.popover,.tooltip-inner,.well-sm{border-radius:3px}.well-sm{padding:9px}.close{font-size:21px;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.modal-title,.popover,.tooltip{line-height:1.42857143}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-content,.popover{background-clip:padding-box}.modal-open{overflow:hidden}.modal{overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-ms-transform:translate(0,-25%);transform:translate(0,-25%);transition:transform .3s ease-out}.fa,.modal.in .modal-dialog{-ms-transform:translate(0,0)}.modal.in .modal-dialog{transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.carousel-control,.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-weight:400;letter-spacing:normal;line-break:auto;text-align:left;text-align:start;text-shadow:none;word-break:normal;word-spacing:normal;font-size:12px;opacity:0;filter:alpha(opacity=0)}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow,.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;border-width:5px 5px 0;border-top-color:#000}.tooltip.top .tooltip-arrow{left:50%;margin-left:-5px}.tooltip.top-left .tooltip-arrow{right:5px;margin-bottom:-5px}.tooltip.top-right .tooltip-arrow{left:5px;margin-bottom:-5px}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow,.tooltip.bottom-left .tooltip-arrow,.tooltip.bottom-right .tooltip-arrow{border-width:0 5px 5px;border-bottom-color:#000;top:0}.tooltip.bottom .tooltip-arrow{left:50%;margin-left:-5px}.tooltip.bottom-left .tooltip-arrow{right:5px;margin-top:-5px}.tooltip.bottom-right .tooltip-arrow{left:5px;margin-top:-5px}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-weight:400;letter-spacing:normal;line-break:auto;text-align:left;text-align:start;text-shadow:none;word-break:normal;word-spacing:normal;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.left>.arrow:after,.popover.right>.arrow:after{bottom:-10px;content:" "}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.25)}.popover.right>.arrow:after{left:1px;border-left-width:0;border-right-color:#fff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{transition:transform .6s ease-in-out;backface-visibility:hidden;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{transform:translate3d(100%,0,0);left:0}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{transform:translate3d(-100%,0,0);left:0}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{transform:translate3d(0,0,0);left:0}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:10%;font-size:30px;color:#ccc;text-align:center;text-shadow:none;background-color:rgba(0,0,0,0)}.carousel-control.left{background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1)}.carousel-control.right{left:auto;right:0;background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1)}.carousel-control:focus,.carousel-control:hover{outline:0;color:#ccc;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;margin-top:-10px;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;line-height:1;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0)}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:none}.affix,.loader{position:fixed}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:45px;height:45px;margin-top:-15px;font-size:45px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.table-cart tbody td.product .name,.table-order tbody td.product .name,header .header .logo{margin-top:0}.block-thumbnail:after,.block-thumbnail:before,.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{content:" ";display:table}.block-thumbnail:after,.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.hidden,.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.fa-inverse,.footer-container .footer-info a,.footer-container .footer-info a:focus,.footer-container .footer-info a:hover{color:#fff}@-ms-viewport{width:device-width}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}.visible-xs-block{display:block!important}.visible-xs-inline{display:inline!important}.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}.visible-sm-block{display:block!important}.visible-sm-inline{display:inline!important}.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}.visible-md-block{display:block!important}.visible-md-inline{display:inline!important}.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}.visible-lg-block{display:block!important}.visible-lg-inline{display:inline!important}.visible-lg-inline-block{display:inline-block!important}.hidden-lg{display:none!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}.hidden-print{display:none!important}}/*! + *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800);.label,audio,canvas,progress,sub,sup,video{vertical-align:baseline}hr,img{border:0}.cart-warning:before,.fa,.glyphicon{-moz-osx-font-smoothing:grayscale}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{background:#ff0;color:#000}sub,sup{font-size:75%;line-height:0;position:relative}sup{top:-.5em}sub{bottom:-.25em}img{vertical-align:middle}svg:not(:root){overflow:hidden}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{blockquote,img,pre,tr{page-break-inside:avoid}*,:after,:before{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999}thead{display:table-header-group}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/bootstrap/glyphicons-halflings-regular.eot);src:url(../fonts/bootstrap/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/bootstrap/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/bootstrap/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/bootstrap/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/bootstrap/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased}#products-new .overlay:after,#products-offer .overlay:after,#products-upsell .overlay:after,.popover,.tooltip,body{font-family:'Open Sans',sans-serif}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before,.glyphicon-btc:before,.glyphicon-xbt:before{content:"\e227"}.glyphicon-jpy:before,.glyphicon-yen:before{content:"\00a5"}.glyphicon-rub:before,.glyphicon-ruble:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*,:after,:before{box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{margin:0;font-size:14px;line-height:1.42857143;color:#7a7a7a;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#f49a17;text-decoration:none}a:focus,a:hover{color:#b66f09;text-decoration:underline}a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}figure{margin:0}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:3px;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#e5e5e5}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,.label,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}dt,kbd kbd{font-weight:700}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{background-color:#fcf8e3;padding:.2em}.list-inline,.list-unstyled{padding-left:0;list-style:none}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}#categories.block-nav .block-title,#filters>h3,#product #product-tabs .nav-tabs li,.availability .in-stock,.availability .out-of-stock,.filter .filter-heading,.initialism,.panel-heading,.table-cart tfoot th.total,.table-cart thead th,.table-order tfoot th.total,.table-order thead th{text-transform:uppercase}.text-muted{color:#e5e5e5}.text-primary{color:#f49a17}a.text-primary:focus,a.text-primary:hover{color:#ce7e0a}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#f49a17}a.bg-primary:focus,a.bg-primary:hover{background-color:#ce7e0a}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}pre code,table{background-color:transparent}.page-header{padding-bottom:9px;margin:40px 0 20px}dl,ol,ul{margin-top:0}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child,ol ol,ol ul,ul ol,ul ul{margin-bottom:0}ol,ul{margin-bottom:10px}.list-inline{margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-bottom:20px}dd,dt{line-height:1.42857143}dd{margin-left:0}@media (min-width:992px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #e5e5e5}.initialism{font-size:90%}.popover,.tooltip{font-style:normal;text-transform:none}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#e5e5e5}legend,pre{color:#7a7a7a}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}code,kbd{padding:2px 4px;font-size:90%;border-radius:3px}.dropdown-menu,caption,th{text-align:left}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Monaco,Menlo,Consolas,"Courier New",monospace}code{color:#c7254e;background-color:#f9f2f4}kbd{color:#fff;background-color:#333;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:3px}.container,.container-fluid{margin-right:auto;margin-left:auto}.btn-group-vertical>.btn:not(:first-child):not(:last-child),.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn,.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle),.btn-link,pre code{border-radius:0}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}caption{padding-top:8px;padding-bottom:8px;color:#e5e5e5}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover,.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset,legend{padding:0;border:0}fieldset{margin:0;min-width:0}legend{display:block;width:100%;margin-bottom:20px;font-size:21px;line-height:inherit;border-bottom:1px solid transparent}label{display:inline-block;max-width:100%;margin-bottom:5px}input[type=search]{box-sizing:border-box;-webkit-appearance:none}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}.form-control,output{font-size:14px;line-height:1.42857143;display:block;color:#555}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}output{padding-top:7px}.form-control{width:100%;height:34px;padding:6px 12px;background-color:#fff;background-image:none;border:1px solid #e5e5e5;border-radius:3px;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#c7c7c7;opacity:1}.form-control:-ms-input-placeholder{color:#c7c7c7}.form-control::-webkit-input-placeholder{color:#c7c7c7}.form-control::-ms-expand{border:0;background-color:transparent}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px;margin-top:4px\9}.checkbox-inline,.collapsing,.dropdown,.dropup,.has-feedback,.radio-inline{position:relative}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.btn-block+.btn-block,.help-block{margin-top:5px}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio label,fieldset[disabled] .radio-inline,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.form-group-sm .form-control,.input-sm{padding:5px 10px;border-radius:3px;font-size:12px}.input-sm{height:30px;line-height:1.5}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;line-height:1.5}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.btn-group-lg>.btn,.btn-lg,.form-group-lg .form-control,.input-lg{padding:10px 16px;font-size:18px}.input-lg{height:46px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-bottom:10px;color:#bababa}@media (min-width:768px){.form-inline .form-control,.form-inline .form-control-static,.form-inline .form-group{display:inline-block}.form-inline .checkbox,.form-inline .control-label,.form-inline .form-group,.form-inline .radio{margin-bottom:0;vertical-align:middle}.form-inline .form-control{width:auto;vertical-align:middle}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;margin-bottom:0;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#f49a17;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#f49a17;background-color:#f7f7f7;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#f49a17;background-color:#dedede;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#f49a17;background-color:#dedede;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#f49a17;background-color:#ccc;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#f7f7f7;border-color:#ccc}.btn-default .badge{color:#f7f7f7;background-color:#f49a17}.btn-primary{color:#fff;background-color:#f49a17;border-color:#f49a17}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#ce7e0a;border-color:#855206}.btn-primary.active,.btn-primary:active,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#ce7e0a;border-color:#c47809}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#ac6908;border-color:#855206}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#f49a17;border-color:#f49a17}.btn-primary .badge{color:#f49a17;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success.active,.btn-success:active,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info.active,.btn-info:active,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger.active,.btn-danger:active,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{color:#f49a17}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#b66f09;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#e5e5e5;text-decoration:none}.btn-group-lg>.btn,.btn-lg{line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{height:0;overflow:hidden;transition-property:height,visibility;transition-duration:.35s;transition-timing-function:ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:3px;background-clip:padding-box}.dropdown-menu-right,.dropdown-menu.pull-right{left:auto;right:0}.dropdown-header,.dropdown-menu>li>a{display:block;padding:3px 20px;line-height:1.42857143;white-space:nowrap}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child,.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{clear:both;font-weight:400;color:#7a7a7a}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#6d6d6d;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#f49a17}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#e5e5e5}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{font-size:12px;color:#e5e5e5}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.nav-justified>.dropdown .dropdown-menu,.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:992px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}#cart-address .panel,.block,.btn-group.open .dropdown-toggle.btn-link,.btn.active,.btn:active{box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.media-object.img-thumbnail,.nav>li>a>img{max-width:none}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-radius:3px 3px 0 0}.btn-group-vertical>.btn:last-child:not(:first-child){border-radius:0 0 3px 3px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group,.input-group .form-control,.input-group-btn,.input-group-btn>.btn,.nav>li,.nav>li>a,.navbar{position:relative}.input-group{display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #e5e5e5;border-radius:3px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{font-size:0;white-space:nowrap}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{display:block}.nav>li>a{display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#e5e5e5}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#e5e5e5;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#f49a17}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:3px 3px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px;margin-right:0;border-radius:3px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0;border-bottom:1px solid #ddd;border-radius:3px 3px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-justified>li,.nav-stacked>li{float:none}.nav-pills>li>a{border-radius:3px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#f49a17}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:3px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:3px 3px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{min-height:50px;margin-bottom:20px;border:1px solid transparent}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:992px){.navbar{border-radius:3px}.navbar-header{float:left}.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-left:0;padding-right:0}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}.navbar-static-top{border-radius:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:15px;font-size:18px;line-height:20px;height:50px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:992px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:3px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:991px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:992px){.navbar-toggle{display:none}.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin:8px -15px}@media (min-width:768px){.navbar-form .form-control,.navbar-form .form-control-static,.navbar-form .form-group{display:inline-block}.navbar-form .checkbox,.navbar-form .control-label,.navbar-form .form-group,.navbar-form .radio{margin-bottom:0;vertical-align:middle}.navbar-form .form-control{width:auto;vertical-align:middle}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}.breadcrumb>li,.pagination{display:inline-block}.btn .badge,.btn .label{top:-1px;position:relative}@media (max-width:991px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:992px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;box-shadow:none}.navbar-text{float:left;margin-left:15px;margin-right:15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-radius:3px 3px 0 0}.breadcrumb,.pagination,.progress{border-radius:3px}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:992px){.navbar-left{float:left!important;float:left}.navbar-right{float:right!important;float:right;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f5f5f5;border-color:#fff}.navbar-default .navbar-brand{color:#707070}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#575757;background-color:transparent}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{color:#707070}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#fff;background-color:#f49a17}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#fff}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background-color:#f49a17;color:#fff}@media (max-width:991px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#707070}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:#f49a17}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#707070}.navbar-default .navbar-link:hover{color:#fff}.navbar-default .btn-link{color:#707070}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#fff}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{background-color:transparent;color:#fff}.navbar-inverse .navbar-brand{color:#fff}.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{color:#fff}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{background-color:#080808;color:#fff}@media (max-width:991px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#fff}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .btn-link,.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover,.navbar-inverse .navbar-link,.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{margin-bottom:20px;list-style:none;background-color:#fff}.breadcrumb>li+li:before{padding:0 5px;color:#7a7a7a}.breadcrumb>.active{color:#7a7a7a}.pagination{padding-left:0;margin:20px 0}.pager li,.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857143;text-decoration:none;background-color:#f9f9f9;border:1px solid #ddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#b66f09;background-color:transparent;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;background-color:#f49a17;border-color:#f49a17;cursor:default}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#e5e5e5;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.badge,.label{font-weight:700;line-height:1;text-align:center;white-space:nowrap}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}.pager{padding-left:0;margin:20px 0;list-style:none;text-align:center}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#f7f7f7;border:1px solid #ccc;border-radius:0}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:transparent}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.close,.list-group-item>.badge{float:right}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#e5e5e5;background-color:#f7f7f7;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;color:#fff;border-radius:.25em}.badge,.progress-bar,.tooltip{font-size:12px}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.label-default{background-color:#e5e5e5}.label-default[href]:focus,.label-default[href]:hover{background-color:#ccc}.label-primary{background-color:#f49a17}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#ce7e0a}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;color:#fff;vertical-align:middle;border-radius:10px}.badge:empty{display:none}.media-object,.thumbnail{display:block}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#f49a17;background-color:#fff}.jumbotron,.jumbotron .h1,.jumbotron h1{color:inherit}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;background-color:#eee}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.alert,.progress,.thumbnail{margin-bottom:20px}.alert .alert-link,.close{font-weight:700}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px;padding-left:15px;padding-right:15px}.list-group-item,.thumbnail{background-color:#fff;border:1px solid #ddd}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-left:60px;padding-right:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{padding:4px;line-height:1.42857143;border-radius:3px;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-left:auto;margin-right:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#f49a17}.thumbnail .caption{padding:9px;color:#7a7a7a}.alert,.panel-body{padding:15px}.alert{border:1px solid transparent;border-radius:3px}.alert h4{margin-top:0;color:inherit}.alert>p+p,.panel-group .panel+.panel{margin-top:5px}.alert>p,.alert>ul{margin-bottom:0}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:20px;background-color:#f5f5f5;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0%;height:100%;line-height:20px;color:#fff;text-align:center;background-color:#f49a17;box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{zoom:1;overflow:hidden}.media-body{width:10000px}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px}.list-group-item:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{text-decoration:none;color:#555;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{background-color:#eee;color:#e5e5e5;cursor:not-allowed}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#e5e5e5}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#f49a17;border-color:#f49a17}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#fdefda}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.panel-heading>.dropdown .dropdown-toggle,.panel-title,.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:0;box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-title,.panel>.list-group,.panel>.panel-collapse>.list-group,.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive,.panel>.table-responsive>.table{margin-bottom:0}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:-1;border-top-left-radius:-1}.panel-title{margin-top:0;font-size:16px}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:-1;border-bottom-left-radius:-1}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:-1;border-top-left-radius:-1}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:-1;border-bottom-left-radius:-1}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.table-responsive:first-child>.table:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-right-radius:-1;border-top-left-radius:-1}.list-group+.panel-footer,.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-left:15px;padding-right:15px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:-1}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:-1}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:-1;border-bottom-left-radius:-1}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-left-radius:-1;border-bottom-right-radius:-1}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:-1}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:-1}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-responsive{border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:0}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#f5f5f5}.panel-default>.panel-heading{color:#7a7a7a;background-color:#f5f5f5;border-color:#f5f5f5}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#f5f5f5}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#7a7a7a}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#f5f5f5}.panel-primary{border-color:#f49a17}.panel-primary>.panel-heading{color:#fff;background-color:#f49a17;border-color:#f49a17}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#f49a17}.panel-primary>.panel-heading .badge{color:#f49a17;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#f49a17}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:3px;box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{font-size:21px;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.modal-title,.popover,.tooltip{line-height:1.42857143}.carousel-control,.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-content,.popover{background-clip:padding-box}.modal-open{overflow:hidden}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-ms-transform:translate(0,-25%);transform:translate(0,-25%);transition:transform .3s ease-out}.modal.in .modal-dialog{-ms-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-weight:400;letter-spacing:normal;line-break:auto;text-align:left;text-align:start;text-decoration:none;text-shadow:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:normal;opacity:0;filter:alpha(opacity=0)}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:3px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow,.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;border-width:5px 5px 0;border-top-color:#000}.tooltip.top .tooltip-arrow{left:50%;margin-left:-5px}.tooltip.top-left .tooltip-arrow{right:5px;margin-bottom:-5px}.tooltip.top-right .tooltip-arrow{left:5px;margin-bottom:-5px}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow,.tooltip.bottom-left .tooltip-arrow,.tooltip.bottom-right .tooltip-arrow{border-width:0 5px 5px;border-bottom-color:#000;top:0}.tooltip.bottom .tooltip-arrow{left:50%;margin-left:-5px}.tooltip.bottom-left .tooltip-arrow{right:5px;margin-top:-5px}.tooltip.bottom-right .tooltip-arrow{left:5px;margin-top:-5px}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-weight:400;letter-spacing:normal;line-break:auto;text-align:left;text-align:start;text-decoration:none;text-shadow:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:normal;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.left>.arrow:after,.popover.right>.arrow:after{bottom:-10px;content:" "}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.25)}.popover.right>.arrow:after{left:1px;border-left-width:0;border-right-color:#fff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{transition:transform .6s ease-in-out;backface-visibility:hidden;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{transform:translate3d(100%,0,0);left:0}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{transform:translate3d(-100%,0,0);left:0}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{transform:translate3d(0,0,0);left:0}}.cart-warning:before,.fa{-ms-transform:translate(0,0)}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:10%;font-size:30px;color:#ccc;text-align:center;text-shadow:none;background-color:rgba(0,0,0,0)}.carousel-control.left{background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1)}.carousel-control.right{left:auto;right:0;background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1)}.carousel-control:focus,.carousel-control:hover{outline:0;color:#ccc;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;margin-top:-10px;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;line-height:1;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0)}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:none}.affix,.loader{position:fixed}.product-price .price-label,.text-hide{color:transparent;text-shadow:none;border:0}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:45px;height:45px;margin-top:-15px;font-size:45px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.table-cart tbody td.product .name,.table-order tbody td.product .name,header .header .logo{margin-top:0}.block-thumbnail:after,.block-thumbnail:before,.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{content:" ";display:table}.block-thumbnail:after,.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.hidden,.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;background-color:transparent}.fa-inverse,.footer-container .footer-info a,.footer-container .footer-info a:focus,.footer-container .footer-info a:hover{color:#fff}@-ms-viewport{width:device-width}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}.visible-xs-block{display:block!important}.visible-xs-inline{display:inline!important}.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}.visible-sm-block{display:block!important}.visible-sm-inline{display:inline!important}.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}.visible-md-block{display:block!important}.visible-md-inline{display:inline!important}.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}.visible-lg-block{display:block!important}.visible-lg-inline{display:inline!important}.visible-lg-inline-block{display:inline-block!important}.hidden-lg{display:none!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}.hidden-print{display:none!important}}/*! * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome/fontawesome-webfont.eot?v=4.3.0);src:url(../fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=4.3.0) format('embedded-opentype'),url(../fonts/fontawesome/fontawesome-webfont.woff2?v=4.3.0) format('woff2'),url(../fonts/fontawesome/fontawesome-webfont.woff?v=4.3.0) format('woff'),url(../fonts/fontawesome/fontawesome-webfont.ttf?v=4.3.0) format('truetype'),url(../fonts/fontawesome/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular) format('svg');font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;transform:translate(0,0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before,.overlay:after{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-close:before,.fa-remove:before,.fa-times:before,.has-error .help-block:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-cog:before,.fa-gear:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before,.navbar li>a.home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-repeat:before,.fa-rotate-right:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.block-default .block-content li:before,.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before,.js #payment-method .radio .active:after{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}#account-info .list-info .tel:before,.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-floppy-o:before,.fa-save:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-sort:before,.fa-unsorted:before{content:"\f0dc"}.fa-sort-desc:before,.fa-sort-down:before{content:"\f0dd"}.fa-sort-asc:before,.fa-sort-up:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-gavel:before,.fa-legal:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-bolt:before,.fa-flash:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-clipboard:before,.fa-paste:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-chain-broken:before,.fa-unlink:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\f150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\f151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\f152"}.fa-eur:before,.fa-euro:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-inr:before,.fa-rupee:before{content:"\f156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\f157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\f158"}.fa-krw:before,.fa-won:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-try:before,.fa-turkish-lira:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\f19c"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\f1c5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\f1c6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-empire:before,.fa-ge:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-paper-plane:before,.fa-send:before{content:"\f1d8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before,.fa-genderless:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-bed:before,.fa-hotel:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}header .header{margin-bottom:20px}header .header .language-container .search-container{margin-bottom:10px}header .header .language-container .search-container .form-control{width:auto}header .header .language-container .currency-switch,header .header .language-container .language-switch{display:inline-block;position:relative;vertical-align:middle}header .header .language-container .currency-switch .dropdown-label,header .header .language-container .language-switch .dropdown-label{display:inline-block;float:left;margin-left:1em;margin-right:.4em}header .header .language-container .currency-switch .current,header .header .language-container .language-switch .current{display:inline-block;float:left;position:relative}#payment-method.panel .radio,.account-info .email,.account-info .mobile,.account-info .tel,.js .group-qty .form-inline .form-group{display:block}header .header .language-container .currency-switch .select,header .header .language-container .language-switch .select{left:auto;right:0;min-width:80px}.footer-container .footer-banner .banner .col{padding:10px 0}.footer-container .footer-block .blocks,.footer-container .footer-info .info{padding:20px 0}.footer-container .footer-info .info .nav-footer ul li+li:before{margin-right:10px}.account-info address{margin-bottom:0}.account-info li{margin-bottom:20px}.list-payment,.table-order tbody td.qty .group-qty{margin-bottom:0}.table-order-total td{width:50%}#delivery-address .panel-heading{position:relative}.checkout-progress{margin-bottom:20px;width:100%}.alert-warning,.cart-warning,.table-cart tbody td.qty .group-qty,.table-cart-mini{margin-bottom:0}.cart-empty{margin:0;padding:40px}.table-cart-total td{width:50%}.cart-warning{clear:both}.pagination>li>a:focus,.pagination>li>span:focus{z-index:3}@media (min-width:992px){.navbar .navbar-cart .dropdown>a:after,.navbar .navbar-customer .dropdown>a:after{padding-left:.3em;display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f078";float:none}}@media (min-width:992px) and (min-width:992px){.navbar .navbar-cart .dropdown>a:after,.navbar .navbar-customer .dropdown>a:after{float:none}}.navbar .navbar-cart .dropdown-menu,.navbar .navbar-customer .dropdown-menu{margin:0;padding:20px}@media (max-width:992px){.navbar .navbar-cart .dropdown-menu,.navbar .navbar-customer .dropdown-menu{display:none}}.navbar .navbar-cart .dropdown-menu.cart-content,.navbar .navbar-customer .dropdown-menu.cart-content{width:350px}.navbar .navbar-cart .dropdown-menu.cart-content>p,.navbar .navbar-customer .dropdown-menu.cart-content>p{margin:0}.navbar .navbar-cart .cart-not-empty .cart-content,.navbar .navbar-customer .cart-not-empty .cart-content{border-top:none;padding:0}.navbar .full-width{position:static}.navbar .full-width .dropdown-menu{width:100%;left:0;right:0}.navbar .full-width .dropdown-menu .dropdown-content .dropdown-subheading{display:block}.js .dropdown-toggle:after{float:right;padding-left:.3em}@media (min-width:992px){.navbar-collapse .navbar-nav.navbar-right:first-child{margin-right:-15px}.navbar-collapse .navbar-nav.navbar-right:last-child{margin-right:0}.js .dropdown-toggle:after{float:none}}#form-forgotpassword,#form-login{padding:45px}#form-forgotpassword legend,#form-login legend{margin-bottom:10px}#filters,.filter{margin-bottom:20px}.filter{padding:0 15px}.filter .filter-heading{margin:0 0 4px}.toolbar{margin-bottom:20px}.toolbar .sorter-container .amount{float:left}.grid .products-content>ul .item>article .product-image,.grid .products-content>ul .item>article .product-info,.grid .products-content>ul .item>article .product-price,.list .products-content>ul .item{width:100%;float:none}.toolbar .sorter-container .sort-by,.toolbar .sorter-container .view-mode{margin-left:40px}.toolbar .pagination-container>.pagination{margin:15px 0 0}.products-content>ul .item .product-info .short-description,.products-content>ul .item .product-price .price-container{display:block;margin-bottom:5px}.grid .products-content>ul .item{margin-bottom:20px}.grid .products-content>ul .item>article{margin:0}.grid .products-content>ul .item>article .product-image{padding:0}.grid .products-content>ul .item>article .name{margin:4px 0}.grid .products-content>ul .item .description{display:none!important}@media (max-width:767px){.grid .products-content>ul .item .description{display:block!important}table.grid .products-content>ul .item .description{display:table!important}tr.grid .products-content>ul .item .description{display:table-row!important}td.grid .products-content>ul .item .description,th.grid .products-content>ul .item .description{display:table-cell!important}}.grid .products-content>ul .item .product-price{padding:0}.list .products-content>ul .item+.item{padding-top:15px}.list .products-content>ul .item>article{margin-left:0}.list .products-content>ul .item>article .product-image{margin-bottom:15px;padding:0}.list .products-content>ul .item>article .product-info .name{margin-top:0}.option{margin-bottom:20px;padding:0}.option .option-heading{display:block;margin:0 0 5px}#product #product-gallery .product-image,#product>section{margin-bottom:20px}#product #product-gallery #product-thumbnails .carousel-inner{margin:0 auto;width:90%}#brands .brands>ul .item>article,#folder-contents .contents>ul .item>article,.contents-list .item>article{margin-left:0}#product #product-gallery #product-thumbnails .carousel-control{background-image:none;display:none;width:4%;margin-top:-4px}#brands .brands>ul .item>article .brand-info .name,#folder-contents .contents>ul .item>article .content-info .name,#product #product-details .name,.contents-list .item>article .content-info .name,.page-header,.table-address .radio,.table-delivery .radio{margin-top:0}#product #product-gallery #product-thumbnails ul{margin:0}#product #product-gallery #product-thumbnails ul>li{margin:0;padding:0;width:19%}#folder-contents .contents>ul .item>article .content-image>img,.contents-list .item>article .content-image>img{width:100%}#product #product-gallery #product-thumbnails ul>li .thumbnail.disabled{opacity:.3;filter:alpha(opacity=30)}#product #product-details .product-price{margin-bottom:20px}#product #product-details .product-cart{margin-bottom:20px;padding:0}#product #product-tabs{margin-bottom:20px}#product #product-tabs .nav-tabs{margin-bottom:-1px}.folder-description{margin-bottom:20px}.contents-list .item{padding-bottom:15px}.contents-list .item+.item{padding-top:15px}.contents-list .item>article .content-image{margin-bottom:15px;padding:0}.brand-description,.main{margin-bottom:20px}#brands .brands>ul .item{padding-bottom:15px}#brands .brands>ul .item+.item{padding-top:15px}#brands .brands>ul .item>article .brand-image{margin-bottom:15px;padding:0}header .header .logo a{text-decoration:none}header .header .language-container{text-align:right}header .header .language-container .currency-switch .dropdown-label,header .header .language-container .language-switch .dropdown-label{font-size:1em;font-weight:300}.footer-container .footer-banner{background-color:#e8e8e8;font-size:19px}.footer-container .footer-banner .banner i{display:block;font-size:2em}.footer-container .footer-banner .banner small{font-size:.65em;display:block;font-style:italic;font-weight:400}.footer-container .footer-banner .banner .col{text-align:center}.footer-container .footer-banner .banner .col+.col{border-top:1px solid #d6d6d6}@media (min-width:768px){.footer-container .footer-banner .banner .col+.col{border-left:1px solid #d6d6d6;border-top:none}}.footer-container .footer-block{background-color:#f5f5f5}.footer-container .footer-info{font-size:12px}.footer-container .footer-info .info .nav-footer ul li+li:before{content:'-'}.footer-container .footer-info .info .copyright{font-weight:300;text-align:right}#payment-method.panel .panel-body,.cart-warning{text-align:center}.footer-container .footer-info .info .copyright>a{font-weight:700}.cart-warning>a{color:inherit}.cart-warning:before{font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f071";display:block;font-size:2.2em}#cart-address .panel{border:none}#payment-method.panel .radio label>img{border:1px solid #ddd;border-radius:3px;opacity:.4;filter:alpha(opacity=40)}#payment-method.panel .radio label>img:focus,#payment-method.panel .radio label>img:hover{opacity:1;filter:alpha(opacity=100);transition:opacity .2s ease-in-out}.btn,a{transition:all .3s ease-in-out}#payment-method .list-group-item{border:none}.js #payment-method .radio .active>img,.js #payment-method .radio input:checked+img{opacity:1;filter:alpha(opacity=100)}.checkout-progress .btn-step{padding:16px 24px;background:#eee;color:#555}.checkout-progress .btn-step+.btn-step{border-left:1px solid #555}.checkout-progress .btn-step .step-nb{border-right:1px solid #7a7a7a;font-size:30px;line-height:0;font-weight:600;padding-right:6px;vertical-align:middle}.checkout-progress .btn-step .step-label{font-size:20px;font-weight:100;min-width:250px;padding-left:6px;vertical-align:middle}.checkout-progress .btn-step.active,.checkout-progress .btn-step:active,.checkout-progress .btn-step:focus,.checkout-progress .btn-step:hover{color:#fff;background:#f49a17}.checkout-progress .btn-step.active .step-nb,.checkout-progress .btn-step:active .step-nb,.checkout-progress .btn-step:focus .step-nb,.checkout-progress .btn-step:hover .step-nb{border-right:1px solid #fff}.checkout-progress .btn-step.active{background:#f49a17;cursor:default;display:inherit;pointer-events:none}.price{color:#f49a17;font-size:20px;font-weight:700;font-style:italic;white-space:nowrap}.old-price .price{color:#7a7a7a;font-size:16px;font-weight:600;text-decoration:line-through}#folder-contents .contents>ul .item{padding-bottom:15px}#folder-contents .contents>ul .item+.item{padding-top:15px;border-top:1px solid #ededed}#folder-contents .contents>ul .item>article .content-image{margin-bottom:15px;padding:0}.contents-list .item+.item{border-top:1px solid #ededed}.breadcrumb{padding:0}.breadcrumb>li+li:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f105"}.btn{border-radius:0;text-align:left;font-weight:600}.btn-primary{font-style:italic;border-left:3px solid #f9c478}.btn-primary:focus,.btn-primary:hover{background-color:#f49a17;color:#b66f09}.btn-default{border-left:3px solid #ccc}.btn-default:focus,.btn-default:hover{background-color:#f7f7f7}.btn-default.active,.btn-default.active:hover,.btn-default:active,.btn-default:active:hover,.btn-primary.active,.btn-primary.active:hover,.btn-primary:active,.btn-primary:active:hover{background-color:#d5d5d5;border-color:#6f6f6f;color:#fff}.btn-link{font-weight:400}.form-control:focus::-moz-placeholder{color:#eee;opacity:1}.form-control:focus:-ms-input-placeholder{color:#eee}.form-control:focus::-webkit-input-placeholder{color:#eee}#form-login-mini{width:200px}#form-login-mini .mini-forgot-password{font-size:12px}#form-forgotpassword,#form-login{background:#f5f5f5}#form-forgotpassword legend,#form-login legend{font-size:14px;font-weight:700}.fn,.table-address .radio label,.table-delivery .radio label{font-weight:600}#form-forgotpassword .btn-login,#form-login .btn-login{display:block;width:100%}@media (min-width:768px){#form-forgotpassword .group-btn,#form-login .group-btn{text-align:right}#form-forgotpassword .group-btn .btn-login,#form-login .group-btn .btn-login{display:inline-block;width:auto}}@media (min-width:992px){.btn{padding:2px 15px 2px 5px}#form-forgotpassword,#form-login{width:45%}}#brands .brands>ul .item>article .brand-image>img,.grid .item .product-image>img,.list .item>article .product-image>img,.loader{width:100%}.no-js .collapse{display:block!important}.loader,.no-js #carousel .carousel-control{display:none}.loader{background:url(../img/ajax-loader.gif) center center no-repeat #fff;background-color:rgba(255,255,255,.5);left:0;top:0;height:100%;z-index:100}.oldie{position:absolute}.thumbnail.active{border-color:#7a7a7a}.fn{display:block}.adr,.org{font-size:12px}.table-address .group-btn,.table-delivery .group-btn{text-align:right}.table-address tbody>tr>td,.table-address tbody>tr>th,.table-address tfoot>tr>td,.table-address tfoot>tr>th,.table-address thead>tr>td,.table-address thead>tr>th,.table-delivery tbody>tr>td,.table-delivery tbody>tr>th,.table-delivery tfoot>tr>td,.table-delivery tfoot>tr>th,.table-delivery thead>tr>td,.table-delivery thead>tr>th{border-color:#f5f5f5;padding:10px 10px 0}@media (min-width:768px){.table-address tbody>tr>td,.table-address tbody>tr>th,.table-address tfoot>tr>td,.table-address tfoot>tr>th,.table-address thead>tr>td,.table-address thead>tr>th,.table-delivery tbody>tr>td,.table-delivery tbody>tr>th,.table-delivery tfoot>tr>td,.table-delivery tfoot>tr>th,.table-delivery thead>tr>td,.table-delivery thead>tr>th{padding:30px 30px 0}}.modal-dialog td{vertical-align:middle}.modal-dialog .close{margin:10px;position:relative;z-index:10}.modal-dialog .btn{margin-left:10px}@media screen and (min-width:768px){.modal-dialog{width:800px}}.navbar.navbar-secondary{z-index:1001}@media (min-width:992px){.navbar .list-subnav{background-color:#f49a17;border:1px solid #f49a17;border-radius:0;box-shadow:none}.navbar .list-subnav>li>a{color:#fff;padding:3px 12px}.navbar .list-subnav>.active>a,.navbar .list-subnav>.active>a:focus,.navbar .list-subnav>.active>a:hover,.navbar .list-subnav>li>a:focus,.navbar .list-subnav>li>a:hover{background-color:#fff;color:#f49a17}}.navbar .full-width .dropdown-menu .dropdown-content{padding:20px}.navbar .full-width .dropdown-menu .dropdown-content .dropdown-subheading{font-weight:700}.alert-warning:before,.js .dropdown-toggle:after{font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-moz-osx-font-smoothing:grayscale}.js .dropdown-toggle:after{display:inline-block;font-size:inherit;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f078"}#account .panel-heading{padding:0}#account .panel-heading .panel-title>a{background:#f49a17;color:#fff;display:block;padding:12px 15px;text-decoration:none}#account .panel-heading .panel-title>a.collapsed{background:0 0;color:inherit}#account .panel-heading .panel-title>a.collapsed:focus,#account .panel-heading .panel-title>a.collapsed:hover{background:#f49a17;color:#fff}#account .panel-body{padding:25px}.table-cart tbody>tr>td,.table-cart tbody>tr>th,.table-cart tfoot>tr>td,.table-cart tfoot>tr>th,.table-cart thead>tr>td,.table-cart thead>tr>th,.table-order tbody>tr>td,.table-order tbody>tr>th,.table-order tfoot>tr>td,.table-order tfoot>tr>th,.table-order thead>tr>td,.table-order thead>tr>th{padding:14px;text-align:center;vertical-align:middle}.table-cart tbody>tr>td.product,.table-cart tbody>tr>th.product,.table-cart tfoot>tr>td.product,.table-cart tfoot>tr>th.product,.table-cart thead>tr>td.product,.table-cart thead>tr>th.product,.table-order tbody>tr>td.product,.table-order tbody>tr>th.product,.table-order tfoot>tr>td.product,.table-order tfoot>tr>th.product,.table-order thead>tr>td.product,.table-order thead>tr>th.product{text-align:left}.table-cart tbody>tr>td.image,.table-cart tbody>tr>th.image,.table-cart tfoot>tr>td.image,.table-cart tfoot>tr>th.image,.table-cart thead>tr>td.image,.table-cart thead>tr>th.image,.table-order tbody>tr>td.image,.table-order tbody>tr>th.image,.table-order tfoot>tr>td.image,.table-order tfoot>tr>th.image,.table-order thead>tr>td.image,.table-order thead>tr>th.image{border-right-color:transparent}.table-cart thead th,.table-order thead th{background-color:#f5f5f5;border-bottom-width:1px}.table-cart thead th.subprice,.table-order thead th.subprice{color:#f49a17}.table-cart tbody td.price,.table-cart tbody td.qty,.table-cart tbody td.subprice,.table-order tbody td.price,.table-order tbody td.qty,.table-order tbody td.subprice{padding:35px 10px}.table-cart tbody td.unitprice .price,.table-order tbody td.unitprice .price{color:#7a7a7a}.table-cart tbody td.unitprice .old-price .price,.table-order tbody td.unitprice .old-price .price{font-size:14px}.table-cart tbody td.unitprice .secondary-price .price,.table-order tbody td.unitprice .secondary-price .price{font-size:14px;font-weight:400}.table-cart tbody td.subprice .price,.table-order tbody td.subprice .price{color:#f49a17}.table-cart tfoot td,.table-cart tfoot th,.table-order tfoot td,.table-order tfoot th{background-color:#f5f5f5}.table-cart tfoot td.empty,.table-cart tfoot th.empty,.table-order tfoot td.empty,.table-order tfoot th.empty{background:0 0}.table-cart tfoot td.total,.table-cart tfoot th.total,.table-order tfoot td.total,.table-order tfoot th.total{background-color:#666;color:#fff}#categories.block-nav .block-content li .accordion-toggle:focus,#categories.block-nav .block-content li .accordion-toggle:hover,.block,.block .block-heading{background:0 0}.table-cart tfoot td.total .price,.table-cart tfoot th.total .price,.table-order tfoot td.total .price,.table-order tfoot th.total .price{color:inherit}.table-cart tfoot td.shipping .price,.table-order tfoot td.shipping .price{color:#7a7a7a;font-size:19px}.table-cart tfoot td.total .price,.table-order tfoot td.total .price{font-size:19px}.table-cart tfoot td.empty,.table-order tfoot td.empty{border-bottom-color:transparent;border-left-color:transparent}.table-cart tfoot th.total,.table-order tfoot th.total{font-weight:100;font-size:16px}.table-cart-total td.total .price,.table-order-total td.total .price{font-size:19px}.table-cart-total td.empty,.table-order-total td.empty{border-bottom-color:transparent;border-left-color:transparent}.alert-warning{clear:both;text-align:center}.alert-warning>a{color:inherit}.alert-warning:before{-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f071";display:block;font-size:2.2em}.block{border:1px solid transparent;border-radius:0}.block .block-heading{border-bottom:1px solid #dfdfdf;color:#888;margin:0 0 6px;padding-bottom:6px}.block .block-title{font-size:21px;margin-top:0;margin-bottom:0}.block .block-title>a{color:inherit}.block .block-content{font-size:12px;margin-bottom:20px}.block .block-content ul{padding-left:0;list-style:none}.block .block-content .block-subtitle{color:#f49a17;font-size:16px;font-weight:300;margin:0 0 6px}.block-default .block-content li{margin-left:15px;padding-top:6px}.block-default .block-content li a{color:#747474}.block-default .block-content li a:focus,.block-default .block-content li a:hover{color:#b66f09}.block-default .block-content li:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);color:#f49a17;margin-left:-15px;margin-right:5px}.block-links .block-content li a,.block-nav .block-content li a{color:#747474;font-size:12px;font-weight:400;display:block;position:relative}.block-links .block-content li+li a{border-top:1px solid #fff}.block-links .block-content li a{background-color:transparent;padding:10px 3px}.block-links .block-content li a:focus,.block-links .block-content li a:hover{text-decoration:none;background-color:#ebebeb}.block-links .block-content li a>p,.block-nav .block-heading{margin-bottom:0}.block-nav .block-content li a{background-color:transparent;padding:10px 60px 10px 3px}.block-nav .block-content li a:focus,.block-nav .block-content li a:hover{text-decoration:none;background-color:#f7f7f7}.block-nav .block-content li a.accordion-toggle:after{color:#f49a17;display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f068"}.block-nav .block-content li a.accordion-toggle.collapsed:after{content:"\f067"}.block-nav .block-content ul a{padding-left:15px}.block-nav .block-content ul ul a{padding-left:30px}.block-nav .block-content ul ul ul a{padding-left:45px}.block-thumbnail{margin-left:-15px;margin-right:-15px}.block-thumbnail.block-thumbnail-2 li{max-width:50%}.block-thumbnail.block-thumbnail-3 li{max-width:33.33333333%}.block-thumbnail.block-thumbnail-4 li{max-width:25%}.block-thumbnail .block-content li{float:left;padding-right:7.5px;padding-bottom:7.5px;position:relative;max-width:33.33333333%}.block-social .block-content li{display:inline-block;font-size:18px}.block-social .block-content li>a{color:#888}.block-social .block-content li>a:focus,.block-social .block-content li>a:hover{color:#b66f09}.block-newsletter .block-content form .btn-subscribe{padding:6px}.block-contact .block-content li{clear:both;margin-bottom:5px}.block-carousel{margin-bottom:30px}.block-carousel .carousel-indicators{bottom:auto}.block-carousel .block-carousel-control{float:right!important;float:right}.block-carousel .block-carousel-control .carousel-control{background:#efefef;color:#000;display:block;float:left;font-size:24px;margin-left:3px;position:relative;top:1px;left:auto;bottom:auto;width:28px;height:28px;transition:background-color .3s ease-in-out}.label-delivered,.label-new,.label-sale{padding:.2em .6em .3em;font-size:75%;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;color:#fff}.btn .label-delivered,.btn .label-new,.btn .label-sale{top:-1px;position:relative}.block-carousel .block-carousel-control .carousel-control:focus,.block-carousel .block-carousel-control .carousel-control:hover{background-color:#000;color:#fff}.label-new{display:inline;font-weight:700;background-color:#5bc0de}a.label-new:focus,a.label-new:hover{color:#fff;text-decoration:none;cursor:pointer}.label-new:empty{display:none}.label-new[href]:focus,.label-new[href]:hover{background-color:#31b0d5}.label-sale{display:inline;font-weight:700;background-color:#d9534f}a.label-sale:focus,a.label-sale:hover{color:#fff;text-decoration:none;cursor:pointer}.label-sale:empty{display:none}.label-sale[href]:focus,.label-sale[href]:hover{background-color:#c9302c}.label-delivered{display:inline;font-weight:700;background-color:#5cb85c}a.label-delivered:focus,a.label-delivered:hover{color:#fff;text-decoration:none;cursor:pointer}.grid .btn-grid,.list .btn-list{cursor:default;pointer-events:none;opacity:.65;filter:alpha(opacity=65);box-shadow:none}.label-delivered:empty{display:none}.label-delivered[href]:focus,.label-delivered[href]:hover{background-color:#449d44}.products-heading .btn-all{float:right}.products-heading h3{top:-14px!important;margin:0}.availability .in-stock{color:#5cb85c;font-style:italic;font-weight:700}.availability .in-stock .in{display:block}.availability .in-stock .out,.availability .out-of-stock .in{display:none}.availability .in-stock .quantity{font-style:italic}.availability .out-of-stock{color:#f0ad4e;font-style:italic;font-weight:700}.availability .out-of-stock .out{display:block}#brands .brands>ul .item>article .brand-image.overlay:after,.no-js .toolbar .limiter,.no-js .toolbar .sort-by{display:none}.option{background:#fff;border:1px solid transparent;border-radius:0}.option .option-heading{border-bottom:1px solid transparent;color:#7a7a7a;font-size:14px;font-weight:700}.option .option-content .checkbox label,.option .option-content .radio label{font-weight:100}#product #product-gallery{border-right:1px solid #f5f5f5;padding-right:20px}#product #product-details .name{font-size:21px;font-weight:400}#product #product-details .product-cart{background:#fff;border:1px solid transparent;border-radius:0}#product #product-tabs .nav-tabs{border-bottom:1px solid #ddd}#product #product-tabs .tab-content{border:1px solid #ddd;border-radius:0 0 3px 3px;padding:30px 15px;min-height:180px;height:auto!important;height:180px}.list .item+.item{border-top:1px solid #ededed}.list .item>article .product-price{text-align:right}.filter{background:#f5f5f5;border:1px solid #f5f5f5;border-radius:0}.filter .filter-heading{border-bottom:1px solid #dfdfdf;color:#888;font-size:19px;font-weight:100}.filter .filter-content .checkbox label,.filter .filter-content .radio label{font-weight:100}.toolbar{line-height:50px}.toolbar .pagination-container,.toolbar .sorter-container{overflow:hidden;height:50px}.toolbar .sorter-container{background-color:#fff;border-radius:0;padding:0;text-align:right}.overlay:after,.page-404 #main-label,.page-home #carousel .item,.toolbar .pagination-container{text-align:center}.toolbar .sorter-container .view-mode>.view-mode-btn{font-size:24px}.toolbar .sorter-container .view-mode>.view-mode-btn a{padding:0 6px;font-size:21px;text-decoration:none}#brands .brands>ul .item+.item{border-top:1px solid #ededed}.page-404 .main{padding:10px 0 100px}.page-404 #main-label{color:#f49a17;font-size:9em;font-weight:700}.page-404 #main-label span{color:#CCC;display:block;font-size:15px;font-weight:400}.page-home #carousel{margin-bottom:20px}@media screen and (min-width:768px){.page-home #carousel .carousel-control .fa-caret-left,.page-home #carousel .carousel-control .fa-caret-right{font-size:80px;margin-top:-40px;margin-left:-40px;width:80px;height:80px}}.page-header{border:none;font-weight:100;font-size:30px}.has-error .help-block:before,.navbar li>a.home:before,.navbar li>a.login:before{font:normal normal normal 14px/1 FontAwesome;-moz-osx-font-smoothing:grayscale;text-rendering:auto}.form-control{box-shadow:none}.form-control:invalid:focus{border-color:#843534;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}#account .panel,.dropdown-menu,.modal-content,.popover{box-shadow:none}.has-error .help-block:before{display:inline-block;font-size:inherit;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);margin-right:.3em}label{font-weight:600}.overlay{display:block;overflow:hidden;position:relative;font-size:40px}.overlay:after,.overlay:before{display:block;width:100%;height:100%;visibility:hidden;position:absolute;top:0;left:0;right:0;opacity:0;filter:alpha(opacity=0);transition:all .3s ease-in-out 50ms}.overlay:before{content:'';overflow:visible;background-color:#f49a17;background-color:rgba(244,154,23,.4)}.overlay:after{font-family:FontAwesome;color:#fff;-ms-transform:translate(0,0);transform:translate(0,0);line-height:0}.overlay:focus:after,.overlay:focus:before,.overlay:hover:after,.overlay:hover:before{visibility:visible;opacity:1;filter:alpha(opacity=100)}.overlay:focus:after,.overlay:hover:after{-ms-transform:translate(0,50%);transform:translate(0,50%)}.navbar li>a.home:before{display:inline-block;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);color:#c9c9c9;font-size:26px;line-height:0;margin-right:.5em;position:relative;top:3px}.navbar li>a.login:before{display:inline-block;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f007";font-size:19px;line-height:0;margin-right:.5em}#product-details .product-promo .sale-saving:before,.navbar li.cart-not-empty>a.cart:before{font:normal normal normal 14px/1 FontAwesome;-ms-transform:translate(0,0);-moz-osx-font-smoothing:grayscale}.navbar li>a.cart:focus>.badge,.navbar li>a.cart:hover>.badge{background-color:#fff;color:#f49a17}.navbar li.cart-not-empty>a.cart{color:#fff}.navbar li.cart-not-empty>a.cart>.badge{color:#f49a17}.navbar li.cart-not-empty>a.cart:focus,.navbar li.cart-not-empty>a.cart:hover{background-color:#f49a17;color:#fff}.navbar li.cart-not-empty>a.cart:before{display:inline-block;text-rendering:auto;-webkit-font-smoothing:antialiased;transform:translate(0,0);content:"\f07a";font-size:24px;line-height:0;margin-right:.4em}@media (min-width:992px){.navbar .navbar-nav .list-subnav>li+li{border-top:1px solid #e28a0b}.navbar .navbar-nav .list-subnav>li>a{font-weight:100}}.navbar .navbar-nav>li>a:focus:before,.navbar .navbar-nav>li>a:hover:before{color:#fff}.navbar .navbar-nav>.active>a:focus,.navbar .navbar-nav>.active>a:hover{background-color:#f49a17;color:#fff}.navbar .navbar-nav>.active:after{background:#f49a17;content:"";display:block;position:absolute;bottom:0;width:100%;height:2px;z-index:100}.navbar .navbar-nav>.open>a,.navbar .navbar-nav>.open>a:focus,.navbar .navbar-nav>.open>a:hover{background-color:#f49a17;color:#fff}.navbar .navbar-nav>.open>a:before,.navbar .navbar-nav>.open>a:focus:before,.navbar .navbar-nav>.open>a:hover:before{color:#fff}.container>.navbar-collapse{margin-left:-15px;margin-right:-15px}header .header .logo{float:none}.page-home #carousel .carousel-control{background-image:none}.products-heading h2{color:#7a7a7a;font-size:18px;font-weight:700}.products-heading .btn-all,.products-heading .btn-all:focus,.products-heading .btn-all:hover{color:#7a7a7a;font-size:16px;font-style:italic;font-weight:600}.products-heading .short-description{background-color:#f5f5f5;margin-bottom:10px;padding:10px}.product-options dl{font-size:.85em;margin-bottom:10px}.product-options dl>dt{text-align:left}.product-info .name,td.product .name{font-size:16px;font-weight:600}.product-info .name>a,td.product .name>a{color:#7a7a7a;text-decoration:none}.product-info .name>a:focus,.product-info .name>a:hover,td.product .name>a:focus,td.product .name>a:hover{color:#b66f09}.product-price .price-label{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;display:block}.product-price .regular-price .price,.product-price .special-price .price{display:block;font-size:14px;line-height:25px;font-style:normal;font-weight:400}.product-price .old-price .price{display:block;font-size:14px;line-height:25px;font-style:italic;font-weight:400;text-decoration:line-through}#products-new .products-grid .overlay:after{-ms-transform:translate(0,40%);transform:translate(0,40%)}#products-new .products-grid .item>article{border-bottom:4px solid #f49a17;border-bottom-right-radius:3px;border-bottom-left-radius:3px;overflow:hidden;position:relative}#products-new .products-grid .item>article .product-info{background-color:#f6af48;color:#fff;display:block;padding:6px 12px;position:relative;text-decoration:none!important}#products-new .products-grid .item>article .product-info:focus,#products-new .products-grid .item>article .product-info:hover{background-color:#f49a17}#products-new .products-grid .item>article .product-info .name{min-height:40px;height:auto!important;height:40px}#products-new .products-grid .item>article .product-info .name:after{content:'+';font-size:45px;line-height:0;font-style:normal;font-weight:100;position:absolute;top:16px;right:4px;-webkit-font-smoothing:antialiased}#products-new .products-grid .item>article .product-info .short-description{font-size:11px;line-height:1.1}#products-new .products-grid .item>article .product-price .price{color:#fff;font-size:22px;font-weight:700}@media (min-width:992px){#products-new .products-grid .item>article .product-image{padding-bottom:40px}#products-new .products-grid .item>article .product-info{transition:height .3s linear;position:absolute;bottom:0;width:100%;height:50px}#products-new .products-grid .item>article .product-info h3{margin-top:2px;padding-right:20px}#products-new .products-grid .item>article .product-info h3 span{height:2em;overflow:hidden;display:block}#products-new .products-grid .item>article .product-info:focus,#products-new .products-grid .item>article .product-info:hover{cursor:pointer;height:140px}}#products-upsell{margin-top:40px;position:relative}#products-upsell .products-heading{border-bottom:1px solid #e5e5e5;margin:20px 0}#products-upsell .products-heading h3{background:#fff;color:#f49a17;padding-right:15px;position:absolute;top:-24px}#products-offer .products-grid .item>article,#products-related .products-grid .item>article,#products-upsell .products-grid .item>article{border-radius:3px;transition:background-color .3s ease-in-out;padding:6px}#products-offer .products-grid .item>article .product-info,#products-related .products-grid .item>article .product-info,#products-upsell .products-grid .item>article .product-info{padding:0}#products-offer .products-grid .item>article .product-info .short-description,#products-related .products-grid .item>article .product-info .short-description,#products-upsell .products-grid .item>article .product-info .short-description{font-size:11px}@media (min-width:768px){#products-offer .products-grid .item:hover article,#products-related .products-grid .item:hover article,#products-upsell .products-grid .item:hover article{background-color:#f6f6f6}}#products-new .overlay:after,#products-offer .overlay:after,#products-upsell .overlay:after{content:'+';font-size:80px;font-weight:100;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#products-new .overlay:before{border-radius:3px 3px 0 0}#category-products .item>article .product-info .description{font-size:.83em;line-height:1.3}#category-products .item>article .product-price .price-label{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;display:block}#category-products .item>article .product-price .price-container{margin-bottom:10px}#category-products .item>article .product-price .price-container .price{margin-left:4px}#category-products .item>article .product-price .product-btn{min-height:26px}.grid #category-products .item{border-right:1px solid #e8e8e8;margin:0;padding:10px}.grid #category-products .item>article .product-info{padding:3px}.grid #category-products .item>article .product-info .name{margin:4px;height:2em;overflow:hidden}.grid #category-products .item>article .product-info .description{margin-left:4px}.list #category-products .item>article .product-price .price-container{margin-bottom:20px}.list #category-products .item>article .product-price .price-container .old-price,.list #category-products .item>article .product-price .price-container .regular-price,.list #category-products .item>article .product-price .price-container .special-price{display:block;width:100%}#product-details .product-info{border-bottom:1px solid #e5e5e5;margin-bottom:15px}#product-details .product-info .sku{color:#e5e5e5;display:block;font-size:14px;margin-top:-8px;margin-bottom:20px}#product-details .product-info .pse-name{color:#555;font-size:14px}#product-details .product-options .option{margin-bottom:10px}#product-details .product-cart{background-color:#f5f5f5!important;margin-bottom:20px;padding:10px!important}#product-details .product-promo{background-color:#f5f5f5;margin-bottom:15px;padding:10px}#product-details .product-promo .sale-label{font-weight:300;line-height:1.4;font-size:21px}#product-details .product-promo .sale-saving{color:#f49a17}#product-details .product-promo .sale-saving:before{display:inline-block;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;transform:translate(0,0);content:"\f005"}#product-details .product-promo .sale-period{font-style:italic;font-size:90%}#product-thumbnails .carousel-control{width:17px!important}#product-thumbnails .carousel-control .fa{position:absolute;top:50%}#product-thumbnails .carousel-control.left{border-right:7px solid #ccc;color:#ccc;text-align:left}#product-thumbnails .carousel-control.left>.fa-caret-left{left:0;margin-left:0;margin-top:-15px}#product-thumbnails .carousel-control.left>.fa-caret-left:before{color:inherit}#product-thumbnails .carousel-control.right{border-left:7px solid #ccc;text-align:right}#product-thumbnails .carousel-control.right>.fa-caret-right{left:auto;right:0;margin-left:0;margin-top:-15px}@media (min-width:768px){#product #product-gallery{border-right:1px solid #eee;padding-right:20px}#product #product-details .group-qty .form-control{display:inline-block;margin-right:1em;margin-left:.4em;width:100px}}#product-gallery .product-image{margin-bottom:20px}#product-gallery .product-thumbnails li{width:20%}#filters{background:#f5f5f5}#filters>h3{background:#e5e5e5;box-shadow:inset 0 -4px 10px rgba(0,0,0,.125);margin:0 0 15px;padding:10px 15px;font-size:18px;font-weight:700}#filters>h3>span{display:block;font-size:.75em;font-weight:100;text-transform:lowercase}#filters>h3:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f002";font-size:30px;float:left;margin-right:.5em}#filters .filter{margin-bottom:10px}.block.block-links .block-content ul>li+li a{border-top:none}.block.block-links .block-content ul>li+li:before{background:#fff;content:"";display:block;margin:0 auto;text-align:center;width:65%;height:2px}.block.block-newsletter .block-content form .form-group{position:relative}@media (min-width:1200px){.block.block-newsletter .block-content form .form-group{width:176px}}.block.block-newsletter .block-content form .form-group .form-control{background-color:#e6e6e6;font-size:12px;padding-left:35px;width:inherit;box-shadow:inset 1px 1px 1px rgba(0,0,0,.075)}.block.block-contact .block-content ul>li.contact-address:before,.block.block-contact .block-content ul>li.contact-phone:before,.block.block-newsletter .block-content form .form-group:before{font:normal normal normal 14px/1 FontAwesome;display:inline-block;-moz-osx-font-smoothing:grayscale}.block.block-newsletter .block-content form .form-group .form-control::-moz-placeholder{color:#888;opacity:1}.block.block-newsletter .block-content form .form-group .form-control:-ms-input-placeholder{color:#888}.block.block-newsletter .block-content form .form-group .form-control::-webkit-input-placeholder{color:#888}.block.block-newsletter .block-content form .form-group .form-control:focus::-moz-placeholder{color:#c8c8c8;opacity:1}.block.block-newsletter .block-content form .form-group .form-control:focus:-ms-input-placeholder{color:#c8c8c8}.block.block-newsletter .block-content form .form-group .form-control:focus::-webkit-input-placeholder{color:#c8c8c8}.block.block-newsletter .block-content form .form-group:before{text-rendering:auto;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f0e0";color:#8b8b8b;font-size:18px;position:absolute;top:8px;left:9px}.block.block-newsletter .block-content form .btn-subscribe{padding:6px}.block.block-social .block-content ul>li>a:hover.facebook{color:#3d5fa6}.block.block-social .block-content ul>li>a:hover.twitter{color:#53b1f0}.block.block-social .block-content ul>li>a:hover.rss{color:#fac200}.block.block-social .block-content ul>li>a:hover.instagram{color:#425E75}.block.block-social .block-content ul>li>a:hover.google-plus{color:#fac200}.block.block-social .block-content ul>li>a:hover.youtube{color:#e82a20}.block.block-contact .block-content ul>li{clear:both;margin-bottom:5px}.block.block-contact .block-content ul>li.contact-address:before{text-rendering:auto;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f041";font-size:34px}.block.block-contact .block-content ul>li.contact-phone:before{text-rendering:auto;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f10b";font-size:30px;margin-top:-8px;margin-left:3px}.block.block-contact .block-content ul>li.contact-email:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f0e0";font-size:17px;margin-left:2px}.block.block-contact .block-content ul>li:before{color:#f49a17;float:left;line-height:1;margin-right:.4em}.block.block-contact .block-content ul>li.contact-contact:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f1d8";font-size:17px}#categories.block-nav .block-content{border-top:1px solid #aeaeae}#categories.block-nav .block-content .amount{font-weight:700}#categories.block-nav .block-content li{border-top:1px solid #eee;position:relative}#categories.block-nav .block-content li .accordion-toggle{position:absolute;top:0;right:0;padding-right:10px;padding-left:5px}#categories.block-nav .block-content li .accordion-toggle:focus:after,#categories.block-nav .block-content li .accordion-toggle:hover:after{border-color:#b66f09;color:#b66f09}#categories.block-nav .block-content li .accordion-toggle:after{border:1px solid #f49a17;border-radius:10px;line-height:17px;text-align:center;width:19px;height:19px}.toolbar.toolbar-top{margin-top:-20px;border-bottom:1px solid #eee}.toolbar.toolbar-bottom .sorter-container,.toolbar.toolbar-top .pagination-container{display:none}.toolbar .amount{color:#f49a17;font-size:22px;font-weight:400}.toolbar .view-mode>.view-mode-btn a{background-color:#fff;border:0!important;color:#7a7a7a}.toolbar .view-mode>.view-mode-btn a:focus,.toolbar .view-mode>.view-mode-btn a:hover{background-color:#efefef;color:#474747}.toolbar .view-mode>.view-mode-btn a:active{color:#fff}.pagination>li>a,.pagination>li>span{box-shadow:2px 1px 1px rgba(0,0,0,.1);transition:all .2s ease-in-out;background-image:linear-gradient(to bottom,#fff 0,#f9f9f9 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff9f9f9', GradientType=0);color:#7a7a7a;font-weight:700}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{background:0 0}.pagination>li>a:focus:active,.pagination>li>a:hover:active,.pagination>li>span:focus:active,.pagination>li>span:hover:active{background-color:#f49a17;border-color:#f49a17;color:#fff}.pagination>li:first-child>a,.pagination>li:first-child>span{border-bottom-left-radius:30px;border-top-left-radius:30px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:30px;border-top-right-radius:30px}.pagination>.active>a,.pagination>.active>span{background-image:none}#form-forgotpassword .group-email label,#form-forgotpassword legend,#form-login .group-email label,#form-login legend{font-size:16px;font-weight:600}#form-forgotpassword .radio-account1,#form-login .radio-account1{margin-top:10px}#form-forgotpassword .forgot-password,#form-login .forgot-password{color:#7a7a7a;font-size:12px;font-style:italic}@media (min-width:768px){#form-forgotpassword .radio-account1,#form-login .radio-account1{float:left}#form-forgotpassword .group-password,#form-login .group-password{float:right;margin-top:5px;width:50%}}#delivery-address.panel .panel-body,#delivery-method.panel .panel-body{padding:0}#delivery-method.panel .radio{display:block;margin-top:0}#delivery-method.panel .radio+.radio{border-top:1px solid #f5f5f5}#delivery-method.panel .price{text-align:right}#delivery-method.panel .image{text-align:center}#account .panel-title,#payment-success.panel .panel-heading{text-align:left}.js #payment-method .radio{padding-left:0;position:relative}.js #payment-method .radio .active:after{font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);color:#f49a17;display:block;font-size:1.5em;line-height:0;position:absolute;bottom:-8px;left:40%}#payment-success.panel .panel-heading .payment-method{font-size:inherit}#payment-success.panel .panel-body{padding:20px 40px}#payment-success.panel .panel-body>h3{color:#f49a17}#account .panel{border-color:#fff}#account .panel-title>a:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f078";float:left;width:20px}#account .panel-title>a.collapsed:before{content:"\f054"}#account-info .fn{font-size:16px;font-weight:600}#account-info .list-info .email:before,#account-info .list-info .mobile:before,#account-info .list-info .tel:before{color:#f49a17;line-height:1;margin-right:.4em;vertical-align:middle}#account-info .list-info .mobile:before,#account-info .list-info .tel:before{font:normal normal normal 14px/1 FontAwesome;display:inline-block;text-rendering:auto;-moz-osx-font-smoothing:grayscale}#account-info .list-info .mobile:before{-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f10b";font-size:30px}#account-info .list-info .tel:before{-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);font-size:22px}#account-info .list-info .email:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f0e0";font-size:18px}#account-info .group-btn a{color:#7a7a7a;margin-bottom:4px;padding:0}#account-info .group-btn a>i{color:#f49a17;font-size:20px;line-height:1;margin-right:.3em;vertical-align:middle}#account-info .group-btn a:focus,#account-info .group-btn a:hover{color:#b66f09}#account-address .panel-body{padding-left:0;padding-right:0;padding-top:10px}#account-address .table-address{border:1px solid #f5f5f5;margin-bottom:0}#account-orders .panel-body{padding-left:0;padding-right:0}#account-orders .table-orders tbody>tr>td,#account-orders .table-orders tbody>tr>th,#account-orders .table-orders thead>tr>td,#account-orders .table-orders thead>tr>th{padding:14px;text-align:center}#account-orders .table-orders thead>tr>th{background-color:#f5f5f5;border-bottom-width:1px}#account-orders .table-order-products tbody>tr>td,#account-orders .table-order-products tbody>tr>th,#account-orders .table-order-products thead>tr>td,#account-orders .table-order-products thead>tr>th{padding:5px;text-align:center}.table-cart-mini tbody>tr>td,.table-cart-mini tbody>tr>th,.table-cart-mini tfoot>tr>td,.table-cart-mini tfoot>tr>th,.table-cart-mini thead>tr>td,.table-cart-mini thead>tr>th{vertical-align:middle}#google-map{border:none;display:block;margin-bottom:20px;width:100%;height:350px;-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%)}#sale-details .sale-discount-information{background-color:#f5f5f5;margin-bottom:10px;padding:10px}header .row,header nav.navbar .container-fluid{background-color:#F29D39}#sale-details .sale-discount-information .sale-saving{font-size:120%;color:#f49a17}#sale-details .sale-discount-information .sale-saving:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f005"}#sale-details .sale-discount-information .sale-period{font-style:italic;font-size:90%}#sale-details .sale-information{margin-bottom:30px}#sale-details .sale-information .chapo,#sale-details .sale-information .description{margin-bottom:10px}.rev_slider_wrapper{margin-bottom:15px!important}header a{color:#303c6e}header .header{margin-top:30px}header .header-custom{height:1%;min-width:100%;display:grid;grid-gap:.5rem;-ms-flex-align:center;align-items:center;justify-items:left;margin-bottom:0}@media screen and (min-width:992px){header .header-custom{grid-template-areas:"logo content" "footer footer"}}header .logo-custom{grid-area:logo;width:346px;padding-left:15px}header .logo-custom img{width:100%}header .secondary-custom{grid-area:content;height:45px}@media screen and (max-width:992px){header .header-custom{grid-template-areas:"logo" "content" "footer"}header .secondary-custom{width:100%;height:auto;margin-bottom:0;display:grid}header .secondary-custom div.search-container{padding:0}header .secondary-custom>nav>div,header .secondary-custom>nav>ul{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:left;margin-right:40px}header .primary-custom{z-index:1}}header .primary-custom{grid-area:footer;width:100%}header nav.navbar{min-height:0;margin-bottom:0;border:none}@media screen and (min-width:992px){header .primary-custom{height:25px}header nav.navbar .container-fluid .navbar-collapse{padding-left:0}header nav.navbar #navbar-primary>ul>li.top-tab>a:hover,header nav.navbar .navbar-nav>.open>a,header nav.navbar .navbar-nav>.open>a:hover{border-top-left-radius:12px;border-top-right-radius:12px}}header nav.navbar li.dropdown,header nav.navbar li.top-tab{background-color:#303C6E}header nav.navbar li.dropdown>a,header nav.navbar li.top-tab>a{padding:5px 10px;color:#fff}@media screen and (max-width:992px){header nav.navbar .dropdown-custom{color:#fff!important;background-color:#305587!important}header nav.navbar .dropdown-custom:focus,header nav.navbar .dropdown-custom:hover{background-color:#F29D39!important}}header nav.navbar #navbar-primary>ul>li.top-tab>a:hover,header nav.navbar .navbar-nav>.open>a,header nav.navbar .navbar-nav>.open>a:hover{background-color:#305587}@media screen and (min-width:992px){header nav.navbar li{margin-right:10px}header nav.navbar li.dropdown,header nav.navbar li.top-tab{border-top-left-radius:12px;border-top-right-radius:12px}}@media screen and (min-width:480px){#barre-superieure{display:none}}@media screen and (min-width:480px) and (max-width:992px){div.secondary-custom>nav.nav-secondary{display:block;top:0}}.navbar li.cart-not-empty>a.cart:before,.navbar li>a.login:before,.navbar-secondary .dropdown>a:after{color:#303C6E}.badge,.navbar li.cart-not-empty>a.cart>.badge{background-color:#303C6E}.navbar li.cart-not-empty>a.cart{background-color:#303C6E!important}@media screen and (max-width:992px){.navbar-nav{margin:0}}.footer-container .footer-info{background-color:#F29D39;color:#303C6E;font-weight:700}.footer-container .footer-info a{color:#303C6E;font-weight:700} \ No newline at end of file + */@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome/fontawesome-webfont.eot?v=4.3.0);src:url(../fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=4.3.0) format('embedded-opentype'),url(../fonts/fontawesome/fontawesome-webfont.woff2?v=4.3.0) format('woff2'),url(../fonts/fontawesome/fontawesome-webfont.woff?v=4.3.0) format('woff'),url(../fonts/fontawesome/fontawesome-webfont.ttf?v=4.3.0) format('truetype'),url(../fonts/fontawesome/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular) format('svg');font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;transform:translate(0,0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before,.navbar li>a.login:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-close:before,.fa-remove:before,.fa-times:before,.has-error .help-block:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-cog:before,.fa-gear:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-repeat:before,.fa-rotate-right:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.block-default .block-content li:before,.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-floppy-o:before,.fa-save:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-sort:before,.fa-unsorted:before{content:"\f0dc"}.fa-sort-desc:before,.fa-sort-down:before{content:"\f0dd"}.fa-sort-asc:before,.fa-sort-up:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-gavel:before,.fa-legal:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-bolt:before,.fa-flash:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-clipboard:before,.fa-paste:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-chain-broken:before,.fa-unlink:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\f150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\f151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\f152"}.fa-eur:before,.fa-euro:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-inr:before,.fa-rupee:before{content:"\f156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\f157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\f158"}.fa-krw:before,.fa-won:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-try:before,.fa-turkish-lira:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\f19c"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\f1c5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\f1c6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-empire:before,.fa-ge:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-paper-plane:before,.fa-send:before{content:"\f1d8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before,.fa-genderless:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-bed:before,.fa-hotel:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}header .header{margin-bottom:20px}header .header .language-container .search-container{margin-bottom:10px}header .header .language-container .search-container .form-control{width:auto}header .header .language-container .currency-switch,header .header .language-container .language-switch{display:inline-block;position:relative;vertical-align:middle}header .header .language-container .currency-switch .dropdown-label,header .header .language-container .language-switch .dropdown-label{display:inline-block;float:left;margin-left:1em;margin-right:.4em}header .header .language-container .currency-switch .current,header .header .language-container .language-switch .current{display:inline-block;float:left;position:relative}#payment-method.panel .radio,.account-info .email,.account-info .mobile,.account-info .tel,.js .group-qty .form-inline .form-group{display:block}header .header .language-container .currency-switch .select,header .header .language-container .language-switch .select{left:auto;right:0;min-width:80px}.footer-container .footer-banner .banner .col{padding:10px 0}.footer-container .footer-block .blocks,.footer-container .footer-info .info{padding:20px 0}.footer-container .footer-info .info .nav-footer ul li+li:before{margin-right:10px}.account-info address{margin-bottom:0}.account-info li{margin-bottom:20px}.list-payment,.table-order tbody td.qty .group-qty{margin-bottom:0}.table-order-total td{width:50%}#delivery-address .panel-heading{position:relative}.checkout-progress{margin-bottom:20px;width:100%}.alert-warning,.cart-warning,.table-cart tbody td.qty .group-qty,.table-cart-mini{margin-bottom:0}.cart-empty{margin:0;padding:40px}.table-cart-total td{width:50%}.cart-warning{clear:both}.pagination>li>a:focus,.pagination>li>span:focus{z-index:3}@media (min-width:992px){.navbar .navbar-cart .dropdown>a:after,.navbar .navbar-customer .dropdown>a:after{padding-left:.3em;display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f078";float:none}}@media (min-width:992px) and (min-width:992px){.navbar .navbar-cart .dropdown>a:after,.navbar .navbar-customer .dropdown>a:after{float:none}}.navbar .navbar-cart .dropdown-menu,.navbar .navbar-customer .dropdown-menu{margin:0;padding:20px}@media (max-width:992px){.navbar .navbar-cart .dropdown-menu,.navbar .navbar-customer .dropdown-menu{display:none}}.navbar .navbar-cart .dropdown-menu.cart-content,.navbar .navbar-customer .dropdown-menu.cart-content{width:350px}.navbar .navbar-cart .dropdown-menu.cart-content>p,.navbar .navbar-customer .dropdown-menu.cart-content>p{margin:0}.navbar .navbar-cart .cart-not-empty .cart-content,.navbar .navbar-customer .cart-not-empty .cart-content{border-top:none;padding:0}.navbar .full-width{position:static}.navbar .full-width .dropdown-menu{width:100%;left:0;right:0}.navbar .full-width .dropdown-menu .dropdown-content .dropdown-subheading{display:block}.js .dropdown-toggle:after{float:right;padding-left:.3em}@media (min-width:992px){.navbar-collapse .navbar-nav.navbar-right:first-child{margin-right:-15px}.navbar-collapse .navbar-nav.navbar-right:last-child{margin-right:0}.js .dropdown-toggle:after{float:none}}#form-forgotpassword,#form-login{padding:45px}#form-forgotpassword legend,#form-login legend{margin-bottom:10px}#filters,.filter{margin-bottom:20px}.filter{padding:0 15px}.filter .filter-heading{margin:0 0 4px}.toolbar{margin-bottom:20px}.toolbar .sorter-container .amount{float:left}.grid .products-content>ul .item>article .product-image,.grid .products-content>ul .item>article .product-info,.grid .products-content>ul .item>article .product-price,.list .products-content>ul .item{width:100%;float:none}.toolbar .sorter-container .sort-by,.toolbar .sorter-container .view-mode{margin-left:40px}.toolbar .pagination-container>.pagination{margin:15px 0 0}.products-content>ul .item .product-info .short-description,.products-content>ul .item .product-price .price-container{display:block;margin-bottom:5px}.grid .products-content>ul .item{margin-bottom:20px}.grid .products-content>ul .item>article{margin:0}.grid .products-content>ul .item>article .product-image{padding:0}.grid .products-content>ul .item>article .name{margin:4px 0}.grid .products-content>ul .item .description{display:none!important}@media (max-width:767px){.grid .products-content>ul .item .description{display:block!important}table.grid .products-content>ul .item .description{display:table!important}tr.grid .products-content>ul .item .description{display:table-row!important}td.grid .products-content>ul .item .description,th.grid .products-content>ul .item .description{display:table-cell!important}}.grid .products-content>ul .item .product-price{padding:0}.list .products-content>ul .item+.item{padding-top:15px}.list .products-content>ul .item>article{margin-left:0}.list .products-content>ul .item>article .product-image{margin-bottom:15px;padding:0}.list .products-content>ul .item>article .product-info .name{margin-top:0}.option{margin-bottom:20px;padding:0}.option .option-heading{display:block;margin:0 0 5px}#product #product-gallery .product-image,#product>section{margin-bottom:20px}#product #product-gallery #product-thumbnails .carousel-inner{margin:0 auto;width:90%}#brands .brands>ul .item>article,#folder-contents .contents>ul .item>article,.contents-list .item>article{margin-left:0}#product #product-gallery #product-thumbnails .carousel-control{background-image:none;display:none;width:4%;margin-top:-4px}#brands .brands>ul .item>article .brand-info .name,#folder-contents .contents>ul .item>article .content-info .name,#product #product-details .name,.contents-list .item>article .content-info .name,.page-header,.table-address .radio,.table-delivery .radio{margin-top:0}#product #product-gallery #product-thumbnails ul{margin:0}#product #product-gallery #product-thumbnails ul>li{margin:0;padding:0;width:19%}#folder-contents .contents>ul .item>article .content-image>img,.contents-list .item>article .content-image>img{width:100%}#product #product-gallery #product-thumbnails ul>li .thumbnail.disabled{opacity:.3;filter:alpha(opacity=30)}#product #product-details .product-price{margin-bottom:20px}#product #product-details .product-cart{margin-bottom:20px;padding:0}#product #product-tabs{margin-bottom:20px}#product #product-tabs .nav-tabs{margin-bottom:-1px}.folder-description{margin-bottom:20px}.contents-list .item{padding-bottom:15px}.contents-list .item+.item{padding-top:15px}.contents-list .item>article .content-image{margin-bottom:15px;padding:0}.brand-description,.main{margin-bottom:20px}#brands .brands>ul .item{padding-bottom:15px}#brands .brands>ul .item+.item{padding-top:15px}#brands .brands>ul .item>article .brand-image{margin-bottom:15px;padding:0}header .header .logo a{text-decoration:none}header .header .language-container{text-align:right}header .header .language-container .currency-switch .dropdown-label,header .header .language-container .language-switch .dropdown-label{font-size:1em;font-weight:300}.footer-container .footer-banner{background-color:#e8e8e8;font-size:19px}.footer-container .footer-banner .banner i{display:block;font-size:2em}.footer-container .footer-banner .banner small{font-size:.65em;display:block;font-style:italic;font-weight:400}.footer-container .footer-banner .banner .col{text-align:center}.footer-container .footer-banner .banner .col+.col{border-top:1px solid #d6d6d6}@media (min-width:768px){.footer-container .footer-banner .banner .col+.col{border-left:1px solid #d6d6d6;border-top:none}}.footer-container .footer-block{background-color:#f5f5f5}.footer-container .footer-info{font-size:12px}.footer-container .footer-info .info .nav-footer ul li+li:before{content:'-'}.footer-container .footer-info .info .copyright{font-weight:300;text-align:right}#payment-method.panel .panel-body,.cart-warning{text-align:center}.footer-container .footer-info .info .copyright>a{font-weight:700}.cart-warning>a{color:inherit}.cart-warning:before{font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;transform:translate(0,0);content:"\f071";display:block;font-size:2.2em}.breadcrumb>li+li:before,.js .dropdown-toggle:after{-ms-transform:translate(0,0);text-rendering:auto;-moz-osx-font-smoothing:grayscale}#cart-address .panel{border:none}#payment-method.panel .radio label>img{border:1px solid #ddd;border-radius:3px;opacity:.4;filter:alpha(opacity=40)}#payment-method.panel .radio label>img:focus,#payment-method.panel .radio label>img:hover{opacity:1;filter:alpha(opacity=100);transition:opacity .2s ease-in-out}.btn,a{transition:all .3s ease-in-out}#payment-method .list-group-item{border:none}.js #payment-method .radio .active>img,.js #payment-method .radio input:checked+img{opacity:1;filter:alpha(opacity=100)}.checkout-progress .btn-step{padding:16px 24px;background:#eee;color:#555}.checkout-progress .btn-step+.btn-step{border-left:1px solid #555}.checkout-progress .btn-step .step-nb{border-right:1px solid #7a7a7a;font-size:30px;line-height:0;font-weight:600;padding-right:6px;vertical-align:middle}.checkout-progress .btn-step .step-label{font-size:20px;font-weight:100;min-width:250px;padding-left:6px;vertical-align:middle}.checkout-progress .btn-step.active,.checkout-progress .btn-step:active,.checkout-progress .btn-step:focus,.checkout-progress .btn-step:hover{color:#fff;background:#f49a17}.checkout-progress .btn-step.active .step-nb,.checkout-progress .btn-step:active .step-nb,.checkout-progress .btn-step:focus .step-nb,.checkout-progress .btn-step:hover .step-nb{border-right:1px solid #fff}.checkout-progress .btn-step.active{background:#f49a17;cursor:default;display:inherit;pointer-events:none}.price{color:#f49a17;font-size:20px;font-weight:700;font-style:italic;white-space:nowrap}.old-price .price{color:#7a7a7a;font-size:16px;font-weight:600;text-decoration:line-through}#folder-contents .contents>ul .item{padding-bottom:15px}#folder-contents .contents>ul .item+.item{padding-top:15px;border-top:1px solid #ededed}#folder-contents .contents>ul .item>article .content-image{margin-bottom:15px;padding:0}.contents-list .item+.item{border-top:1px solid #ededed}.breadcrumb{padding:0}.breadcrumb>li+li:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;-webkit-font-smoothing:antialiased;transform:translate(0,0);content:"\f105"}.btn{border-radius:0;text-align:left;font-weight:600}.btn-primary{font-style:italic;border-left:3px solid #f9c478}.btn-primary:focus,.btn-primary:hover{background-color:#f49a17;color:#b66f09}.btn-default{border-left:3px solid #ccc}.btn-default:focus,.btn-default:hover{background-color:#f7f7f7}.btn-default.active,.btn-default.active:hover,.btn-default:active,.btn-default:active:hover,.btn-primary.active,.btn-primary.active:hover,.btn-primary:active,.btn-primary:active:hover{background-color:#d5d5d5;border-color:#6f6f6f;color:#fff}.btn-link{font-weight:400}.form-control:focus::-moz-placeholder{color:#eee;opacity:1}.form-control:focus:-ms-input-placeholder{color:#eee}.form-control:focus::-webkit-input-placeholder{color:#eee}#form-login-mini{width:200px}#form-login-mini .mini-forgot-password{font-size:12px}#form-forgotpassword,#form-login{background:#f5f5f5}#form-forgotpassword legend,#form-login legend{font-size:14px;font-weight:700}.fn,.table-address .radio label,.table-delivery .radio label{font-weight:600}#form-forgotpassword .btn-login,#form-login .btn-login{display:block;width:100%}@media (min-width:768px){#form-forgotpassword .group-btn,#form-login .group-btn{text-align:right}#form-forgotpassword .group-btn .btn-login,#form-login .group-btn .btn-login{display:inline-block;width:auto}}@media (min-width:992px){.btn{padding:2px 15px 2px 5px}#form-forgotpassword,#form-login{width:45%}}#brands .brands>ul .item>article .brand-image>img,.grid .item .product-image>img,.list .item>article .product-image>img,.loader{width:100%}.no-js .collapse{display:block!important}.loader,.no-js #carousel .carousel-control{display:none}.loader{background:url(../img/ajax-loader.gif) center center no-repeat #fff;background-color:rgba(255,255,255,.5);left:0;top:0;height:100%;z-index:100}.oldie{position:absolute}.thumbnail.active{border-color:#7a7a7a}.fn{display:block}.adr,.org{font-size:12px}.table-address .group-btn,.table-delivery .group-btn{text-align:right}.table-address tbody>tr>td,.table-address tbody>tr>th,.table-address tfoot>tr>td,.table-address tfoot>tr>th,.table-address thead>tr>td,.table-address thead>tr>th,.table-delivery tbody>tr>td,.table-delivery tbody>tr>th,.table-delivery tfoot>tr>td,.table-delivery tfoot>tr>th,.table-delivery thead>tr>td,.table-delivery thead>tr>th{border-color:#f5f5f5;padding:10px 10px 0}@media (min-width:768px){.table-address tbody>tr>td,.table-address tbody>tr>th,.table-address tfoot>tr>td,.table-address tfoot>tr>th,.table-address thead>tr>td,.table-address thead>tr>th,.table-delivery tbody>tr>td,.table-delivery tbody>tr>th,.table-delivery tfoot>tr>td,.table-delivery tfoot>tr>th,.table-delivery thead>tr>td,.table-delivery thead>tr>th{padding:30px 30px 0}}.modal-dialog td{vertical-align:middle}.modal-dialog .close{margin:10px;position:relative;z-index:10}.modal-dialog .btn{margin-left:10px}@media screen and (min-width:768px){.modal-dialog{width:800px}}.navbar.navbar-secondary{z-index:1001}@media (min-width:992px){.navbar .list-subnav{background-color:#f49a17;border:1px solid #f49a17;border-radius:0;box-shadow:none}.navbar .list-subnav>li>a{color:#fff;padding:3px 12px}.navbar .list-subnav>.active>a,.navbar .list-subnav>.active>a:focus,.navbar .list-subnav>.active>a:hover,.navbar .list-subnav>li>a:focus,.navbar .list-subnav>li>a:hover{background-color:#fff;color:#f49a17}}.navbar .full-width .dropdown-menu .dropdown-content{padding:20px}.navbar .full-width .dropdown-menu .dropdown-content .dropdown-subheading{font-weight:700}.js .dropdown-toggle:after{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;-webkit-font-smoothing:antialiased;transform:translate(0,0);content:"\f078"}#account .panel-heading{padding:0}#account .panel-heading .panel-title>a{background:#f49a17;color:#fff;display:block;padding:12px 15px;text-decoration:none}#account .panel-heading .panel-title>a.collapsed{background:0 0;color:inherit}#account .panel-heading .panel-title>a.collapsed:focus,#account .panel-heading .panel-title>a.collapsed:hover{background:#f49a17;color:#fff}#account .panel-body{padding:25px}.table-cart tbody>tr>td,.table-cart tbody>tr>th,.table-cart tfoot>tr>td,.table-cart tfoot>tr>th,.table-cart thead>tr>td,.table-cart thead>tr>th,.table-order tbody>tr>td,.table-order tbody>tr>th,.table-order tfoot>tr>td,.table-order tfoot>tr>th,.table-order thead>tr>td,.table-order thead>tr>th{padding:14px;text-align:center;vertical-align:middle}.table-cart tbody>tr>td.product,.table-cart tbody>tr>th.product,.table-cart tfoot>tr>td.product,.table-cart tfoot>tr>th.product,.table-cart thead>tr>td.product,.table-cart thead>tr>th.product,.table-order tbody>tr>td.product,.table-order tbody>tr>th.product,.table-order tfoot>tr>td.product,.table-order tfoot>tr>th.product,.table-order thead>tr>td.product,.table-order thead>tr>th.product{text-align:left}.table-cart tbody>tr>td.image,.table-cart tbody>tr>th.image,.table-cart tfoot>tr>td.image,.table-cart tfoot>tr>th.image,.table-cart thead>tr>td.image,.table-cart thead>tr>th.image,.table-order tbody>tr>td.image,.table-order tbody>tr>th.image,.table-order tfoot>tr>td.image,.table-order tfoot>tr>th.image,.table-order thead>tr>td.image,.table-order thead>tr>th.image{border-right-color:transparent}.table-cart thead th,.table-order thead th{background-color:#f5f5f5;border-bottom-width:1px}.table-cart thead th.subprice,.table-order thead th.subprice{color:#f49a17}.table-cart tbody td.price,.table-cart tbody td.qty,.table-cart tbody td.subprice,.table-order tbody td.price,.table-order tbody td.qty,.table-order tbody td.subprice{padding:35px 10px}.table-cart tbody td.unitprice .price,.table-order tbody td.unitprice .price{color:#7a7a7a}.table-cart tbody td.unitprice .old-price .price,.table-order tbody td.unitprice .old-price .price{font-size:14px}.table-cart tbody td.unitprice .secondary-price .price,.table-order tbody td.unitprice .secondary-price .price{font-size:14px;font-weight:400}.table-cart tbody td.subprice .price,.table-order tbody td.subprice .price{color:#f49a17}.table-cart tfoot td,.table-cart tfoot th,.table-order tfoot td,.table-order tfoot th{background-color:#f5f5f5}.table-cart tfoot td.empty,.table-cart tfoot th.empty,.table-order tfoot td.empty,.table-order tfoot th.empty{background:0 0}.table-cart tfoot td.total,.table-cart tfoot th.total,.table-order tfoot td.total,.table-order tfoot th.total{background-color:#666;color:#fff}#categories.block-nav .block-content li .accordion-toggle:focus,#categories.block-nav .block-content li .accordion-toggle:hover,.block,.block .block-heading{background:0 0}.table-cart tfoot td.total .price,.table-cart tfoot th.total .price,.table-order tfoot td.total .price,.table-order tfoot th.total .price{color:inherit}.table-cart tfoot td.shipping .price,.table-order tfoot td.shipping .price{color:#7a7a7a;font-size:19px}.table-cart tfoot td.total .price,.table-order tfoot td.total .price{font-size:19px}.table-cart tfoot td.empty,.table-order tfoot td.empty{border-bottom-color:transparent;border-left-color:transparent}.table-cart tfoot th.total,.table-order tfoot th.total{font-weight:100;font-size:16px}.table-cart-total td.total .price,.table-order-total td.total .price{font-size:19px}.table-cart-total td.empty,.table-order-total td.empty{border-bottom-color:transparent;border-left-color:transparent}.alert-warning{clear:both;text-align:center}.alert-warning>a{color:inherit}.alert-warning:before{font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f071";display:block;font-size:2.2em}.block{border:1px solid transparent;border-radius:0}.block .block-heading{border-bottom:1px solid #dfdfdf;color:#888;margin:0 0 6px;padding-bottom:6px}.block .block-title{font-size:21px;margin-top:0;margin-bottom:0}.block .block-title>a{color:inherit}.block .block-content{font-size:12px;margin-bottom:20px}.block .block-content ul{padding-left:0;list-style:none}.block .block-content .block-subtitle{color:#f49a17;font-size:16px;font-weight:300;margin:0 0 6px}.block-default .block-content li{margin-left:15px;padding-top:6px}.block-default .block-content li a{color:#747474}.block-default .block-content li a:focus,.block-default .block-content li a:hover{color:#b66f09}.block-default .block-content li:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);color:#f49a17;margin-left:-15px;margin-right:5px}.block-links .block-content li a,.block-nav .block-content li a{color:#747474;display:block;font-size:12px;font-weight:400;position:relative}.block-links .block-content li+li a{border-top:1px solid #fff}.block-links .block-content li a{background-color:transparent;padding:10px 3px}.block-links .block-content li a:focus,.block-links .block-content li a:hover{text-decoration:none;background-color:#ebebeb}.block-links .block-content li a>p,.block-nav .block-heading{margin-bottom:0}.block-nav .block-content li a{background-color:transparent;padding:10px 60px 10px 3px}.block-nav .block-content li a:focus,.block-nav .block-content li a:hover{text-decoration:none;background-color:#f7f7f7}.block-nav .block-content li a.accordion-toggle:after{color:#f49a17;display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f068"}.block-nav .block-content li a.accordion-toggle.collapsed:after{content:"\f067"}.block-nav .block-content ul a{padding-left:15px}.block-nav .block-content ul ul a{padding-left:30px}.block-nav .block-content ul ul ul a{padding-left:45px}.block-thumbnail{margin-left:-15px;margin-right:-15px}.block-thumbnail.block-thumbnail-2 li{max-width:50%}.block-thumbnail.block-thumbnail-3 li{max-width:33.33333333%}.block-thumbnail.block-thumbnail-4 li{max-width:25%}.block-thumbnail .block-content li{float:left;padding-right:7.5px;padding-bottom:7.5px;position:relative;max-width:33.33333333%}.block-social .block-content li{display:inline-block;font-size:18px}.block-social .block-content li>a{color:#888}.block-social .block-content li>a:focus,.block-social .block-content li>a:hover{color:#b66f09}.block-newsletter .block-content form .btn-subscribe{padding:6px}.block-contact .block-content li{clear:both;margin-bottom:5px}.block-carousel{margin-bottom:30px}.block-carousel .carousel-indicators{bottom:auto}.block-carousel .block-carousel-control{float:right!important;float:right}.block-carousel .block-carousel-control .carousel-control{background:#efefef;color:#000;display:block;float:left;font-size:24px;margin-left:3px;position:relative;top:1px;left:auto;bottom:auto;width:28px;height:28px;transition:background-color .3s ease-in-out}.label-delivered,.label-new,.label-sale{padding:.2em .6em .3em;font-size:75%;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;color:#fff;font-weight:700}.btn .label-delivered,.btn .label-new,.btn .label-sale{top:-1px;position:relative}.block-carousel .block-carousel-control .carousel-control:focus,.block-carousel .block-carousel-control .carousel-control:hover{background-color:#000;color:#fff}.label-new{display:inline;background-color:#5bc0de}a.label-new:focus,a.label-new:hover{color:#fff;text-decoration:none;cursor:pointer}.label-new:empty{display:none}.label-new[href]:focus,.label-new[href]:hover{background-color:#31b0d5}.label-sale{display:inline;background-color:#d9534f}a.label-sale:focus,a.label-sale:hover{color:#fff;text-decoration:none;cursor:pointer}.label-sale:empty{display:none}.label-sale[href]:focus,.label-sale[href]:hover{background-color:#c9302c}.label-delivered{display:inline;background-color:#5cb85c}a.label-delivered:focus,a.label-delivered:hover{color:#fff;text-decoration:none;cursor:pointer}.grid .btn-grid,.list .btn-list{cursor:default;pointer-events:none;opacity:.65;filter:alpha(opacity=65);box-shadow:none}.label-delivered:empty{display:none}.label-delivered[href]:focus,.label-delivered[href]:hover{background-color:#449d44}.products-heading .btn-all{float:right}.products-heading h3{top:-14px!important;margin:0}.availability .in-stock{color:#5cb85c;font-style:italic;font-weight:700}.availability .in-stock .in{display:block}.availability .in-stock .out,.availability .out-of-stock .in{display:none}.availability .in-stock .quantity{font-style:italic}.availability .out-of-stock{color:#f0ad4e;font-style:italic;font-weight:700}.availability .out-of-stock .out{display:block}#brands .brands>ul .item>article .brand-image.overlay:after,.no-js .toolbar .limiter,.no-js .toolbar .sort-by{display:none}.option{background:#fff;border:1px solid transparent;border-radius:0}.option .option-heading{border-bottom:1px solid transparent;color:#7a7a7a;font-size:14px;font-weight:700}.option .option-content .checkbox label,.option .option-content .radio label{font-weight:100}#product #product-gallery{border-right:1px solid #f5f5f5;padding-right:20px}#product #product-details .name{font-size:21px;font-weight:400}#product #product-details .product-cart{background:#fff;border:1px solid transparent;border-radius:0}#product #product-tabs .nav-tabs{border-bottom:1px solid #ddd}#product #product-tabs .tab-content{border:1px solid #ddd;border-radius:0 0 3px 3px;padding:30px 15px;min-height:180px;height:auto!important;height:180px}.list .item+.item{border-top:1px solid #ededed}.list .item>article .product-price{text-align:right}.filter{background:#f5f5f5;border:1px solid #f5f5f5;border-radius:0}.filter .filter-heading{border-bottom:1px solid #dfdfdf;color:#888;font-size:19px;font-weight:100}.filter .filter-content .checkbox label,.filter .filter-content .radio label{font-weight:100}.toolbar{line-height:50px}.toolbar .pagination-container,.toolbar .sorter-container{overflow:hidden;height:50px}.toolbar .sorter-container{background-color:#fff;border-radius:0;padding:0;text-align:right}.overlay:after,.page-404 #main-label,.page-home #carousel .item,.toolbar .pagination-container{text-align:center}.toolbar .sorter-container .view-mode>.view-mode-btn{font-size:24px}.toolbar .sorter-container .view-mode>.view-mode-btn a{padding:0 6px;font-size:21px;text-decoration:none}#brands .brands>ul .item+.item{border-top:1px solid #ededed}.page-404 .main{padding:10px 0 100px}.page-404 #main-label{color:#f49a17;font-size:9em;font-weight:700}.page-404 #main-label span{color:#CCC;display:block;font-size:15px;font-weight:400}.page-home #carousel{margin-bottom:20px}@media screen and (min-width:768px){.page-home #carousel .carousel-control .fa-caret-left,.page-home #carousel .carousel-control .fa-caret-right{font-size:80px;margin-top:-40px;margin-left:-40px;width:80px;height:80px}}.page-header{border:none;font-weight:100;font-size:30px}.has-error .help-block:before,.navbar li>a.home:before{font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-moz-osx-font-smoothing:grayscale;display:inline-block}.form-control{box-shadow:none}.form-control:invalid:focus{border-color:#843534;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}#account .panel,.dropdown-menu,.modal-content,.popover{box-shadow:none}.has-error .help-block:before{font-size:inherit;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);margin-right:.3em}label{font-weight:600}.popover{border-radius:3px}.overlay{display:block;overflow:hidden;position:relative;font-size:40px}.overlay:after,.overlay:before{display:block;width:100%;height:100%;visibility:hidden;position:absolute;top:0;left:0;right:0;opacity:0;filter:alpha(opacity=0);transition:all .3s ease-in-out 50ms}.overlay:before{content:'';overflow:visible;background-color:#f49a17;background-color:rgba(244,154,23,.4)}#filters>h3:before,.overlay:after{content:"\f002"}.overlay:after{font-family:FontAwesome;color:#fff;-ms-transform:translate(0,0);transform:translate(0,0);line-height:0}.overlay:focus:after,.overlay:focus:before,.overlay:hover:after,.overlay:hover:before{visibility:visible;opacity:1;filter:alpha(opacity=100)}.overlay:focus:after,.overlay:hover:after{-ms-transform:translate(0,50%);transform:translate(0,50%)}.navbar li>a.home:before{-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f015";color:#c9c9c9;font-size:26px;line-height:0;margin-right:.5em;position:relative;top:3px}#filters>h3:before,#product-details .product-promo .sale-saving:before,.block.block-newsletter .block-content form .form-group:before,.navbar li.cart-not-empty>a.cart:before,.navbar li>a.login:before{font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-moz-osx-font-smoothing:grayscale}.navbar li>a.login:before{display:inline-block;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);font-size:19px;line-height:0;margin-right:.5em}.navbar li>a.cart:focus>.badge,.navbar li>a.cart:hover>.badge{background-color:#fff;color:#f49a17}.navbar li.cart-not-empty>a.cart{color:#fff}.navbar li.cart-not-empty>a.cart>.badge{color:#f49a17}.navbar li.cart-not-empty>a.cart:focus,.navbar li.cart-not-empty>a.cart:hover{background-color:#f49a17;color:#fff}.navbar li.cart-not-empty>a.cart:before{display:inline-block;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f07a";font-size:24px;line-height:0;margin-right:.4em}@media (min-width:992px){.navbar .navbar-nav .list-subnav>li+li{border-top:1px solid #e28a0b}.navbar .navbar-nav .list-subnav>li>a{font-weight:100}}.navbar .navbar-nav>li>a:focus:before,.navbar .navbar-nav>li>a:hover:before{color:#fff}.navbar .navbar-nav>.active>a:focus,.navbar .navbar-nav>.active>a:hover{background-color:#f49a17;color:#fff}.navbar .navbar-nav>.active:after{background:#f49a17;content:"";display:block;position:absolute;bottom:0;width:100%;height:2px;z-index:100}.navbar .navbar-nav>.open>a,.navbar .navbar-nav>.open>a:focus,.navbar .navbar-nav>.open>a:hover{background-color:#f49a17;color:#fff}.navbar .navbar-nav>.open>a:before,.navbar .navbar-nav>.open>a:focus:before,.navbar .navbar-nav>.open>a:hover:before{color:#fff}.container>.navbar-collapse{margin-left:-15px;margin-right:-15px}header .header .logo{float:none}.page-home #carousel .carousel-control{background-image:none}.products-heading h2{color:#7a7a7a;font-size:18px;font-weight:700}.products-heading .btn-all,.products-heading .btn-all:focus,.products-heading .btn-all:hover{color:#7a7a7a;font-size:16px;font-style:italic;font-weight:600}.products-heading .short-description{background-color:#f5f5f5;margin-bottom:10px;padding:10px}.product-options dl{font-size:.85em;margin-bottom:10px}.product-options dl>dt{text-align:left}.product-info .name,td.product .name{font-size:16px;font-weight:600}.product-info .name>a,td.product .name>a{color:#7a7a7a;text-decoration:none}.product-info .name>a:focus,.product-info .name>a:hover,td.product .name>a:focus,td.product .name>a:hover{color:#b66f09}.product-price .price-label{font:0/0 a;background-color:transparent;display:block}.product-price .regular-price .price,.product-price .special-price .price{display:block;font-size:14px;line-height:25px;font-style:normal;font-weight:400}.product-price .old-price .price{display:block;font-size:14px;line-height:25px;font-style:italic;font-weight:400;text-decoration:line-through}#products-new .products-grid .overlay:after{-ms-transform:translate(0,40%);transform:translate(0,40%)}#products-new .products-grid .item>article{border-bottom:4px solid #f49a17;border-bottom-right-radius:3px;border-bottom-left-radius:3px;overflow:hidden;position:relative}#products-new .products-grid .item>article .product-info{background-color:#f6af48;color:#fff;display:block;padding:6px 12px;position:relative;text-decoration:none!important}#products-new .products-grid .item>article .product-info:focus,#products-new .products-grid .item>article .product-info:hover{background-color:#f49a17}#products-new .products-grid .item>article .product-info .name{min-height:40px;height:auto!important;height:40px}#products-new .products-grid .item>article .product-info .name:after{content:'+';font-size:45px;line-height:0;font-style:normal;font-weight:100;position:absolute;top:16px;right:4px;-webkit-font-smoothing:antialiased}#products-new .products-grid .item>article .product-info .short-description{font-size:11px;line-height:1.1}#products-new .products-grid .item>article .product-price .price{color:#fff;font-size:22px;font-weight:700}@media (min-width:992px){#products-new .products-grid .item>article .product-image{padding-bottom:40px}#products-new .products-grid .item>article .product-info{transition:height .3s linear;position:absolute;bottom:0;width:100%;height:50px}#products-new .products-grid .item>article .product-info h3{margin-top:2px;padding-right:20px}#products-new .products-grid .item>article .product-info h3 span{height:2em;overflow:hidden;display:block}#products-new .products-grid .item>article .product-info:focus,#products-new .products-grid .item>article .product-info:hover{cursor:pointer;height:140px}}#products-upsell{margin-top:40px;position:relative}#products-upsell .products-heading{border-bottom:1px solid #e5e5e5;margin:20px 0}#products-upsell .products-heading h3{background:#fff;color:#f49a17;padding-right:15px;position:absolute;top:-24px}#products-offer .products-grid .item>article,#products-related .products-grid .item>article,#products-upsell .products-grid .item>article{border-radius:3px;transition:background-color .3s ease-in-out;padding:6px}#delivery-address.panel .panel-body,#delivery-method.panel .panel-body,#products-offer .products-grid .item>article .product-info,#products-related .products-grid .item>article .product-info,#products-upsell .products-grid .item>article .product-info{padding:0}#products-offer .products-grid .item>article .product-info .short-description,#products-related .products-grid .item>article .product-info .short-description,#products-upsell .products-grid .item>article .product-info .short-description{font-size:11px}@media (min-width:768px){#products-offer .products-grid .item:hover article,#products-related .products-grid .item:hover article,#products-upsell .products-grid .item:hover article{background-color:#f6f6f6}}#products-new .overlay:after,#products-offer .overlay:after,#products-upsell .overlay:after{content:'+';font-size:80px;font-weight:100;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#products-new .overlay:before{border-radius:3px 3px 0 0}#category-products .item>article .product-info .description{font-size:.83em;line-height:1.3}#category-products .item>article .product-price .price-label{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;display:block}#category-products .item>article .product-price .price-container{margin-bottom:10px}#category-products .item>article .product-price .price-container .price{margin-left:4px}#category-products .item>article .product-price .product-btn{min-height:26px}.grid #category-products .item{border-right:1px solid #e8e8e8;margin:0;padding:10px}.grid #category-products .item>article .product-info{padding:3px}.grid #category-products .item>article .product-info .name{margin:4px;height:2em;overflow:hidden}.grid #category-products .item>article .product-info .description{margin-left:4px}.list #category-products .item>article .product-price .price-container{margin-bottom:20px}.list #category-products .item>article .product-price .price-container .old-price,.list #category-products .item>article .product-price .price-container .regular-price,.list #category-products .item>article .product-price .price-container .special-price{display:block;width:100%}#product-details .product-info{border-bottom:1px solid #e5e5e5;margin-bottom:15px}#product-details .product-info .sku{color:#e5e5e5;display:block;font-size:14px;margin-top:-8px;margin-bottom:20px}#product-details .product-info .pse-name{color:#555;font-size:14px}#product-details .product-options .option{margin-bottom:10px}#product-details .product-cart{background-color:#f5f5f5!important;margin-bottom:20px;padding:10px!important}#product-details .product-promo{background-color:#f5f5f5;margin-bottom:15px;padding:10px}#product-details .product-promo .sale-label{font-weight:300;line-height:1.4;font-size:21px}#product-details .product-promo .sale-saving{color:#f49a17}#product-details .product-promo .sale-saving:before{display:inline-block;font-size:inherit;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f005"}#product-details .product-promo .sale-period{font-style:italic;font-size:90%}#product-thumbnails .carousel-control{width:17px!important}#product-thumbnails .carousel-control .fa{position:absolute;top:50%}#product-thumbnails .carousel-control.left{border-right:7px solid #ccc;color:#ccc;text-align:left}#product-thumbnails .carousel-control.left>.fa-caret-left{left:0;margin-left:0;margin-top:-15px}#product-thumbnails .carousel-control.left>.fa-caret-left:before{color:inherit}#product-thumbnails .carousel-control.right{border-left:7px solid #ccc;text-align:right}#product-thumbnails .carousel-control.right>.fa-caret-right{left:auto;right:0;margin-left:0;margin-top:-15px}@media (min-width:768px){#product #product-gallery{border-right:1px solid #eee;padding-right:20px}#product #product-details .group-qty .form-control{display:inline-block;margin-right:1em;margin-left:.4em;width:100px}}#product-gallery .product-image{margin-bottom:20px}#product-gallery .product-thumbnails li{width:20%}#filters{background:#f5f5f5}#filters>h3{background:#e5e5e5;box-shadow:inset 0 -4px 10px rgba(0,0,0,.125);margin:0 0 15px;padding:10px 15px;font-size:18px;font-weight:700}#filters>h3>span{display:block;font-size:.75em;font-weight:100;text-transform:lowercase}#filters>h3:before{display:inline-block;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);font-size:30px;float:left;margin-right:.5em}#filters .filter{margin-bottom:10px}.block.block-links .block-content ul>li+li a{border-top:none}.block.block-links .block-content ul>li+li:before{background:#fff;content:"";display:block;margin:0 auto;text-align:center;width:65%;height:2px}.block.block-newsletter .block-content form .form-group{position:relative}@media (min-width:1200px){.block.block-newsletter .block-content form .form-group{width:176px}}.block.block-newsletter .block-content form .form-group .form-control{background-color:#e6e6e6;font-size:12px;padding-left:35px;width:inherit;box-shadow:inset 1px 1px 1px rgba(0,0,0,.075)}.block.block-newsletter .block-content form .form-group .form-control::-moz-placeholder{color:#888;opacity:1}.block.block-newsletter .block-content form .form-group .form-control:-ms-input-placeholder{color:#888}.block.block-newsletter .block-content form .form-group .form-control::-webkit-input-placeholder{color:#888}.block.block-newsletter .block-content form .form-group .form-control:focus::-moz-placeholder{color:#c8c8c8;opacity:1}.block.block-newsletter .block-content form .form-group .form-control:focus:-ms-input-placeholder{color:#c8c8c8}.block.block-newsletter .block-content form .form-group .form-control:focus::-webkit-input-placeholder{color:#c8c8c8}.block.block-newsletter .block-content form .form-group:before{display:inline-block;-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f0e0";color:#8b8b8b;font-size:18px;position:absolute;top:8px;left:9px}.block.block-newsletter .block-content form .btn-subscribe{padding:6px}.block.block-social .block-content ul>li>a:hover.facebook{color:#3d5fa6}.block.block-social .block-content ul>li>a:hover.twitter{color:#53b1f0}.block.block-social .block-content ul>li>a:hover.rss{color:#fac200}.block.block-social .block-content ul>li>a:hover.instagram{color:#425E75}.block.block-social .block-content ul>li>a:hover.google-plus{color:#fac200}.block.block-social .block-content ul>li>a:hover.youtube{color:#e82a20}.block.block-contact .block-content ul>li{clear:both;margin-bottom:5px}.block.block-contact .block-content ul>li.contact-address:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f041";font-size:34px}.block.block-contact .block-content ul>li.contact-phone:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f10b";font-size:30px;margin-top:-8px;margin-left:3px}.block.block-contact .block-content ul>li.contact-email:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f0e0";font-size:17px;margin-left:2px}.block.block-contact .block-content ul>li:before{color:#f49a17;float:left;line-height:1;margin-right:.4em}.block.block-contact .block-content ul>li.contact-contact:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f1d8";font-size:17px}#categories.block-nav .block-content{border-top:1px solid #aeaeae}#categories.block-nav .block-content .amount{font-weight:700}#categories.block-nav .block-content li{border-top:1px solid #eee;position:relative}#categories.block-nav .block-content li .accordion-toggle{position:absolute;top:0;right:0;padding-right:10px;padding-left:5px}#categories.block-nav .block-content li .accordion-toggle:focus:after,#categories.block-nav .block-content li .accordion-toggle:hover:after{border-color:#b66f09;color:#b66f09}#categories.block-nav .block-content li .accordion-toggle:after{border:1px solid #f49a17;border-radius:10px;line-height:17px;text-align:center;width:19px;height:19px}.toolbar.toolbar-top{margin-top:-20px;border-bottom:1px solid #eee}.toolbar.toolbar-bottom .sorter-container,.toolbar.toolbar-top .pagination-container{display:none}.toolbar .amount{color:#f49a17;font-size:22px;font-weight:400}.toolbar .view-mode>.view-mode-btn a{background-color:#fff;border:0!important;color:#7a7a7a}.toolbar .view-mode>.view-mode-btn a:focus,.toolbar .view-mode>.view-mode-btn a:hover{background-color:#efefef;color:#474747}.toolbar .view-mode>.view-mode-btn a:active{color:#fff}.pagination>li>a,.pagination>li>span{box-shadow:2px 1px 1px rgba(0,0,0,.1);transition:all .2s ease-in-out;background-image:linear-gradient(to bottom,#fff 0,#f9f9f9 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff9f9f9', GradientType=0);color:#7a7a7a;font-weight:700}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{background:0 0}.pagination>li>a:focus:active,.pagination>li>a:hover:active,.pagination>li>span:focus:active,.pagination>li>span:hover:active{background-color:#f49a17;border-color:#f49a17;color:#fff}.pagination>li:first-child>a,.pagination>li:first-child>span{border-bottom-left-radius:30px;border-top-left-radius:30px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:30px;border-top-right-radius:30px}.pagination>.active>a,.pagination>.active>span{background-image:none}#form-forgotpassword .group-email label,#form-forgotpassword legend,#form-login .group-email label,#form-login legend{font-size:16px;font-weight:600}#form-forgotpassword .radio-account1,#form-login .radio-account1{margin-top:10px}#form-forgotpassword .forgot-password,#form-login .forgot-password{color:#7a7a7a;font-size:12px;font-style:italic}@media (min-width:768px){#form-forgotpassword .radio-account1,#form-login .radio-account1{float:left}#form-forgotpassword .group-password,#form-login .group-password{float:right;margin-top:5px;width:50%}}#delivery-method.panel .radio{display:block;margin-top:0}#delivery-method.panel .radio+.radio{border-top:1px solid #f5f5f5}#delivery-method.panel .price{text-align:right}#delivery-method.panel .image{text-align:center}#account .panel-title,#payment-success.panel .panel-heading{text-align:left}.js #payment-method .radio{padding-left:0;position:relative}.js #payment-method .radio .active:after{font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f077";color:#f49a17;display:block;font-size:1.5em;line-height:0;position:absolute;bottom:-8px;left:40%}#payment-success.panel .panel-heading .payment-method{font-size:inherit}#payment-success.panel .panel-body{padding:20px 40px}#payment-success.panel .panel-body>h3{color:#f49a17}#account .panel{border-color:#fff}#account .panel-title>a:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f078";float:left;width:20px}#account .panel-title>a.collapsed:before{content:"\f054"}#account-info .fn{font-size:16px;font-weight:600}#account-info .list-info .email:before,#account-info .list-info .mobile:before,#account-info .list-info .tel:before{color:#f49a17;line-height:1;margin-right:.4em;vertical-align:middle}#account-info .list-info .mobile:before,#account-info .list-info .tel:before{font:normal normal normal 14px/1 FontAwesome;display:inline-block;text-rendering:auto;-moz-osx-font-smoothing:grayscale}#account-info .list-info .mobile:before{-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f10b";font-size:30px}#account-info .list-info .tel:before{-webkit-font-smoothing:antialiased;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f095";font-size:22px}#account-info .list-info .email:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f0e0";font-size:18px}#account-info .group-btn a{color:#7a7a7a;margin-bottom:4px;padding:0}#account-info .group-btn a>i{color:#f49a17;font-size:20px;line-height:1;margin-right:.3em;vertical-align:middle}#account-info .group-btn a:focus,#account-info .group-btn a:hover{color:#b66f09}#account-address .panel-body{padding-left:0;padding-right:0;padding-top:10px}#account-address .table-address{border:1px solid #f5f5f5;margin-bottom:0}#account-orders .panel-body{padding-left:0;padding-right:0}#account-orders .table-orders tbody>tr>td,#account-orders .table-orders tbody>tr>th,#account-orders .table-orders thead>tr>td,#account-orders .table-orders thead>tr>th{padding:14px;text-align:center}#account-orders .table-orders thead>tr>th{background-color:#f5f5f5;border-bottom-width:1px}#account-orders .table-order-products tbody>tr>td,#account-orders .table-order-products tbody>tr>th,#account-orders .table-order-products thead>tr>td,#account-orders .table-order-products thead>tr>th{padding:5px;text-align:center}.table-cart-mini tbody>tr>td,.table-cart-mini tbody>tr>th,.table-cart-mini tfoot>tr>td,.table-cart-mini tfoot>tr>th,.table-cart-mini thead>tr>td,.table-cart-mini thead>tr>th{vertical-align:middle}#google-map{border:none;display:block;margin-bottom:20px;width:100%;height:350px;-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%)}#sale-details .sale-discount-information{background-color:#f5f5f5;margin-bottom:10px;padding:10px}header .row,header nav.navbar .container-fluid{background-color:#F29D39}#sale-details .sale-discount-information .sale-saving{font-size:120%;color:#f49a17}#sale-details .sale-discount-information .sale-saving:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-transform:translate(0,0);transform:translate(0,0);content:"\f005"}#sale-details .sale-discount-information .sale-period{font-style:italic;font-size:90%}#sale-details .sale-information{margin-bottom:30px}#sale-details .sale-information .chapo,#sale-details .sale-information .description{margin-bottom:10px}.rev_slider_wrapper{margin-bottom:15px!important}header a{color:#303C6E}header .header{margin-top:30px}header .header-custom{height:1%;min-width:100%;display:grid;grid-gap:.5rem;-ms-flex-align:center;align-items:center;justify-items:left;margin-bottom:0}@media screen and (min-width:992px){header .header-custom{grid-template-areas:"logo content" "footer footer"}}header .logo-custom{grid-area:logo;height:60px;width:350px;padding-left:15px}header .secondary-custom{grid-area:content;height:45px}@media screen and (max-width:992px){header .header-custom{grid-template-areas:"logo" "content" "footer"}header .secondary-custom{width:100%;height:auto;margin-bottom:0;display:grid}header .secondary-custom div.search-container{padding:0}header .secondary-custom>nav>div,header .secondary-custom>nav>ul{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:left;margin-right:40px}header .primary-custom{z-index:1}}header .primary-custom{grid-area:footer;width:100%}header nav.navbar{min-height:0;margin-bottom:0;border:none}@media screen and (min-width:992px){header .primary-custom{height:25px}header nav.navbar .container-fluid .navbar-collapse{padding-left:0}header nav.navbar #navbar-primary>ul>li.top-tab>a:hover,header nav.navbar .navbar-nav>.open>a,header nav.navbar .navbar-nav>.open>a:hover{border-top-left-radius:12px;border-top-right-radius:12px}}header nav.navbar li.dropdown,header nav.navbar li.top-tab{background-color:#303C6E}header nav.navbar li.dropdown>a,header nav.navbar li.top-tab>a{padding:5px 10px;color:#fff}@media screen and (max-width:992px){header nav.navbar .dropdown-custom{color:#fff!important;background-color:#305587!important}header nav.navbar .dropdown-custom:focus,header nav.navbar .dropdown-custom:hover{background-color:#F29D39!important}}header nav.navbar #navbar-primary>ul>li.top-tab>a:hover,header nav.navbar .navbar-nav>.open>a,header nav.navbar .navbar-nav>.open>a:hover{background-color:#305587}@media screen and (min-width:992px){header nav.navbar li{margin-right:10px}header nav.navbar li.dropdown,header nav.navbar li.top-tab{border-top-left-radius:12px;border-top-right-radius:12px}}@media screen and (min-width:480px){#barre-superieure{display:none}}@media screen and (min-width:480px) and (max-width:992px){div.secondary-custom>nav.nav-secondary{display:block;top:0}}.navbar li.cart-not-empty>a.cart:before,.navbar li>a.login:before,.navbar-secondary .dropdown>a:after{color:#303C6E}.badge,.navbar li.cart-not-empty>a.cart>.badge{background-color:#303C6E}.navbar li.cart-not-empty>a.cart{background-color:#303C6E!important}@media screen and (max-width:992px){.navbar-nav{margin:0}}.footer-container .footer-info{background-color:#F29D39;color:#303C6E;font-weight:700}.footer-container .footer-info a{color:#303C6E;font-weight:700} \ No newline at end of file diff --git a/templates/frontOffice/default2020/assets/dist/img/logo_en.png b/templates/frontOffice/default2020/assets/dist/img/logo_en.png index 01e40c26..884b18b7 100644 Binary files a/templates/frontOffice/default2020/assets/dist/img/logo_en.png and b/templates/frontOffice/default2020/assets/dist/img/logo_en.png differ diff --git a/templates/frontOffice/default2020/assets/dist/img/logo_fr.png b/templates/frontOffice/default2020/assets/dist/img/logo_fr.png index ec2c13a1..444c6901 100644 Binary files a/templates/frontOffice/default2020/assets/dist/img/logo_fr.png and b/templates/frontOffice/default2020/assets/dist/img/logo_fr.png differ diff --git a/templates/frontOffice/default2020/assets/src/css/custom.css b/templates/frontOffice/default2020/assets/src/css/custom.css index 8990529f..0bd73c19 100644 --- a/templates/frontOffice/default2020/assets/src/css/custom.css +++ b/templates/frontOffice/default2020/assets/src/css/custom.css @@ -4,4 +4,8 @@ div.container { .container { width: 95% +} + +.navbar li.cart-not-empty>a.cart:before { + color: white; } \ No newline at end of file diff --git a/templates/frontOffice/default2020/assets/src/css/thelia.css b/templates/frontOffice/default2020/assets/src/css/thelia.css index d34b4406..7632fb76 100644 --- a/templates/frontOffice/default2020/assets/src/css/thelia.css +++ b/templates/frontOffice/default2020/assets/src/css/thelia.css @@ -1595,14 +1595,6 @@ pre code { margin-left: -15px; margin-right: -15px; } - -/* TheCoreDev le 2/09/2020 */ -.header-custom.row { - margin-left: 0px; - margin-right: 0px; -} -/**************************/ - .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; @@ -11022,7 +11014,7 @@ td.product .name > a:focus, margin-bottom: 15px !important; } header a { - color: #303c6e; + color: #303C6E; } header .header { margin-top: 30px; @@ -11049,14 +11041,10 @@ header .header-custom { } header .logo-custom { grid-area: logo; - width: 346px; + height: 60px; + width: 350px; padding-left: 15px; } - -header .logo-custom img { - width: 100%; -} - header .secondary-custom { grid-area: content; height: 45px;