Outiref

Code source de l'URL : http://www.1000box.fr/page/calcul-box

<!DOCTYPE html>
<html lang="fr-FR">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
                <title> Estimez la taille de votre box | 1000 BOX </title>
                <meta name="description" content="Les centres de stockage 1000Box proposent des box sécurisés                pour vos biens que vous soyez professionnel ou particulier. Découvrez notre gamme." />
                <link rel="icon" href="/theme/box/assets/favicon.ico?05b67f8b69" />
                <link rel="stylesheet" href="/theme/box/css/style.css?0f09631fd7">
                <link rel="stylesheet" href="/theme/box/css/boxesss.css?d4fb127d3f">
                <!-- Google Tag Manager -->
                <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
                    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
                j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
                'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
            })(window,document,'script','dataLayer','GTM-KBPL5NZ');</script>
            <!-- End Google Tag Manager -->
            <!-- Global site tag (gtag.js) - Google Analytics -->
            <script async src="https://www.googletagmanager.com/gtag/js?id=UA-138238856-1"></script>
            <script>
                 window.dataLayer = window.dataLayer || [];
                 function gtag(){dataLayer.push(arguments);}
                 gtag('js', new Date());
                 gtag('config', 'UA-138238856-1');
            </script>
			  <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "LocalBusiness",
      "image": [
        "https://www.1000box.fr/thumbs/600x700c/2019-04/couloir-jerome.jpg",
        "https://www.1000box.fr/thumbs/600x700c/2019-04/couloir-extincteur.jpg",
        "https://www.1000box.fr/thumbs/600x700c/2019-01/img-2118.jpg",
        "https://www.1000box.fr/thumbs/600x700c/2018-08/istock-000012212052-large.jpg"

       ],
      "name": "paris ivry sur seine",
      "url": "https://www.1000box.fr/",
      "telephone": "01 46 71 98 28",    

      "address": {
  "@type": "PostalAddress",
  "streetAddress": "19 Avenue Pierre Semrad",
  "addressLocality": "Ivry-sur-Seine",
  "addressRegion": "Paris",
  "postalCode": "94200",
  "addressCountry": "France"

      },
      "geo": {
        "@type": "GeoCoordinates",
        "latitude": 48.8193813,
        "longitude": 2.3783167,
      },
"aggregateRating" : {
    "@type" : "AggregateRating",
    "ratingValue" : "5/5"
  },
  "review" : [ {
    "@type" : "Review",
    "reviewRating" : {
      "@type" : "Rating",
      "ratingValue" : "4/5"
    }
  }, {
    "@type" : "Review",
    "reviewRating" : {
      "@type" : "Rating",
      "ratingValue" : "5/5"
    }
  } ]

"openingHoursSpecification": [
  {
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Saturday",
    "opens": "09:00",
    "closes": "18:00"
  },
  {
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Sunday",
    "opens": "10:00",
    "closes": "17:00"
  }
{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "monday",
    "opens": "09:00",
    "closes": "20:00"
  }
{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Tuesday",
    "opens": "09:00",
    "closes": "20:00"
  }
{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Wednesday",
    "opens": "09:00",
    "closes": "20:00"
  }
{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Thursday",
    "opens": "09:00",
    "closes": "20:00"
  }
{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Friday",
    "opens": "09:00",
    "closes": "20:00"  }

          ]
        }
      ]
    }
    </script>
        	<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
        	<meta name="generator" content="Bolt">
        	<link rel="canonical" href="https://www.1000box.fr/page/calcul-box">
        </head>
        <body  class="has-ultra-light-grey-bg">
            <!-- Google Tag Manager (noscript) -->
            <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KBPL5NZ"
                height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
                <!-- End Google Tag Manager (noscript) -->

                                    <nav class="uk-navbar uk-navbar-container uk-hidden@l" data="mlkdskljqds" uk-navbar>
			<div class="uk-navbar-left">
				<a class="uk-navbar-toggle" href="#" uk-toggle="target: #menu-mobile">
					<span uk-navbar-toggle-icon></span>
				</a>
			</div>
			<div class="uk-navbar-center">
				<a href="/" class="uk-navbar-item uk-logo">
					<img src="/theme/box/assets/logo.svg?9843c404de"  height="75px" width="75px" alt="1000Box"/>
				</a>
			</div>
		</nav>
		<nav uk-sticky="" class="uk-navbar-container uk-visible@l" style="z-index: 9999">
			<div class="uk-container-fluid">
				<div class="uk-navbar">
					<div class="uk-navbar-left">
						<a href="/" class="uk-navbar-item uk-logo uk-margin-left-large">
							<img src="/theme/box/assets/logo.svg?9843c404de" height="76px" width="76px" alt="1000Box"/>
						</a>
						<ul class="uk-navbar-nav">
						  


    <li>
        <a href="/service/particuliers" target="">Services particuliers</a>
    </li>
    <li>
        <a href="/service/professionnels" target="">Services professionnels</a>
    </li>
    <li>
        <a href="/service/materiel" target="">Vente de matériel</a>
    </li>
    <li>
        <a href="https://blog.1000box.fr/" target="_blank">Blog</a>
    </li>
					
						  </ul>
					</div>
					<div class="uk-navbar-right">
						<ul class="uk-navbar-nav">
							<li>
								<a href="/page/centre-de-stockage"><span class="uk-margin-small-right" uk-icon="icon: location"></span> Centre de stockage</a>
							</li>
							<li class="uk-active">
							       								<a><span class="uk-margin-small-right" uk-icon="icon: receiver"></span> Service clients :  <span class="heading-font uk-margin-small-left"><strong>01 46 71 98 28 </strong> (8h - 20h)</span></a>
														</li>
						</ul>
					</div>
				</div>
			</div>
		</nav>
                    
<section style="box-sizing: border-box;" id="heroComponent">
	<div class="uk-container-large uk-align-center uk-margin-remove-bottom  uk-padding-remove-top  uk-padding-remove-bottom">
		<div uk-grid>
			<div class="uk-width-1-1@m uk-flex uk-flex-middle">
				<div class="uk-padding-large uk-margin-medium-bottom">
					<ul class="uk-breadcrumb">
						<li>
							<a href="/">Accueil</a>
						</li>
						<li>
							<a href="/">Estimation</a>
						</li>
						<li>Estimer la taille de son box de stockage à Paris</li>
					</ul>
					<div class="uk-visible@s uk-margin-large"></div>
					<h1 class="uk-text-lead">Estimer la taille de son box de stockage à Paris</h1>
					<p><p>Vous ignorez la surface dont vous avez besoin ?<br>
Faites l'inventaire de vos biens et obtenez une estimation !</p>

<p>Pour sauter cette étape, n'hésitez pas à faire une <a class="uk-link" href="/page/reserver-un-box">demande de réservation</a> !</p>
</p>
				</div>
			</div>
		</div>
	</div>
</section>

<section style="margin-top: -40px;" class="uk-margin-remove-bottom" id="calculComponent">
	<div class="uk-container-large uk-align-center  uk-padding uk-padding-remove-top">
		<div uk-grid>
			<div class="uk-width-3-5@m uk-visible@m">
				<div id="mb_inventory" class="uk-card uk-card-default uk-card-body" >
	<p>Sélectionnez les meubles de votre logement pièce par pièce pour calculer le volume de vos biens.</p>
    <hr>
	<div uk-sticky="media: 768;" class="inventory-form">
		<div uk-grid>
			<div  class="uk-width-1-2@m" >
				<div id="roomContainer" class="uk-form-controls" data-room='[{ "id": 1, "name": "Séjour" }, { "id": 3, "name": "Cuisine" }, { "id": 2, "name": "Chambre" }, { "id": 5, "name": "Chambre enfant" }, { "id": 4, "name": "Bureau" }, { "id": 6, "name": "Extérieur" }, { "id": 7, "name": "Divers"}, { "id": 8, "name": "Cartons"} ]' >
				</div>
			</div>
			<div class="uk-width-1-2@m">
				<div class="uk-form-controls uk-inline uk-width-1-1">
					<span class="uk-form-icon" uk-icon="icon: search"></span>
					<input class="uk-input" id="mbSearchInventory" type="text" placeholder="Rechercher un objet...">
				</div>
			</div>
		</div>
	</div>
	<div uk-grid class="uk-margin-large-top uk-grid-match" id="itemContainer">
		<div id="mbAddCustomItem" class="uk-width-1-2@s uk-width-1-3@m uk-width-1-4@l">
			<div class="inventory-box uk-text-center">
				<div class="uk-badge inventory-badge uk-hidden">0</div>
				<small>Objet sur mesure</small>
				<div class="inv-item-custom"></div>
				<a uk-toggle="target: #customObject" href="#mb_inventory"><button class="uk-button uk-button-primary uk-button-xsmall mb-btn-add uk-width-1-1 uk-margin-medium-top">+</button></a>
			</div>
		</div>
	</div>
</div>
<div id="customObject" class="uk-flex-top" uk-modal>
	<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical">
		<button class="uk-modal-close-default" type="button" uk-close></button>
		<h2 class="h3 uk-modal-title">Ajouter un objet sur mesure</h2>
		<div class="uk-margin">
			<label class="uk-form-label" for="">Nom de l'objet</label>
			<div class="uk-form-controls">
				<input id="customItemName" class="uk-input">
			</div>
		</div>
		<div uk-grid class="uk-grid-small uk-child-width-1-3@m">
			<div>
				<div class="uk-margin">
					<label class="uk-form-label" for="">Largeur en cm</label>
					<div class="uk-form-controls">
						<input id="customItemWidth" class="uk-input">
					</div>
				</div>
			</div>
			<div>
				<div class="uk-margin">
					<label class="uk-form-label" for="">Hauteur en cm</label>
					<div class="uk-form-controls">
						<input id="customItemHeight" class="uk-input">
					</div>
				</div>
			</div>
			<div>
				<div class="uk-margin">
					<label class="uk-form-label" for="">Profondeur en cm</label>
					<div class="uk-form-controls">
						<input id="customItemDepth" class="uk-input">
					</div>
				</div>
			</div>
		</div>
		<button id="addNewCustomItem" class="uk-button uk-button-primary uk-margin-medium-top uk-modal-close" ><span uk-icon="icon: plus-circle" class="uk-margin-small-right"></span> Ajouter cet objet</button>
	</div>
</div>

<style>

div[class^="inv-item-"] {
  background-image: url('/theme/box/assets/mbox_inventory_items.png?a1acf25e77');
  height: 128px;
  width: 128px; }

.inv-item-captains-bed {
  background-position: 0px 0px; }

.inv-item-collapsable-metal-bed {
  background-position: -128px 0px; }

.inv-item-murphy-bed {
  background-position: -256px 0px; }

.inv-item-trundle-bed {
  background-position: -384px 0px; }

.inv-item-footboard {
  background-position: -512px 0px; }

.inv-item-headboard {
  background-position: -640px 0px; }

.inv-item-box-mattress {
  background-position: -896px 0px; }

.inv-item-small-mattress {
  background-position: -1024px 0px; }

.inv-item-mattress {
  background-position: -1152px 0px; }

.inv-item-futon {
  background-position: -1280px 0px; }

.inv-item-large-ottoman {
  background-position: -1408px 0px; }

.inv-item-seater-sofa-2-seater {
  background-position: -1536px 0px; }

.inv-item-seater-sofa-4-seater {
  background-position: 0px -128px; }

.inv-item-seater-sofa-4-seater-sectional {
  background-position: -128px -128px; }

.inv-item-bean-bag-chair {
  background-position: -256px -128px; }

.inv-item-chaise-lounge {
  background-position: -384px -128px; }

.inv-item-rocking-chair {
  background-position: -512px -128px; }

.inv-item-overstuffed-chair {
  background-position: -640px -128px; }

.inv-item-papason-chair {
  background-position: -768px -128px; }

.inv-item-recliner-chair {
  background-position: -896px -128px; }

.inv-item-coffee-table {
  background-position: -1024px -128px; }

.inv-item-large-side-table {
  background-position: -1152px -128px; }

.inv-item-kitchen-table {
  background-position: -1280px -128px; }

.inv-item-night-table {
  background-position: -1408px -128px; }

.inv-item-changing-table {
  background-position: -1536px -128px; }

.inv-item-childrens-table {
  background-position: 0px -256px; }

.inv-item-outdoor-dining-table {
  background-position: -256px -256px; }

.inv-item-dining-table {
  background-position: -512px -256px; }

.inv-item-large-end-table {
  background-position: -640px -256px; }

.inv-item-outdoor-end-table {
  background-position: -768px -256px; }

.inv-item-tv-flat-over-55 {
  background-position: -896px -256px; }

.inv-item-large-tv-stand {
  background-position: -1024px -256px; }

.inv-item-large-entertainment-center {
  background-position: -1152px -256px; }

.inv-item-audio-video-component {
  background-position: -1280px -256px; }

.inv-item-floor-speaker {
  background-position: -1408px -256px; }

.inv-item-floor-lamp {
  background-position: -1536px -256px; }

.inv-item-table-lamp {
  background-position: 0px -384px; }

.inv-item-large-bookcase {
  background-position: -128px -384px; }

.inv-item-baby-grand-piano {
  background-position: -256px -384px; }

.inv-item-console-piano {
  background-position: -384px -384px; }

.inv-item-grand-piano {
  background-position: -512px -384px; }

.inv-item-piano-bench {
  background-position: -640px -384px; }

.inv-item-upright-piano {
  background-position: -768px -384px; }

.inv-item-spinet-piano {
  background-position: -896px -384px; }

.inv-item-small-mirror {
  background-position: -1024px -384px; }

.inv-item-large-mirror {
  background-position: -1152px -384px; }

.inv-item-picture-with-frame {
  background-position: -1280px -384px; }

.inv-item-painting-with-frame {
  background-position: -1408px -384px; }

.inv-item-picture-crate {
  background-position: -1536px -384px; }

.inv-item-cd-rack {
  background-position: 0px -512px; }

.inv-item-fan {
  background-position: -128px -512px; }

.inv-item-standing-fan {
  background-position: -256px -512px; }

.inv-item-fireplace-equipment {
  background-position: -384px -512px; }

.inv-item-large-rug {
  background-position: -512px -512px; }

.inv-item-small-armoire {
  background-position: -640px -512px; }

.inv-item-armoire {
  background-position: -768px -512px; }

.inv-item-small-dresser {
  background-position: -896px -512px; }

.inv-item-dresser {
  background-position: -1024px -512px; }

.inv-item-vanity {
  background-position: -1152px -512px; }

.inv-item-wardrobe-closet {
  background-position: -1280px -512px; }

.inv-item-clothes-rack {
  background-position: -1408px -512px; }

.inv-item-garbage-pail {
  background-position: -1536px -512px; }

.inv-item-small-garbage-can {
  background-position: 0px -640px; }

.inv-item-garbage-can {
  background-position: -128px -640px; }

.inv-item-toy-bin {
  background-position: -256px -640px; }

.inv-item-hamper {
  background-position: -384px -640px; }

.inv-item-shoe-rack {
  background-position: -512px -640px; }

.inv-item-suitcase {
  background-position: -640px -640px; }

.inv-item-buffet {
  background-position: -768px -640px; }

.inv-item-console {
  background-position: -896px -640px; }

.inv-item-china-cabinet {
  background-position: -1024px -640px; }

.inv-item-large-chandelier {
  background-position: -1152px -640px; }

.inv-item-small-stool {
  background-position: -1280px -640px; }

.inv-item-high-chair {
  background-position: -1408px -640px; }

.inv-item-kitchen-chair {
  background-position: -1536px -640px; }

.inv-item-coffee-maker {
  background-position: 0px -768px; }

.inv-item-dishwasher {
  background-position: -128px -768px; }

.inv-item-food-processor {
  background-position: -256px -768px; }

.inv-item-juicer {
  background-position: -384px -768px; }

.inv-item-microwave {
  background-position: -512px -768px; }

.inv-item-oven {
  background-position: -640px -768px; }

.inv-item-small-refrigerator {
  background-position: -768px -768px; }

.inv-item-refrigerator {
  background-position: -896px -768px; }

.inv-item-large-refrigerator {
  background-position: -1024px -768px; }

.inv-item-wine-refrigerator {
  background-position: -1152px -768px; }

.inv-item-bakers-rack {
  background-position: -1280px -768px; }

.inv-item-butchers-block {
  background-position: -1408px -768px; }

.inv-item-water-cooler {
  background-position: -1536px -768px; }

.inv-item-wine-rack {
  background-position: 0px -896px; }

.inv-item-bassinet {
  background-position: -128px -896px; }

.inv-item-crib {
  background-position: -256px -896px; }

.inv-item-childrens-bed {
  background-position: -384px -896px; }

.inv-item-childrens-chair {
  background-position: -512px -896px; }

.inv-item-dollhouse {
  background-position: -640px -896px; }

.inv-item-play-set {
  background-position: -768px -896px; }

.inv-item-play-pen {
  background-position: -896px -896px; }

.inv-item-toy-car {
  background-position: -1024px -896px; }

.inv-item-car-seat {
  background-position: -1152px -896px; }

.inv-item-stroller {
  background-position: -1280px -896px; }

.inv-item-small-desk {
  background-position: -1536px -896px; }

.inv-item-office-desk-with-return {
  background-position: 0px -1024px; }

.inv-item-executive-chair {
  background-position: -128px -1024px; }

.inv-item-computer {
  background-position: -256px -1024px; }

.inv-item-laptop {
  background-position: -384px -1024px; }

.inv-item-monitor {
  background-position: -512px -1024px; }

.inv-item-fax-machine {
  background-position: -640px -1024px; }

.inv-item-paper-shredder {
  background-position: -768px -1024px; }

.inv-item-large-printer {
  background-position: -896px -1024px; }

.inv-item-scanner {
  background-position: -1024px -1024px; }

.inv-item-drawer-vertical-deep {
  background-position: -1152px -1024px; }

.inv-item-drawer-vertical-deep-4-drawers {
  background-position: -1280px -1024px; }

.inv-item-drawer-lateral {
  background-position: -1408px -1024px; }

.inv-item-drawer-lateral-4-drawers {
  background-position: -1536px -1024px; }

.inv-item-outdoor-chair {
  background-position: 0px -1152px; }

.inv-item-outdoor-lounge-chair {
  background-position: -128px -1152px; }

.inv-item-outdoor-sofa-2-seater {
  background-position: -256px -1152px; }

.inv-item-outdoor-sofa-3-seater {
  background-position: -384px -1152px; }

.inv-item-small-plant {
  background-position: -512px -1152px; }

.inv-item-plant {
  background-position: -640px -1152px; }

.inv-item-grill {
  background-position: -768px -1152px; }

.inv-item-large-grill {
  background-position: -896px -1152px; }

.inv-item-drums {
  background-position: -1024px -1152px; }

.inv-item-guitar {
  background-position: -1152px -1152px; }

.inv-item-amplifier {
  background-position: -1280px -1152px; }

.inv-item-saxophone {
  background-position: -1408px -1152px; }

.inv-item-bench {
  background-position: -1536px -1152px; }

.inv-item-folding-chair {
  background-position: 0px -1280px; }

.inv-item-bicycle {
  background-position: -128px -1280px; }

.inv-item-childrens-bicycle {
  background-position: -256px -1280px; }

.inv-item-golf-bag {
  background-position: -384px -1280px; }

.inv-item-ski {
  background-position: -512px -1280px; }

.inv-item-snowboard {
  background-position: -640px -1280px; }

.inv-item-air-conditioner {
  background-position: -768px -1280px; }

.inv-item-air-purifier {
  background-position: -896px -1280px; }

.inv-item-dryer {
  background-position: -1024px -1280px; }

.inv-item-iron {
  background-position: -1152px -1280px; }

.inv-item-ironing-board {
  background-position: -1280px -1280px; }

.inv-item-sewing-machine {
  background-position: -1408px -1280px; }

.inv-item-space-heater {
  background-position: -1536px -1280px; }

.inv-item-vacuum-cleaner {
  background-position: 0px -1408px; }

.inv-item-washing-machine {
  background-position: -128px -1408px; }

.inv-item-babyfoot {
  background-position: -256px -1408px; }

.inv-item-pinball {
  background-position: -384px -1408px; }

.inv-item-ping-pong-table {
  background-position: -512px -1408px; }

.inv-item-pool-table {
  background-position: -640px -1408px; }

.inv-item-basket {
  background-position: -768px -1408px; }

.inv-item-bike-rack {
  background-position: -896px -1408px; }

.inv-item-cat-litter-box {
  background-position: -1024px -1408px; }

.inv-item-small-cat-tree {
  background-position: -1152px -1408px; }

.inv-item-cat-tree {
  background-position: -1280px -1408px; }

.inv-item-coat-rack {
  background-position: -1408px -1408px; }

.inv-item-easel {
  background-position: -1536px -1408px; }

.inv-item-faux-fireplace {
  background-position: 0px -1536px; }

.inv-item-folding-screen {
  background-position: -128px -1536px; }

.inv-item-ladder {
  background-position: -256px -1536px; }

.inv-item-large-ladder {
  background-position: -384px -1536px; }

.inv-item-lawnmower {
  background-position: -512px -1536px; }

.inv-item-magazine-rack {
  background-position: -640px -1536px; }

.inv-item-mannequin {
  background-position: -768px -1536px; }

.inv-item-safe {
  background-position: -896px -1536px; }

.inv-item-shopping-cart {
  background-position: -1024px -1536px; }

.inv-item-shovel {
  background-position: -1152px -1536px; }

.inv-item-snow-blower {
  background-position: -1280px -1536px; }

.inv-item-toolbox {
  background-position: -1408px -1536px; }

.inv-item-tool-chest {
  background-position: -1536px -1536px; }

.inv-item-treadmill {
  background-position: 0px -1664px; }

.inv-item-large-sculpture {
  background-position: -128px -1664px; }

.inv-item-china-box {
  background-position: -256px -1664px; }

.inv-item-book-box {
  background-position: -384px -1664px; }

.inv-item-wardrobe-box {
  background-position: -512px -1664px; }

.inv-item-indoor-bike {
  background-position: -640px -1664px; }

.inv-item-indoor-elliptic-bike {
  background-position: -768px -1664px; }

.inv-item-outdoor-glass-table {
  background-position: -896px -1664px; }

.inv-item-trunk-2 {
  background-position: -1024px -1664px; }

.inv-item-high-chair-2 {
  background-position: -1152px -1664px; }

.inv-item-high-table {
  background-position: -1280px -1664px; }

.inv-item-custom {
  background-position: -1408px -1664px; }

.inv-item-letter-file-box {
  background-position: -1536px -1664px; }
.inventory-box .inventory-badge {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 20;
    margin-left: auto;
    margin-right: auto;
    min-width: 30px;
    text-align: center;
    max-width: 38px;
    bottom: 26px;
    color:#1A2844;
    background-color: #F7F9FC;}
	.inventory-box {
    max-width: 128px;
    margin: 0 auto;
        margin-bottom: 0px;
    position: relative;
    min-height: 205px;
}
</style>
			</div>
			<div class="uk-width-2-5@m">
				<div class="uk-card uk-card-default uk-card-body uk-padding-medium" uk-sticky="offset: 142; bottom: true">
					<h2>Estimation</h2>
					<hr>
					<div class="uk-visible@m">
					<p>Vos objets : <span id="sidebarVolume">0 </span> m&sup3;</p>
					<div id="sidebarInventoryContainer" class="uk-margin-bottom">
						<div id="mbItemListContainer"></div>
					</div>
					<p>Nous vous conseillons un box d'au moins :</p>
					<h3 class="uk-h1 uk-margin-remove-top"><span id="sidebarSpace">0 </span> m²</h3>
					</div>
					<p>Obtenez nos tarifs simplement en cliquant sur continuer</p>
					<a id="paramSpace" class="uk-button uk-button-secondary uk-width-1-1" href="/page/reserver-un-box?s=">Continuer</a>
				</div>
			</div>
		</div>
		<hr>
	</div>
</section>

<script>
var hasEventListeners	=	!!window.addEventListener;
var document			=	window.document;
var mbox = {};

function Item(obj)
{
	this.id = 0;
	this.idPrefix = 'mbItem_';
	this.classDomDisplay = 'inventory-badge';
	this.css_class = '';
	this.name = '';
	this.cleanedName = '';
	this.volume = 0;
	this.number = 0;
	this.type = 0;
	this.lastSave = 0;
	this.rooms = '';
	this.boxes = '';
	this.boxesAdded = false;
	this.domMainContainer = undefined;
	this.domDisplayNumber = undefined;
	this.isCustom = false;
	this.isDeleted = false;
	
	this.add = function(nbr)
	{
		//console.log(this);
		nbr = nbr || 1;
		this.number += nbr;
		this.domDisplayNumber.innerHTML = Math.ceil(this.number);
		if (this.number <= 0)
		{
			this.number = 0; // Avoid negative value
			if (this.isCustom == true)
			{
				this.domMainContainer.remove();
				this.domDisplayNumber.remove();
				this.isDeleted = true;
				return ;
			}
			mbox.addClass(this.domDisplayNumber, "uk-hidden");
		}
		else
		{
			mbox.removeClass(this.domDisplayNumber, "uk-hidden");
		}
	}

	this.sub = function()
	{
		if (this.number <= 0)
		{
			this.number = 0;
			return ;
		}
		this.number -= 1;
		if (this.number <= 0)
		{
			this.number = 0;
			if (this.isCustom == true)
			{
				this.domMainContainer.remove();
				this.domDisplayNumber.remove();
				this.isDeleted = true;
				return ;
			}
			this.number = 0; // Avoid negative value
			mbox.addClass(this.domDisplayNumber, "uk-hidden");
		}
		this.domDisplayNumber.innerHTML = parseInt(this.number);
	}
	this.remove = function()
	{
		if (this.number > 0)
		{
			if (this.domDisplayNumber) // can be null for volume
			{
				mbox.addClass(this.domDisplayNumber, "uk-hidden");
			}
			this.number = 0;
			if (this.isCustom == true)
			{
				this.domMainContainer.remove();
				this.domDisplayNumber.remove();
				this.isDeleted = true;
				return ;
			}
		}
	}
	
	this.getVolume = function() {
		return (this.volume * Math.ceil(this.number) / 1000000)
	}
	
	this.createHTML = function(idx)
	{
		//var html = '<div id="'+this.idPrefix+this.id+'" class="pure-u-1-2 pure-u-sm-1-3 pure-u-md-1-3 pure-u-lg-6-24 pure-u-xl-6-24 uk-hidden"><div class="inventory-box"><span class="badge inventory-badge uk-hidden"></span><div class="'+this.css_class+'"><div class="pure-g"><div class="pure-u-1 ta-c inventory-item-title">'+this.name+'</div><div class="pure-button-group pure-u-1 plus-minus" role="group" aria-label="..."><button class="button-xsmall pure-button br-n pure-u-1-2 mb-btn-sub" data-idx="'+idx+'"><i class="material-icons md-13">remove</i></button><button class="button-xsmall pure-button br-n pure-u-1-2 mb-btn-add" data-idx="'+idx+'"><i class="material-icons md-13">add</i></button></div></div></div></div></div>';
		var html = '<div id="'+this.idPrefix+this.id+'" class="uk-width-1-2@s uk-width-1-3@m uk-width-1-4@l">';
		html += '<div class="inventory-box uk-text-center">';
		html += '<div class="uk-badge inventory-badge uk-hidden">0</div>';
		html += '<small>'+this.name+'</small>';
		html += '<div class="'+this.css_class+'"></div>';
		html += '<div class="uk-button-group">';
		html += '<button data-idx="'+idx+'" class="uk-button uk-button-default uk-button-xsmall mb-btn-sub">-</button>';
		html += '<button data-idx="'+idx+'" class="uk-button uk-button-default uk-button-xsmall mb-btn-add">+</button>';
		html += '</div></div></div>';
		return (html);
	}
	
	this.isInRoom = function(idRoom)
	{
		if (this.rooms.indexOf(idRoom) != -1)
		{
			return (true)
		}
		return (false);
	}
	
	this.initDom = function()
	{
		this.domMainContainer = document.getElementById(this.idPrefix+this.id);
		if (this.domMainContainer)
		{
			this.domDisplayNumber = this.domMainContainer.querySelector('.'+this.classDomDisplay);
		}
	}
	
	this.showItem = function()
	{
		if (this.isDeleted == true)
		{
			return ;
		}
		if (!this.domMainContainer)
		{
			this.initDom();
		}
		mbox.removeClass(this.domMainContainer, 'uk-hidden');
	}
	
	this.hideItem =  function()
	{
		if (this.isDeleted == true)
		{
			return ;
		}
		if (!this.domMainContainer)
		{
			this.initDom();
		}
		mbox.addClass(this.domMainContainer, 'uk-hidden');
	}
	
	for (var prop in obj) 
	{
		if (this.hasOwnProperty(prop)) 
		{
			this[prop] = obj[prop];
		}
	}
	this.cleanedName = mbox.removeDiacritics(this.name).toLowerCase();
	this.cleanedName = mbox.trim(this.cleanedName);
	if (this.boxes.length > 0)
	{
		this.boxes = JSON.parse(this.boxes);
	}
}

mbox.inventoryItemJson = [{"id":"20","name":"Matelas (Simple)","css_class":"inv-item-small-mattress","volume":"450000","boxes":"","type":"0","rooms":["2"]},{"id":"22","name":"Matelas (double)","css_class":"inv-item-mattress","volume":"800000","boxes":"","type":"0","rooms":["2"]},{"id":"16","name":"Sommier (Simple ou Double)","css_class":"inv-item-box-mattress","volume":"1000000","boxes":"","type":"0","rooms":["2"]},{"id":"18","name":"Sommier (Queen ou King)","css_class":"inv-item-box-mattress","volume":"1230000","boxes":"","type":"0","rooms":["2"]},{"id":"14","name":"T\u00eate de lit","css_class":"inv-item-headboard","volume":"226534","boxes":"","type":"0","rooms":["2"]},{"id":"13","name":"Pied de lit","css_class":"inv-item-footboard","volume":"226534","boxes":"","type":"0","rooms":["2"]},{"id":"7","name":"Cadre de lit","css_class":"inv-item-captains-bed","volume":"849505","boxes":"","type":"0","rooms":["2"]},{"id":"9","name":"Lit escamotable","css_class":"inv-item-murphy-bed","volume":"3398022","boxes":"{\"311\": 2}","type":"0","rooms":["2"]},{"id":"10","name":"Lit gigogne","css_class":"inv-item-trundle-bed","volume":"1415842","boxes":"{\"311\": 2}","type":"0","rooms":["2"]},{"id":"28","name":"Futon","css_class":"inv-item-futon","volume":"1152000","boxes":"{\"311\": 0.5}","type":"0","rooms":["2","1"]},{"id":"8","name":"Lit pliant","css_class":"inv-item-collapsable-metal-bed","volume":"226534","boxes":"{\"311\": 2}","type":"0","rooms":["2"]},{"id":"188","name":"Berceau","css_class":"inv-item-bassinet","volume":"283168","boxes":"","type":"0","rooms":["5"]},{"id":"189","name":"Lit b\u00e9b\u00e9","css_class":"inv-item-crib","volume":"787500","boxes":"{\"311\": 1}","type":"0","rooms":["5"]},{"id":"191","name":"Lit enfant","css_class":"inv-item-childrens-bed","volume":"1134000","boxes":"{\"311\": 1}","type":"0","rooms":["2","5"]},{"id":"33","name":"Canap\u00e9 2 places","css_class":"inv-item-seater-sofa-2-seater","volume":"1012500","boxes":"{\"311\": 1.5}","type":"0","rooms":["1"]},{"id":"34","name":"Canap\u00e9 3 ou 4 places","css_class":"inv-item-seater-sofa-4-seater","volume":"2009250","boxes":"{\"311\": 2}","type":"0","rooms":["1"]},{"id":"35","name":"Canap\u00e9 4 places sectionnel","css_class":"inv-item-seater-sofa-4-seater-sectional","volume":"2223000","boxes":"{\"311\": 2}","type":"0","rooms":["1"]},{"id":"229","name":"Canap\u00e9 d'ext\u00e9rieur 2 places","css_class":"inv-item-outdoor-sofa-2-seater","volume":"991089","boxes":"{\"311\": 1}","type":"0","rooms":["6"]},{"id":"230","name":"Canap\u00e9 d'ext\u00e9rieur 3 places","css_class":"inv-item-outdoor-sofa-3-seater","volume":"1699011","boxes":"{\"311\": 1}","type":"0","rooms":["6"]},{"id":"86","name":"Gu\u00e9ridon ext\u00e9rieur","css_class":"inv-item-outdoor-end-table","volume":"141500","boxes":"","type":"0","rooms":["6"]},{"id":"44","name":"Fauteuil","css_class":"inv-item-overstuffed-chair","volume":"849505","boxes":"","type":"0","rooms":["1"]},{"id":"46","name":"Fauteuil inclinable","css_class":"inv-item-recliner-chair","volume":"707921","boxes":"{\"311\": 0.4}","type":"0","rooms":["1"]},{"id":"32","name":"Repose pied","css_class":"inv-item-large-ottoman","volume":"1419942","boxes":"","type":"0","rooms":["1"]},{"id":"45","name":"Fauteuil Papasan","css_class":"inv-item-papason-chair","volume":"707921","boxes":"{\"311\": 0.2}","type":"0","rooms":["1"]},{"id":"246","name":"Chaise pliante","css_class":"inv-item-folding-chair","volume":"56633","boxes":"","type":"0","rooms":["1"]},{"id":"38","name":"Pouf","css_class":"inv-item-bean-bag-chair","volume":"198217","boxes":"","type":"0","rooms":["1","2"]},{"id":"321","name":"Chaise haute","css_class":"inv-item-high-chair-2","volume":"147000","boxes":"","type":"0","rooms":["3","1"]},{"id":"170","name":"Chaise","css_class":"inv-item-kitchen-chair","volume":"141584","boxes":"","type":"0","rooms":["2","1","3"]},{"id":"228","name":"Chaise longue ext\u00e9rieure","css_class":"inv-item-outdoor-lounge-chair","volume":"424752","boxes":"{\"311\": 0.3}","type":"0","rooms":["6"]},{"id":"40","name":"Chaise \u00e0 bascule","css_class":"inv-item-rocking-chair","volume":"566337","boxes":"{\"311\": 0.3}","type":"0","rooms":["1"]},{"id":"227","name":"Chaise ext\u00e9rieure","css_class":"inv-item-outdoor-chair","volume":"283168","boxes":"{\"311\": 0.3}","type":"0","rooms":["6"]},{"id":"39","name":"Chaise longue de salon","css_class":"inv-item-chaise-lounge","volume":"849505","boxes":"{\"311\": 0.3}","type":"0","rooms":["1"]},{"id":"205","name":"Chaise de bureau","css_class":"inv-item-executive-chair","volume":"566337","boxes":"","type":"0","rooms":["4"]},{"id":"245","name":"Banc","css_class":"inv-item-bench","volume":"424752","boxes":"","type":"0","rooms":["6","1"]},{"id":"167","name":"Tabouret","css_class":"inv-item-small-stool","volume":"56633","boxes":"","type":"0","rooms":["2","1"]},{"id":"169","name":"Chaise haute enfant","css_class":"inv-item-high-chair","volume":"226534","boxes":"","type":"0","rooms":["3"]},{"id":"192","name":"Chaise enfant","css_class":"inv-item-childrens-chair","volume":"113267","boxes":"","type":"0","rooms":["5"]},{"id":"49","name":"Table basse","css_class":"inv-item-coffee-table","volume":"424752","boxes":"{\"311\": 1}","type":"0","rooms":["1"]},{"id":"54","name":"Table d'appoint lounge","css_class":"inv-item-large-side-table","volume":"366337","boxes":"{\"311\": 0.5}","type":"0","rooms":["1"]},{"id":"83","name":"Gu\u00e9ridon","css_class":"inv-item-large-end-table","volume":"141500","boxes":"{\"311\": 0.5}","type":"0","rooms":["1"]},{"id":"155","name":"Console","css_class":"inv-item-console","volume":"424752","boxes":"{\"311\": 0.5}","type":"0","rooms":["1"]},{"id":"79","name":"Table (2-4 personnes)","css_class":"inv-item-dining-table","volume":"424752","boxes":"{\"311\": 1}","type":"0","rooms":["1"]},{"id":"80","name":"Table (6-10 personnes)","css_class":"inv-item-dining-table","volume":"566337","boxes":"{\"311\": 1}","type":"0","rooms":["1"]},{"id":"319","name":"Table en verre","css_class":"inv-item-outdoor-glass-table","volume":"1152000","boxes":"{\"311\": 1}","type":"0","rooms":["1"]},{"id":"322","name":"Table haute","css_class":"inv-item-high-table","volume":"648000","boxes":"{\"311\": 0.5}","type":"0","rooms":["1"]},{"id":"62","name":"Table de cuisine","css_class":"inv-item-kitchen-table","volume":"566337","boxes":"{\"311\": 1}","type":"0","rooms":["3"]},{"id":"184","name":"\u00eelot de cuisine","css_class":"inv-item-butchers-block","volume":"424752","boxes":"{\"311\": 3}","type":"0","rooms":["3"]},{"id":"63","name":"Table de nuit","css_class":"inv-item-night-table","volume":"141584","boxes":"{\"311\": 1}","type":"0","rooms":["2"]},{"id":"65","name":"Table \u00e0 langer","css_class":"inv-item-changing-table","volume":"424752","boxes":"{\"311\": 0.5}","type":"0","rooms":["5"]},{"id":"66","name":"Table enfant","css_class":"inv-item-childrens-table","volume":"141584","boxes":"{\"311\": 0.3}","type":"0","rooms":["5"]},{"id":"72","name":"Table \u00e0 manger ext\u00e9rieure (4-6 Personnes)","css_class":"inv-item-outdoor-dining-table","volume":"1132674","boxes":"{\"311\": 1}","type":"0","rooms":["6"]},{"id":"73","name":"Table \u00e0 manger ext\u00e9rieure (10-12 Personnes)","css_class":"inv-item-outdoor-dining-table","volume":"1699011","boxes":"{\"311\": 1}","type":"0","rooms":["6"]},{"id":"201","name":"Bureau","css_class":"inv-item-small-desk","volume":"566337","boxes":"{\"311\": 2}","type":"0","rooms":["4"]},{"id":"143","name":"Coiffeuse","css_class":"inv-item-vanity","volume":"424752","boxes":"{\"311\": 1}","type":"0","rooms":["2","1"]},{"id":"202","name":"Bureau (Grand)","css_class":"inv-item-small-desk","volume":"707921","boxes":"{\"311\": 3.5}","type":"0","rooms":["4"]},{"id":"203","name":"Bureau avec retour","css_class":"inv-item-office-desk-with-return","volume":"1557426","boxes":"{\"311\": 4}","type":"0","rooms":["4"]},{"id":"111","name":"Lampe de table","css_class":"inv-item-table-lamp","volume":"141580","boxes":"","type":"0","rooms":["4","1","5","2"]},{"id":"108","name":"Lampe sur pied","css_class":"inv-item-floor-lamp","volume":"424750","boxes":"","type":"0","rooms":["1","5","2","4"]},{"id":"166","name":"Lustre","css_class":"inv-item-large-chandelier","volume":"424748","boxes":"","type":"0","rooms":["1"]},{"id":"102","name":"\u00c9l\u00e9ment st\u00e9r\u00e9o ou vid\u00e9o","css_class":"inv-item-audio-video-component","volume":"56633","boxes":"","type":"0","rooms":["1"]},{"id":"93","name":"T\u00e9l\u00e9vision \/ TV","css_class":"inv-item-tv-flat-over-55","volume":"707921","boxes":"","type":"0","rooms":["2","1"]},{"id":"98","name":"Meuble TV","css_class":"inv-item-large-tv-stand","volume":"440000","boxes":"{\"311\": 2.5}","type":"0","rooms":["2","1"]},{"id":"101","name":"Meuble TV \/ Hifi mural","css_class":"inv-item-large-entertainment-center","volume":"3390000","boxes":"{\"311\": 4.5}","type":"0","rooms":["1"]},{"id":"105","name":"Enceintes","css_class":"inv-item-floor-speaker","volume":"226534","boxes":"","type":"0","rooms":["1","2"]},{"id":"320","name":"Coffre ou malle","css_class":"inv-item-trunk-2","volume":"504000","boxes":"","type":"0","rooms":["2","5","1"]},{"id":"136","name":"Armoire (Petite)","css_class":"inv-item-small-armoire","volume":"1132674","boxes":"{\"312\": 2, \"311\": 4}","type":"0","rooms":["2","5","1"]},{"id":"138","name":"Armoire (Grand)","css_class":"inv-item-armoire","volume":"1699011","boxes":"{\"312\": 3, \"311\": 6}","type":"0","rooms":["5","1","2"]},{"id":"144","name":"Penderie","css_class":"inv-item-wardrobe-getElementt","volume":"1699011","boxes":"{\"312\": 3, \"311\": 6}","type":"0","rooms":["5","2","1"]},{"id":"139","name":"Commode (Petite)","css_class":"inv-item-small-dresser","volume":"566337","boxes":"{\"311\": 6}","type":"0","rooms":["2","1"]},{"id":"141","name":"Commode (Grande)","css_class":"inv-item-dresser","volume":"1274258","boxes":"{\"311\": 7.5}","type":"0","rooms":["2","1"]},{"id":"154","name":"Buffet","css_class":"inv-item-buffet","volume":"991089","boxes":"{\"310\": 3, \"311\": 2}","type":"0","rooms":["1"]},{"id":"160","name":"Vaisselier","css_class":"inv-item-china-cabinet","volume":"1443755","boxes":"{\"310\": 2, \"311\": 2}","type":"0","rooms":["1","3"]},{"id":"146","name":"Support \u00e0 v\u00eatement","css_class":"inv-item-clothes-rack","volume":"424752","boxes":"{\"312\": 2}","type":"0","rooms":["2"]},{"id":"274","name":"Porte-manteau","css_class":"inv-item-coat-rack","volume":"141584","boxes":"","type":"0","rooms":["1"]},{"id":"152","name":"Placard \u00e0 chaussures","css_class":"inv-item-shoe-rack","volume":"283168","boxes":"{\"311\": 3}","type":"0","rooms":["1"]},{"id":"221","name":"Classeur vertical (2 tiroirs)","css_class":"inv-item-drawer-vertical-deep","volume":"283168","boxes":"{\"311\": 1.5}","type":"0","rooms":["4"]},{"id":"222","name":"Classeur vertical (4 tiroirs)","css_class":"inv-item-drawer-vertical-deep-4-drawers","volume":"566337","boxes":"{\"311\": 3}","type":"0","rooms":["4"]},{"id":"225","name":"Classeur lat\u00e9ral (2 tiroirs)","css_class":"inv-item-drawer-lateral","volume":"424752","boxes":"{\"311\": 1.5}","type":"0","rooms":["4"]},{"id":"226","name":"Classeur lat\u00e9ral (4 tiroirs)","css_class":"inv-item-drawer-lateral-4-drawers","volume":"849505","boxes":"{\"311\": 3}","type":"0","rooms":["4"]},{"id":"114","name":"Biblioth\u00e8que","css_class":"inv-item-large-bookcase","volume":"1395000","boxes":"{\"311\": 7}","type":"0","rooms":["1","5","2","4"]},{"id":"183","name":"\u00c9tag\u00e8re en m\u00e9tal","css_class":"inv-item-bakers-rack","volume":"1132674","boxes":"{\"311\": 3}","type":"0","rooms":["5","3","2","1"]},{"id":"122","name":"Miroir","css_class":"inv-item-small-mirror","volume":"79900","boxes":"","type":"0","rooms":["1","2"]},{"id":"123","name":"Miroir (Grand)","css_class":"inv-item-large-mirror","volume":"199000","boxes":"","type":"0","rooms":["2","1"]},{"id":"125","name":"Cadre photo","css_class":"inv-item-picture-with-frame","volume":"117000","boxes":"{\"311\": 0.3}","type":"0","rooms":["1","2"]},{"id":"126","name":"Tableau","css_class":"inv-item-painting-with-frame","volume":"253500","boxes":"","type":"0","rooms":["1","2"]},{"id":"277","name":"Chevalet","css_class":"inv-item-easel","volume":"291200","boxes":"","type":"0","rooms":["7","1"]},{"id":"301","name":"Sculpture","css_class":"inv-item-large-sculpture","volume":"424752","boxes":"","type":"0","rooms":["2","1"]},{"id":"134","name":"Tapis","css_class":"inv-item-large-rug","volume":"290000","boxes":"","type":"0","rooms":["2","1"]},{"id":"286","name":"Porte-magazines","css_class":"inv-item-magazine-rack","volume":"56633","boxes":"{\"311\": 0.5}","type":"0","rooms":["1"]},{"id":"151","name":"Panier \u00e0 linge sale","css_class":"inv-item-hamper","volume":"141584","boxes":"","type":"0","rooms":["7","2"]},{"id":"231","name":"Plante d'int\u00e9rieur (Petite)","css_class":"inv-item-small-plant","volume":"141584","boxes":"{\"311\": 0.5}","type":"0","rooms":["1"]},{"id":"233","name":"Plante d'int\u00e9rieur (Grande)","css_class":"inv-item-plant","volume":"424752","boxes":"","type":"0","rooms":["1"]},{"id":"278","name":"Fausse chemin\u00e9e","css_class":"inv-item-faux-fireplace","volume":"283168","boxes":"","type":"0","rooms":["1"]},{"id":"131","name":"Serviteur de chemin\u00e9e","css_class":"inv-item-fireplace-equipment","volume":"141584","boxes":"","type":"0","rooms":["1","7"]},{"id":"279","name":"Paravent","css_class":"inv-item-folding-screen","volume":"424752","boxes":"","type":"0","rooms":["1","7"]},{"id":"287","name":"Buste de couture","css_class":"inv-item-mannequin","volume":"566337","boxes":"","type":"0","rooms":["7"]},{"id":"270","name":"Liti\u00e8re de chat","css_class":"inv-item-cat-litter-box","volume":"141584","boxes":"","type":"0","rooms":["7"]},{"id":"271","name":"Arbre \u00e0 chat (Petit)","css_class":"inv-item-small-cat-tree","volume":"198217","boxes":"","type":"0","rooms":["7"]},{"id":"273","name":"Arbre \u00e0 chat (Grand)","css_class":"inv-item-cat-tree","volume":"566337","boxes":"","type":"0","rooms":["7"]},{"id":"127","name":"Caisse de tableaux","css_class":"inv-item-picture-crate","volume":"453069","boxes":"","type":"0","rooms":["7"]},{"id":"147","name":"Corbeille","css_class":"inv-item-garbage-pail","volume":"84950","boxes":"","type":"0","rooms":["2","4"]},{"id":"148","name":"Poubelle 20 litres","css_class":"inv-item-small-garbage-can","volume":"198217","boxes":"","type":"0","rooms":["3"]},{"id":"149","name":"Poubelle 80 litres","css_class":"inv-item-garbage-can","volume":"141584","boxes":"","type":"0","rooms":["3","6"]},{"id":"150","name":"Poubelle enfant","css_class":"inv-item-toy-bin","volume":"141584","boxes":"","type":"0","rooms":["5"]},{"id":"153","name":"Valise","css_class":"inv-item-suitcase","volume":"141584","boxes":"","type":"0","rooms":["7"]},{"id":"171","name":"Cafeti\u00e8re","css_class":"inv-item-coffee-maker","volume":"56633","boxes":"{\"311\": 0.3}","type":"0","rooms":["3","7"]},{"id":"172","name":"Lave-vaisselle","css_class":"inv-item-dishwasher","volume":"707921","boxes":"","type":"0","rooms":["3","7"]},{"id":"211","name":"Moniteur","css_class":"inv-item-monitor","volume":"169901","boxes":"{\"311\": 1}","type":"0","rooms":["4"]},{"id":"173","name":"Robot de cuisine","css_class":"inv-item-food-processor","volume":"56633","boxes":"{\"311\": 0.5}","type":"0","rooms":["3","7"]},{"id":"213","name":"Fax","css_class":"inv-item-fax-machine","volume":"56633","boxes":"{\"311\": 0.5}","type":"0","rooms":["4"]},{"id":"174","name":"Presse-agrumes","css_class":"inv-item-juicer","volume":"56633","boxes":"{\"311\": 0.3}","type":"0","rooms":["3","7"]},{"id":"214","name":"Destructeur de document","css_class":"inv-item-paper-shredder","volume":"56633","boxes":"","type":"0","rooms":["4"]},{"id":"175","name":"Four \u00e0 micro-ondes","css_class":"inv-item-microwave","volume":"141584","boxes":"","type":"0","rooms":["3","7"]},{"id":"217","name":"Imprimante","css_class":"inv-item-large-printer","volume":"292500","boxes":"{\"311\": 1}","type":"0","rooms":["4"]},{"id":"177","name":"Four","css_class":"inv-item-oven","volume":"707921","boxes":"","type":"0","rooms":["3","7"]},{"id":"179","name":"R\u00e9frig\u00e9rateur (Petit)","css_class":"inv-item-small-refrigerator","volume":"707921","boxes":"","type":"0","rooms":["3","7"]},{"id":"180","name":"R\u00e9frig\u00e9rateur (Moyen)","css_class":"inv-item-refrigerator","volume":"1415842","boxes":"","type":"0","rooms":["3","7"]},{"id":"181","name":"R\u00e9frig\u00e9rateur (Grand)","css_class":"inv-item-large-refrigerator","volume":"1840595","boxes":"","type":"0","rooms":["3","7"]},{"id":"182","name":"Cave \u00e0 vin","css_class":"inv-item-wine-refrigerator","volume":"283168","boxes":"","type":"0","rooms":["3","7"]},{"id":"187","name":"Casier \u00e0 vin","css_class":"inv-item-wine-rack","volume":"198217","boxes":"","type":"0","rooms":["3"]},{"id":"291","name":"Chariot de course","css_class":"inv-item-shopping-cart","volume":"679604","boxes":"","type":"0","rooms":["7","3"]},{"id":"186","name":"Fontaine \u00e0 eau","css_class":"inv-item-water-cooler","volume":"226534","boxes":"","type":"0","rooms":["3","7"]},{"id":"253","name":"Climatiseur","css_class":"inv-item-air-conditioner","volume":"283168","boxes":"","type":"0","rooms":["7"]},{"id":"129","name":"Ventilateur","css_class":"inv-item-fan","volume":"84950","boxes":"","type":"0","rooms":["7"]},{"id":"130","name":"Ventilateur sur pied","css_class":"inv-item-standing-fan","volume":"339802","boxes":"","type":"0","rooms":["7"]},{"id":"261","name":"Chauffage d'appoint","css_class":"inv-item-space-heater","volume":"84950","boxes":"{\"311\": 1}","type":"0","rooms":["7"]},{"id":"256","name":"Purificateur d'air","css_class":"inv-item-air-purifier","volume":"84950","boxes":"","type":"0","rooms":["7"]},{"id":"257","name":"S\u00e8che-linge","css_class":"inv-item-dryer","volume":"707921","boxes":"","type":"0","rooms":["3","7"]},{"id":"258","name":"Fer \u00e0 repasser","css_class":"inv-item-iron","volume":"28316","boxes":"{\"311\": 0.4}","type":"0","rooms":["7"]},{"id":"259","name":"Table \u00e0 repasser","css_class":"inv-item-ironing-board","volume":"84950","boxes":"{\"311\": 0.7}","type":"0","rooms":["7"]},{"id":"260","name":"Machine \u00e0 coudre","css_class":"inv-item-sewing-machine","volume":"141584","boxes":"","type":"0","rooms":["7"]},{"id":"262","name":"Aspirateur","css_class":"inv-item-vacuum-cleaner","volume":"141584","boxes":"","type":"0","rooms":["7"]},{"id":"263","name":"Machine \u00e0 laver","css_class":"inv-item-washing-machine","volume":"707921","boxes":"","type":"0","rooms":["3","7"]},{"id":"209","name":"Ordinateur portable","css_class":"inv-item-laptop","volume":"84950","boxes":"","type":"0","rooms":["4"]},{"id":"208","name":"Tour de PC","css_class":"inv-item-computer","volume":"141584","boxes":"{\"311\": 1}","type":"0","rooms":["4"]},{"id":"219","name":"Scanner","css_class":"inv-item-scanner","volume":"56633","boxes":"{\"311\": 1}","type":"0","rooms":["4"]},{"id":"193","name":"Maison de poup\u00e9e","css_class":"inv-item-dollhouse","volume":"198217","boxes":"","type":"0","rooms":["5"]},{"id":"194","name":"Aire de jeu","css_class":"inv-item-play-set","volume":"283168","boxes":"{\"311\": 1}","type":"0","rooms":["5"]},{"id":"195","name":"Parc pour b\u00e9b\u00e9","css_class":"inv-item-play-pen","volume":"283168","boxes":"{\"311\": 1}","type":"0","rooms":["5"]},{"id":"196","name":"Voiture enfant","css_class":"inv-item-toy-car","volume":"424752","boxes":"","type":"0","rooms":["5"]},{"id":"197","name":"Si\u00e8ge-auto","css_class":"inv-item-car-seat","volume":"141584","boxes":"{\"311\": 1}","type":"0","rooms":["7"]},{"id":"198","name":"Poussette","css_class":"inv-item-stroller","volume":"283168","boxes":"","type":"0","rooms":["5","7"]},{"id":"115","name":"Piano quart de queue","css_class":"inv-item-baby-grand-piano","volume":"2265348","boxes":"","type":"0","rooms":["7"]},{"id":"116","name":"Piano console","css_class":"inv-item-console-piano","volume":"1557426","boxes":"","type":"0","rooms":["7"]},{"id":"117","name":"Piano \u00e0 queue","css_class":"inv-item-grand-piano","volume":"2548516","boxes":"","type":"0","rooms":["7"]},{"id":"119","name":"Piano droit","css_class":"inv-item-upright-piano","volume":"1699011","boxes":"","type":"0","rooms":["7"]},{"id":"268","name":"Panier","css_class":"inv-item-basket","volume":"141584","boxes":"{\"311\": 0.5}","type":"0","rooms":["7"]},{"id":"120","name":"Clavecin","css_class":"inv-item-spinet-piano","volume":"1415842","boxes":"","type":"0","rooms":["7"]},{"id":"118","name":"Banc de piano","css_class":"inv-item-piano-bench","volume":"198217","boxes":"","type":"0","rooms":["7"]},{"id":"238","name":"Batterie","css_class":"inv-item-drums","volume":"566337","boxes":"","type":"0","rooms":["7"]},{"id":"239","name":"Guitare","css_class":"inv-item-guitar","volume":"141584","boxes":"","type":"0","rooms":["7"]},{"id":"240","name":"Ampli pour guitare","css_class":"inv-item-amplifier","volume":"84950","boxes":"","type":"0","rooms":["7"]},{"id":"241","name":"Instrument de musique","css_class":"inv-item-saxophone","volume":"141584","boxes":"","type":"0","rooms":["7"]},{"id":"292","name":"Outils de jardinage","css_class":"inv-item-shovel","volume":"56633","boxes":"","type":"0","rooms":["6"]},{"id":"283","name":"\u00c9chelle","css_class":"inv-item-ladder","volume":"283168","boxes":"","type":"0","rooms":["6"]},{"id":"284","name":"\u00c9chelle (Grande)","css_class":"inv-item-large-ladder","volume":"424752","boxes":"","type":"0","rooms":["6"]},{"id":"235","name":"Barbecue","css_class":"inv-item-grill","volume":"283168","boxes":"{\"311\": 0.5}","type":"0","rooms":["6"]},{"id":"236","name":"Barbecue (Grand)","css_class":"inv-item-large-grill","volume":"835200","boxes":"{\"311\": 1}","type":"0","rooms":["6"]},{"id":"285","name":"Tondeuse","css_class":"inv-item-lawnmower","volume":"849505","boxes":"","type":"0","rooms":["6"]},{"id":"293","name":"Souffleuse \u00e0 neige","css_class":"inv-item-snow-blower","volume":"849505","boxes":"","type":"0","rooms":["6"]},{"id":"294","name":"Bo\u00eete \u00e0 outils","css_class":"inv-item-toolbox","volume":"283168","boxes":"","type":"0","rooms":["6"]},{"id":"297","name":"Coffre \u00e0 outils","css_class":"inv-item-tool-chest","volume":"216000","boxes":"","type":"0","rooms":["6"]},{"id":"317","name":"V\u00e9lo d'appartement","css_class":"inv-item-indoor-bike","volume":"1092000","boxes":"","type":"0","rooms":["7"]},{"id":"318","name":"V\u00e9lo \u00e9lliptique","css_class":"inv-item-indoor-elliptic-bike","volume":"2856000","boxes":"","type":"0","rooms":["7"]},{"id":"298","name":"Tapis roulant","css_class":"inv-item-treadmill","volume":"1699011","boxes":"","type":"0","rooms":["7"]},{"id":"248","name":"V\u00e9lo","css_class":"inv-item-bicycle","volume":"283168","boxes":"","type":"0","rooms":["7","6"]},{"id":"249","name":"V\u00e9lo d'enfant","css_class":"inv-item-childrens-bicycle","volume":"198217","boxes":"","type":"0","rooms":["7","6","5"]},{"id":"269","name":"Porte-v\u00e9los","css_class":"inv-item-bike-rack","volume":"56633","boxes":"","type":"0","rooms":["7"]},{"id":"250","name":"Sac de golf","css_class":"inv-item-golf-bag","volume":"141584","boxes":"","type":"0","rooms":["7"]},{"id":"251","name":"Paire de skis","css_class":"inv-item-ski","volume":"198217","boxes":"","type":"0","rooms":["7"]},{"id":"252","name":"Snowboard","css_class":"inv-item-snowboard","volume":"198217","boxes":"","type":"0","rooms":["7"]},{"id":"264","name":"Babyfoot","css_class":"inv-item-babyfoot","volume":"849505","boxes":"","type":"0","rooms":["7"]},{"id":"265","name":"Flipper","css_class":"inv-item-pinball","volume":"707921","boxes":"","type":"0","rooms":["7"]},{"id":"266","name":"Table de ping-pong","css_class":"inv-item-ping-pong-table","volume":"707921","boxes":"{\"311\": 0.3}","type":"0","rooms":["7","6"]},{"id":"267","name":"Billard","css_class":"inv-item-pool-table","volume":"1699011","boxes":"","type":"0","rooms":["7"]},{"id":"311","name":"Carton standard","css_class":"inv-item-letter-file-box","volume":"100000","boxes":"","type":"1","rooms":["8"]},{"id":"310","name":"Carton vaisselle","css_class":"inv-item-china-box","volume":"151875","boxes":"","type":"1","rooms":["8"]},{"id":"312","name":"Carton penderie","css_class":"inv-item-wardrobe-box","volume":"312000","boxes":"","type":"1","rooms":["8"]},{"id":"290","name":"Coffre-fort","css_class":"inv-item-safe","volume":"141584","boxes":"{\"311\": 1}","type":"0","rooms":["2","1","7"]}];
/* Helpers */

var defaultDiacriticsRemovalMap = [
    {'base':'A', 'letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},
    {'base':'AA','letters':/[\uA732]/g},
    {'base':'AE','letters':/[\u00C6\u01FC\u01E2]/g},
    {'base':'AO','letters':/[\uA734]/g},
    {'base':'AU','letters':/[\uA736]/g},
    {'base':'AV','letters':/[\uA738\uA73A]/g},
    {'base':'AY','letters':/[\uA73C]/g},
    {'base':'B', 'letters':/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},
    {'base':'C', 'letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},
    {'base':'D', 'letters':/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},
    {'base':'DZ','letters':/[\u01F1\u01C4]/g},
    {'base':'Dz','letters':/[\u01F2\u01C5]/g},
    {'base':'E', 'letters':/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},
    {'base':'F', 'letters':/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},
    {'base':'G', 'letters':/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},
    {'base':'H', 'letters':/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},
    {'base':'I', 'letters':/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},
    {'base':'J', 'letters':/[\u004A\u24BF\uFF2A\u0134\u0248]/g},
    {'base':'K', 'letters':/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},
    {'base':'L', 'letters':/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},
    {'base':'LJ','letters':/[\u01C7]/g},
    {'base':'Lj','letters':/[\u01C8]/g},
    {'base':'M', 'letters':/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},
    {'base':'N', 'letters':/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},
    {'base':'NJ','letters':/[\u01CA]/g},
    {'base':'Nj','letters':/[\u01CB]/g},
    {'base':'O', 'letters':/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},
    {'base':'OI','letters':/[\u01A2]/g},
    {'base':'OO','letters':/[\uA74E]/g},
    {'base':'OU','letters':/[\u0222]/g},
    {'base':'P', 'letters':/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},
    {'base':'Q', 'letters':/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},
    {'base':'R', 'letters':/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},
    {'base':'S', 'letters':/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},
    {'base':'T', 'letters':/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},
    {'base':'TZ','letters':/[\uA728]/g},
    {'base':'U', 'letters':/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},
    {'base':'V', 'letters':/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},
    {'base':'VY','letters':/[\uA760]/g},
    {'base':'W', 'letters':/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},
    {'base':'X', 'letters':/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},
    {'base':'Y', 'letters':/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},
    {'base':'Z', 'letters':/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},
    {'base':'a', 'letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},
    {'base':'aa','letters':/[\uA733]/g},
    {'base':'ae','letters':/[\u00E6\u01FD\u01E3]/g},
    {'base':'ao','letters':/[\uA735]/g},
    {'base':'au','letters':/[\uA737]/g},
    {'base':'av','letters':/[\uA739\uA73B]/g},
    {'base':'ay','letters':/[\uA73D]/g},
    {'base':'b', 'letters':/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},
    {'base':'c', 'letters':/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},
    {'base':'d', 'letters':/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},
    {'base':'dz','letters':/[\u01F3\u01C6]/g},
    {'base':'e', 'letters':/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},
    {'base':'f', 'letters':/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},
    {'base':'g', 'letters':/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},
    {'base':'h', 'letters':/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},
    {'base':'hv','letters':/[\u0195]/g},
    {'base':'i', 'letters':/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},
    {'base':'j', 'letters':/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},
    {'base':'k', 'letters':/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},
    {'base':'l', 'letters':/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},
    {'base':'lj','letters':/[\u01C9]/g},
    {'base':'m', 'letters':/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},
    {'base':'n', 'letters':/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},
    {'base':'nj','letters':/[\u01CC]/g},
    {'base':'o', 'letters':/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},
    {'base':'oi','letters':/[\u01A3]/g},
    {'base':'ou','letters':/[\u0223]/g},
    {'base':'oo','letters':/[\uA74F]/g},
    {'base':'p','letters':/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},
    {'base':'q','letters':/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},
    {'base':'r','letters':/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},
    {'base':'s','letters':/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},
    {'base':'t','letters':/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},
    {'base':'tz','letters':/[\uA729]/g},
    {'base':'u','letters':/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},
    {'base':'v','letters':/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},
    {'base':'vy','letters':/[\uA761]/g},
    {'base':'w','letters':/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},
    {'base':'x','letters':/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},
    {'base':'y','letters':/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},
    {'base':'z','letters':/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}
];
var changes;
</script>
<script>



mbox.trim = function(str)
{
	return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g,'');
}

mbox.addEvent = function(el, e, callback, capture)
{
	if (hasEventListeners) 
	{
		el.addEventListener(e, callback, !!capture);
	}
	else 
	{
		el.attachEvent('on' + e, callback);
	}
}
mbox.addClass = function(el, className)
{
	//console.log('%cAdding class "'+className+'" for DOM with id = '+el.id, 'color: #8ff442');
	if (!this.hasClass(el, className)) // avoid adding class mutiple times
	{
		//console.log('%cAdding class '+className+' success', 'color: #8ff442');
		el.className += " "+className;
	}
}

mbox.hasClass = function(el, className)
{
	//console.log('Test hasClass');
	var regex = new RegExp('(\\s|^)' + className + '(\\s|$)');
	return (regex.test(el.className));
}

mbox.removeClass = function(el, className)
{
	var regex = new RegExp('(\\s|^)' + className + '(\\s|$)');
	
	el.className = el.className.replace(regex, " ");
	//console.log('%c Removing class "'+className+'" for DOM with id = '+el.id, 'color: #ff0442');
}

// node must be an elementList (returned by querySelectorAll)
mbox.removeClassFromNode = function(node, className)
{
	for (var i = 0; i < node.length; i++)
	{
		removeClass(node[i], className);
	}
}

mbox.addClassToNode = function(node, className)
{
	for (var i = 0; i < node.length; i++)
	{
		if (hasClass(node[i], className) === false)
		{
			addClass(node[i], className);
		}
	}
}

// Utilitarian function not to loose the scope 
mbox.bind = function(context, name)
{
	return function()
	{
		return context[name].apply(context, arguments);
	};
}

mbox.removeDiacritics = function(str) {
    if (!changes) {
        changes = defaultDiacriticsRemovalMap;
    }
    for (var i = 0; i < changes.length; i++) {
        str = str.replace(changes[i].letters, changes[i].base);
    }
    return str;
}


	var domVolume = undefined;
	var domItemList = undefined;
	var idHelper = 'inventoryHelper';
	var idVolume = 'sidebarVolume';
	var idSpace = 'sidebarSpace';
	var idItemList = 'mbItemListContainer';
	var idParam = 'paramSpace';
	var currentRoom = "1"; // Should be a string
	var boxCalculator = false;
	var customItemId = 1000;
	var isInventoryInitialized = false;
	mbox.inventoryItems = [];
	mbox.selectedItems = [];

	mbox.initInventory = function()
	{
		// Reset variables
		//console.log("%c=> In initInventory with isInventoryInitialized = "+isInventoryInitialized, 'background: #222; color: #bada55');
		domItemList = undefined;
		domVolume = undefined;
		boxsMaxHeight = 2;
		this.inventoryItems = [];
		this.selectedItems = [];
		// End of reset variables
		this.addDefaultItem();
		this.showInventoryNavbar();
		this.initializeItems();
		this.initializeRooms();
		this.initializeDefaultInventory();
		this.initializeInventoryEvents();
		this.showSelectedItems();
		this.showInventorySideBar();
		
		//this.showSelectedItems();
		isInventoryInitialized = true;
		return (true);
	}
	
	mbox.addDefaultItem = function()
	{
		var orgCubicMeter = 0;
		//orgCubicMeter = orgCubicMeter.replace(/,/g, '.');// Replace french  42,12 for 42.12
		//orgCubicMeter = orgCubicMeter.replace(/ /g, ''); 
		var cubicMeter = parseInt(orgCubicMeter * 1000000);
		if (cubicMeter <= 0.00)
			return ;
		var customItem = new Item({volume: cubicMeter, name: "Volume "+orgCubicMeter+" m³", number: 1, css_class: "inv-item-custom"});
		this.selectedItems.push(customItem);
	}

	mbox.showInventorySideBar = function()
	{
		var container = document.getElementById("sidebarInventoryContainer");
		this.removeClass(container, 'uk-hidden');

	}

	mbox.hideInventorySideBar = function()
	{
		var container = document.getElementById("sidebarInventoryContainer");
		this.addClass(container, 'uk-hidden');
	}

	mbox.showInventoryNavbar = function()
	{
		return (true);
	}

	mbox.initializeItems = function()
	{
		var itemContainer = document.getElementById('itemContainer');
		var html = '';
		
		if (isInventoryInitialized === true)
			return ;
		html = this.trim(itemContainer.innerHTML);
		for (var i = 0; i < this.inventoryItemJson.length; i++)
		{
			this.inventoryItems[i] = new Item(this.inventoryItemJson[i]);
			html += this.trim(this.inventoryItems[i].createHTML(i));
		}
		itemContainer.innerHTML = html;
	}

	mbox.initializeRooms = function()
	{
		var roomContainer = document.getElementById('roomContainer');
		var rooms = JSON.parse(roomContainer.getAttribute('data-room'));
		var HTMLParts = ['<option value="', '">', '</option>'];
		var roomHTML = '<select id="inventoryRoomSelect" class="uk-select uk-width-2-3@m" >';

		if (isInventoryInitialized === true)
			return ;
		for (var i = 0; i < rooms.length; i++)
		{
			var html = HTMLParts[0] + rooms[i].id + HTMLParts[1] + rooms[i].name + HTMLParts[2];
			roomHTML += html;
		}
		roomHTML += '</select>';
		roomContainer.innerHTML += roomHTML;
	}

	mbox.initializeDefaultInventory = function()
	{
		var defaultRoom = document.getElementById('inventoryRoomSelect');
		var id = defaultRoom.value;

		if (isInventoryInitialized === true)
			return ;
		this.showItemsById(id);
	}

	mbox.initializeInventoryEvents = function()
	{
		var roomSelect = document.getElementById('inventoryRoomSelect');
		var deleteBtn = document.getElementById('deleteInventory');
		var searchInput = document.getElementById('mbSearchInventory');
		var customItem = document.getElementById('addNewCustomItem');
		var predefBtn = document.getElementById('mbApiPredefinedInventory');
		
		//this.addEvent(deleteBtn, "click", this.bind(this, "deleteInventory"), false);
		this.addEvent(customItem, "click", this.bind(this, "addNewCustomItem"), false);
		//this.addEvent(predefBtn, "click", this.bind(this, "addPredefinedInventory"), false);
		this.addEvent(searchInput, "input", this.bind(this, "searchInventory"), false);
		this.addEvent(roomSelect, "change", this.bind(this, "showRoomAndItem"), false);
		if (!domItemList)
		{
			domItemList = document.getElementById(idItemList);
		}
		this.bindAddSubEvents();
		this.addEvent(domItemList, "click", this.bind(this, "deleteSelectedItem"), false);
	}

	mbox.bindAddSubEvents = function()
	{
		var subBtn = document.querySelectorAll('.mb-btn-sub');
		var addBtn = document.querySelectorAll('.mb-btn-add');
		
		for (var i = 0; i < addBtn.length; i++) 
		{
			this.addEvent(addBtn[i], "click", this.bind(this, "addInventoryItem"), false);
		}
		
		for (var i = 0; i < subBtn.length; i++) 
		{
			this.addEvent(subBtn[i], "click", this.bind(this, "subInventoryItem"), false);
		}
	}

	mbox.showRoomAndItem = function(e)
	{
		var el = e.target;
		var id = el.value;
		/*var roomBtn = document.querySelectorAll('.room-button');
		
		currentRoom = id;
		for (var i = 0; i < roomBtn.length; i++) 
		{
			removeClass(roomBtn[i], "button-success");
		}
		addClass(el, "button-success");*/
		currentRoom = id;
		this.showItemsById(id);
	}

	mbox.showItemsById = function (id)
	{
		for (var i = 0; i < this.inventoryItems.length; i++)
		{
			try 
			{
				if (this.inventoryItems[i].isInRoom(id) === true)
				{
					this.inventoryItems[i].showItem();
				}
				else
				{
					this.inventoryItems[i].hideItem();
				}
			}
			catch (err)
			{
				//console.log(err);
				//console.log(this.inventoryItems[i]);
				return ;
			}
		}
	}

	mbox.addInventoryItemByIndex = function(idx, nbr)
	{
		nbr = nbr || 1;
		//console.log('Index is '+ idx);
		this.inventoryItems[idx].add(nbr);
		var index = this.selectedItems.indexOf(this.inventoryItems[idx]);
		if (index === -1)
		{
			this.selectedItems.push(this.inventoryItems[idx]);
		}
		if (this.inventoryItems[idx].number <= 0)
		{
			if (index != -1)
			{
				this.selectedItems.splice(index, 1);
			}
		}
	}

	mbox.addInventoryItemById = function(id, nbr)
	{
		nbr = nbr || 1;
		if (nbr == 0.00)
			return ;
		for (var i = 0; i < this.inventoryItems.length; i++)
		{
			if (this.inventoryItems[i].id == id)
			{
				//console.log("trying to Item with index #"+i);
				this.addInventoryItemByIndex(i, nbr);
			}
		}
	}

	mbox.addInventoryItemBoxes = function(idx, nbr)
	{
		nbr = nbr || 1;
		var tmp = this.inventoryItems[idx].boxes;
		for (var prop in tmp)
		{
			if (tmp.hasOwnProperty(prop)) 
			{
				//console.log("trying to add box #"+prop);
				var rounded = Math.round((tmp[prop] * nbr) * 100) / 100;
				this.addInventoryItemById(prop, rounded);
				//console.log("Exiting add box #"+prop);
			}
		}
		this.inventoryItems[idx].boxesAdded = true;
	}

	mbox.addInventoryItem = function(e)
	{
		e = e || window.event;
		var target = e.currentTarget;
		var idx = target.getAttribute('data-idx');
		this.addInventoryItemByIndex(idx);
		if (boxCalculator === true)
		{
			this.addInventoryItemBoxes(idx);
		}
		this.showSelectedItems();
	}

	mbox.subInventoryItem = function(e)
	{
		e = e || window.event;
		var target = e.currentTarget;
		var idx = target.getAttribute('data-idx');
		this.inventoryItems[idx].add(-1);
		if (boxCalculator === true && this.inventoryItems[idx].number >= 0)
		{
			this.addInventoryItemBoxes(idx, -1);
		}
		if (this.inventoryItems[idx].number <= 0)
		{
			var index = this.selectedItems.indexOf(this.inventoryItems[idx]);
			if (index != -1)
			{
				this.selectedItems.splice(index, 1);
			}
		}
		this.showSelectedItems();
	}

	mbox.showSelectedItems = function()
	{
		if (!domVolume)
		{
			domVolume = document.getElementById(idVolume);
			domSpace = document.getElementById(idSpace);
			domParam = document.getElementById(idParam);
		}
		if (!domItemList)
		{
			domItemList = document.getElementById(idItemList);
		}
		var html = '';
		var volume = 0;
		for (var i = 0; i < this.selectedItems.length; i++)
		{
			html += '<div class="uk-margin-small-right" style="display: inline-block; margin-bottom: 8px; padding: 8px;background-color: #1F63E6; border-radius: 20px; font-size: .7em; color: #fff;"><tr><td>'+this.selectedItems[i].name+' (x'+Math.ceil(this.selectedItems[i].number)+')</td><td class="uk-text-center" width="10%"><img class="mb_deleteItem uk-link" data-idx="'+i+'" title="Supprimer" class="uk-margin-right-small" src="/theme/box/assets/close.png?49dd8ea8bc"/></td></tr></div>';
			volume += this.selectedItems[i].getVolume();
		}
		domItemList.innerHTML = html;
		volume = parseFloat(Math.round(volume * 100) / 100).toFixed(2);
		surface = (volume/boxsMaxHeight)*1.5;
		surface = parseFloat(Math.round(surface * 100) / 100).toFixed(2);
		surface = Math.ceil(surface);
		domVolume.innerHTML = volume;
		domSpace.innerHTML = surface;
		domParam.href = '/page/reserver-un-box?s='+surface;
		//mbox.prototype.updateSavedValues(volume);
	}

	mbox.deleteInventory = function()
	{
		for (var i = 0; i < this.selectedItems.length; i++)
		{
			this.selectedItems[i].remove();
		}
		this.selectedItems = [];
		this.showSelectedItems();
	}

	mbox.deleteSelectedItem = function(e)
	{
		e = e || window.event;
		var target = e.target;
		
		if (target && this.hasClass(target, 'mb_deleteItem'))
		{
			var idx = e.target.getAttribute("data-idx");
			this.selectedItems[idx].remove();
			this.selectedItems.splice(idx, 1);
			this.showSelectedItems();
		}
	}

	mbox.saveInventory = function()
	{
		var arr = [];
		for (var i = 0; i < this.selectedItems.length; i++)
		{
			arr[i] = { id: this.selectedItems[i].id, name: this.selectedItems[i].name, number: this.selectedItems[i].number };
		}
		return (arr);
	}

	mbox.addNewCustomItem = function()
	{
		var width = parseInt(document.getElementById('customItemWidth').value);
		var height = parseInt(document.getElementById('customItemHeight').value);
		var depth = parseInt(document.getElementById('customItemDepth').value);
		var itemName = document.getElementById('customItemName').value;
		var addCustomItemBtn = document.getElementById('mbAddCustomItem');
		var addCustomItemHtml = addCustomItemBtn.outerHTML;
		var itemContainer = document.getElementById('itemContainer');
		var cubicMeter = 0;
		var roomsArray = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
		var customItem = {};
		
		if (width <= 0)
			width = 1;
		if (height <= 0)
			height = 1;
		if (depth <= 0)
			depth = 1;

		cubicMeter = width * height * depth;
		customItem = new Item({id: customItemId, volume: cubicMeter, name: itemName, number: 0, css_class: "inv-item-custom", rooms: roomsArray, isCustom: true });
		customItemId += 1;
		addCustomItemBtn.remove();
		itemContainer.innerHTML = addCustomItemHtml + customItem.createHTML(this.inventoryItems.length) + itemContainer.innerHTML;
		this.bindAddSubEvents();
		this.inventoryItems.push(customItem);
		this.showItemsById(currentRoom);
		for (var i = 0; i < this.inventoryItems.length; i++)
		{
			this.inventoryItems[i].initDom();
		}
		customItem.add();
		this.selectedItems.push(customItem);
		this.showSelectedItems();
	}

	mbox.searchInventory = function(e)
	{
		e = e || window.event;
		var target = e.target || e.srcElement;
		var toSearch = this.removeDiacritics(target.value).toLowerCase();
		toSearch = this.trim(toSearch);
		
		if (toSearch.length > 1)
		{
			this.searchByName(toSearch);
		}
		else 
			this.showItemsById(currentRoom);
	}

	mbox.searchByName = function(toSearch)
	{

		for (var i = 0; i < this.inventoryItems.length; i++)
		{
			if (this.inventoryItems[i].cleanedName.indexOf(toSearch) >= 0)
			{
				this.inventoryItems[i].showItem();
			}
			else
			{
				this.inventoryItems[i].hideItem();
			}
		}
	}

	mbox.addJsonInventory = function(json)
	{
		var data = JSON.parse(json);
		var id = 0;
		
		for (var prop in data) 
		{
			id = parseInt(prop);
			if (data.hasOwnProperty(prop) && id > 0) 
			{
				this.addInventoryItemById(prop, data[prop]);
			}
		}
	}

	mbox.addPredefinedInventory = function()
	{
		var idTypicalInv = 0;
		var housingType = parseInt(addrObj['1']['housingType']); // 0 or 1
		var housingSize = parseInt(addrObj['1']['housingSize']); // 0 to 4
		var hasCellar = 0;//parseInt(addrObj['1']['hasCellar']); // 0 or 1
		
		idTypicalInv = (10 * housingType) + ( (2 * housingSize) + 1 + hasCellar);
		if (idTypicalInv > 12)
			idTypicalInv -= 2; // Two line are "missing" in DB, line 11 and 12 should be the same as 13 & 14
		for (var i = 0; i < this.typicalInventoryJson.length; i++)
		{
			if (this.typicalInventoryJson[i].id == idTypicalInv)
			{
				this.addJsonInventory(this.typicalInventoryJson[i].data);
				this.showSelectedItems();
				location.hash = '';
				return ;
			}
		}
	}


    mbox.initInventory();
	console.log('1000box Inventory Ready - By Transacts')
</script>


<section  id="helpingComponent">
	<div class="uk-container-large uk-align-center uk-padding-remove-top uk-padding">
		<div class="uk-card uk-card-default uk-card-body  uk-padding-remove">
		<div uk-grid>
				<div class="uk-width-3-5@m">
				<div class="uk-padding">
					<h2 class="uk-margin-small-bottom">Nous sommes là pour vous
						<span class="blue-01">accompagner</span>
					</h2>
					<h3>Un service client 7j/7</h3>
					<p class="uk-margin-medium-bottom">Notre équipe est disponible sur place ou par téléphone. <br>Elle est à même de vous aider pour votre projet et faciliter vos démarches. </p>
					<hr class="uk-margin-medium-bottom">
					<div uk-grid>
						<div class="uk-width-1-2@s">
							<h3	>Besoin d'assistance ?</h3>
							        						
							<a class="uk-button uk-button-secondary" href="tel:  01 46 71 98 28">Appeler le service client 	<span class="uk-margin-left" uk-icon="icon: receiver"></span></a>
						</div>
						<div class="uk-width-1-2@s">
							<h3>Aide en ligne</h3>
							<a class="uk-link" href="/page/aide-et-assistance">FAQ</a><br>
								<a class="uk-link" href="/page/contact">Contact	</a>
						</div>
											</div>
				</div>
				</div>
				<div class="uk-width-2-5@m">
					<img data-src="/theme/box/assets/helpcenter.jpg?846b26d024" width="100%" height="150px" alt="Stockage particulier<" uk-img>
				</div>
			</div>
		</div>
	</div>
</section> 
                                                <div class="uk-position-bottom-right uk-padding uk-position-fixed">
        <a href="/page/reserver-un-box" class="uk-button uk-button-secondary font-16"><span class="uk-icon" uk-icon="arrow-right"></span>Réserver un box en ligne</a>
    </div>

                                                    
<footer>
			<div class="uk-container-large uk-padding uk-align-center">
				<div class="uk-child-width-1-2@m" uk-grid>
					<div>					
						<div>
						<img src="/theme/box/assets/logo_w.svg?07bd4c433f" width="28%" alt="" class="uk-align-center" />
						</div>
						<div>
							<a href="https://www.national-box.com" target="_blank" title="National Box"><img src="/theme/box/assets/logo_nationalbox.svg?cfc43d2f4e" width="30%" alt="" class="uk-align-center" /></a>
						</div>
						<div class="uk-text-center">
							<a href="https://www.national-box.com" target="_blank" title="National Box">Membre du réseau de self stockage Nationalbox</a>
						</div>
					</div>
					<div class="uk-child-width-1-2@m" uk-grid>
						<div>
							<h3>Service client</h3>
							<ul>
								<li><a href="/page/contact">Contactez-nous</a></li>
								<li><a href="/page/reserver-un-box">Réserver un box</a></li>
								<li><a href="/page/aide-et-assistance">Aide & assistance</a></li>
							</ul>
							<h3>Stockage particulier</h3>
							<ul>
								<li><a href="/page/calcul-box">Calculer la taille de mon box</a></li>
								<li><a href="/page/reserver-un-box">Réserver un box</a></li>
								<li><a href="/service/particuliers">Services aux particuliers</a></li>
							</ul>
						</div>
						<div>
							<h3>Informations</h3>
							<ul>
								<li><a href="/page/contact">Contact</a></li>
								<li><a href="/page/emploi-et-stages">Emploi et stages</a></li>
								<li><a href="/page/mentions-legales">Mentions légales</a></li>
							</ul>
							<h3>Professionnels</h3>
							<ul>
								<li><a href="/service/professionnels">Services aux professionnels</a></li>
								<li><a href="/service/materiel">Location de matériel</a></li>
								<li><a href="/service/enlevement-livraison">Service Pick-up</a></li>
							</ul>
						</div>
					</div>
				</div>
				<hr class="uk-margin-medium">
				<div class="uk-child-width-1-2@m" uk-grid>
					<div>
						<p><img src="/theme/box/assets/logo_w.svg?07bd4c433f" width="30px" alt="" class="uk-margin-small-right" /><small>Tous droits réservés &copy; 1000 BOX 2019</small></p>
					</div>
					<div>
						<p class="uk-align-right@l"><small><a href="/page/mentions-legales">CGV</a> - <a href="#">Politique de confidentialité</a></small></p>
					</div>
				</div>
			</div>
		</footer>
		<div class="uk-offcanvas-content">
			<div id="menu-mobile" uk-offcanvas="overlay: true">
				<div class="uk-offcanvas-bar">
					<button class="uk-offcanvas-close" type="button" uk-close></button>
					<img src="/theme/box/assets/logo_w.svg?07bd4c433f" width="30px" alt="" class="uk-margin-small-right" />
					<hr>
					<ul class="uk-nav uk-nav-default">
					


    <li>
        <a href="/service/particuliers" target="">Services particuliers</a>
    </li>
    <li>
        <a href="/service/professionnels" target="">Services professionnels</a>
    </li>
    <li>
        <a href="/service/materiel" target="">Vente de matériel</a>
    </li>
    <li>
        <a href="https://blog.1000box.fr/" target="_blank">Blog</a>
    </li>
					
					</ul>
				</div>
			</div>
		</div>

            </body>
            <script>
var mboxBooking = {};
var hasEventListeners = !!window.addEventListener;
var document = window.document;
var idSizeSelector = "surfaceSelect";
var idSize = "surface";
var idFirstName = "firstName";
var idFirstNameInput = "firstNameInput";
var idLastName = "lastName";
var idLastNameInput = "lastNameInput";
var idEmail = "email";
var idEmailInput = "emailInput";
var idPhone = "phone";
var idPhoneInput = "phoneInput";
var idBoxUpdateSizeManually = "idBoxUpdateWithUpperSize";
var idBoxSelectContainer = "selectBoxContainer";
var size = 0;
var validate = 0;
var inputToLisener = [idLastNameInput, idFirstNameInput, idPhoneInput, idEmailInput];
var domSelect;
var domContent;
var distantBox = sessionStorage.getItem('boxDistant');
var ct, ctn;
mboxBooking.alreadySended =false;
parser = new DOMParser();

function getData() {
    var selectData = document.querySelector('.surfaceData')
    var ls = localStorage
    ls.setItem('surfaceSelected', selectData.value)
}

/**
 * Requête les données de Buxida A MODIFIER
 *
 * @param {function} callback
 */
mboxBooking.getBoxDataAsync = function (callback) {
    var requestId = '7E052819-0213-8207-7308-78FED274819E';
    var requestpass = 'vu6oeMi5';
    var requestUrl = 'https://www.buxida.com/admin/php/api.php?id=1&S_UI=' + requestId + '&pwd=' + requestpass;
    if (distantBox == null || distantBox == '') {
        var surface = surface;
        var xmlHttp = new XMLHttpRequest();
        xmlHttp.onreadystatechange = function () {
            if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
                sessionStorage.setItem('boxDistant', xmlHttp.responseText);
            distantBox = sessionStorage.getItem('boxDistant');
            setTimeout(function () {
                callback(distantBox);
            }, 2000);
        }
        xmlHttp.open("GET", requestUrl, true); // true for asynchronous
        xmlHttp.send(null);
    } else {
        callback(distantBox);
    }
}

/**
 * Envoie la requête de mail
 *
 * @param {function} callback
 */
mboxBooking.sendMail = function (obj) {

    if(mboxBooking.alreadySended == false){
        sessionStorage.removeItem('boxDistant');
        var requestUrl = 'https://www.1000box.fr/theme/box/mailApi/sendMail.php?uemail='+obj.email+'&uphone='+obj.phone+'&ulname='+obj.lname+'&ufname='+obj.fname+'&bsize='+obj.size+'&bname='+obj.box;
        //var requestUrl = 'https://www.1000box.fr/theme/box/mailApi/sendMail.php?uemail='+obj.email+'&uphone='+obj.phone+'&ulname='+obj.lname+'&ufname='+obj.fname+'&bsize='+obj.size+'&bname='+obj.box+'&bprice='+obj.price;
        window.location.replace(requestUrl);
       
    }
}

/**
 * Envoie la requête de mail
 *
 * @param {function} callback
 */
mboxBooking.getDataDom = function () {
    var obj = {
        "box" : document.getElementById('boxId').innerHTML,
        "size" : document.getElementById('surface').innerHTML, 
        //"price" : document.getElementById('price').innerHTML, 
        "lname" : document.getElementById('lastName').innerHTML, 
        "fname" : document.getElementById('firstName').innerHTML, 
        "phone" : document.getElementById('phone').innerHTML, 
        "email" : document.getElementById('email').innerHTML
    }
    return obj;
}
/**
 * Met à jour le contenu InnerHTML d'un élement passé en parametres
 *
 * @param {Sting} value
 * @param {NodeElement} el
 */
mboxBooking.updateDomElement = function (value, el) {
    var element = document.getElementById(el);
    element.innerHTML = value;
}
/**
 * Valide les entrées utilisateurs
 *
 * @param {NodeElement} el
 * @returns boolean
 */
mboxBooking.validateInputs = function (el) {
    validate = 0;

    for (var i = 0; i < inputToLisener.length; i++) {
        domInput = document.getElementById(inputToLisener[i]);
        if (domInput.value == "" || domInput.value == null) {
            // do nothing
        } else {
            if (domInput.type == "email") {
                if (domInput.value.indexOf('@') > -1) {
                    validate++;
                } else {
                    // Not an email ...
                }
            } else if (domInput.id == "phoneInput") {
                domInput.value = domInput.value.replace(" ", "");
                if (isNaN(domInput.value)) {
                    // not a number
                } else {
                    validate++;
                }
            } else {
                validate++;
            }
        }
    }
    // ajouter la verification de la box choisie et impacter le if suivant :
    if (validate == 4) {
        return true;
    } else {
        return false;
    }
}
mboxBooking.findGetParameter = function(parameterName) {
    var result = null,
        tmp = [];
    location.search
        .substr(1)
        .split("&")
        .forEach(function (item) {
          tmp = item.split("=");
          if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
        });
    return result;
}

/**
 * Initalise et prépare la mise a jour du contenu de la liste par rapport au selecteur
 *
 * @param {string} distantData
 */
mboxBooking.initList = function (distantData) {

    // Generate Selector values from distant Data

    var sizes = JSON.parse(distantData).map(function (obj) {
        return obj.M2;
    });

    function filterDoublons(a) {
        var seen = {};
        return a.filter(function (item) {
            return seen.hasOwnProperty(item) ? false : (seen[item] = true);
        });
    }
    sizes = filterDoublons(sizes).sort(function (a, b) {
        return a - b
    });

    // Restaure Dom context
if (window.location.href.indexOf("reserver-un-box") != -1) {
    var provDom = '	<div class="uk-width-1-1"><div id="selectContainer">' + domSelect + '</div></div><div class="uk-width-1-1"><div id="boxListContainer">' + domContent + '</div></div>';
} else {
    var provDom = '	<div class="uk-width-1-1"><div id="selectContainer">' + domSelect;
}
    mboxBooking.updateDomElement(provDom, idBoxSelectContainer);
    document.getElementById(idBoxSelectContainer).classList.remove('uk-text-center');
    var option;
    // inject values
    for (var i = 0; i < sizes.length; i++) {
        if (sizes[i] != 0) {
            option = document.createElement("option");
            if (sizes[i] == 1)
            {
                option.text = 'Consigne (1m³)';
            }
            else
            {
                option.text = sizes[i] + 'm²';
            }
            option.value = sizes[i];
            document.getElementById(idSizeSelector).add(option, i);
        }
        else{
            console.log('Attention : objet '+i+' est à 0m²' );
            if( sizes.length == 1){
                 console.log('Aucun objet à plus de 0m² - Saisissez en 1 dans Buxida' );
            }
        }
    }
    document.getElementById(idSizeSelector).addEventListener('change', getData);
    if(mboxBooking.findGetParameter('s') !== null){
       size =  parseInt(mboxBooking.findGetParameter('s'));
    }
    mboxBooking.setSize(size);
    // Generate Basics results with default param
    if (mboxBooking.updateBoxList !== undefined) {
        mboxBooking.updateBoxList(document.getElementById(idSizeSelector).value);
    }


    // Add triggers for reactivity


    domSizeSelect = document.getElementById(idSizeSelector);
    // Listen select
    domSizeSelect.onchange = function () {
        if (mboxBooking.updateBoxList !== undefined) {
            mboxBooking.updateBoxList(this.value);
        }
    }
}
/**
 *  Défini la valeur par défaut du sélécteur contextuellement à la valeur de get
 *
 * @param {int} size
 */
mboxBooking.setSize = function (size) {
    var domSizeSelected = document.getElementById('surfaceSelect');
    var options = domSizeSelected.options;
    var valid = false;
    var id;
    for (var i = 0; i < options.length; i++) {
        if (options[i].value == size) {
            valid = true;
            id = i;
        }
    }
    if (valid == true) {
        domSizeSelected.options[id].selected = 'selected';
        domSizeSelected.value = size;
    } else {
        function closest(num, arr) {
            if(arr[0] == null){
                console.log('Il n\'y a aucun objet à comparer - Verifiez votre configuration Buxida')
            }
            else{
                var curr = arr[0].value;
                var currId = arr[0].index;
                var diff = Math.abs(num - curr);
                for (var val = 0; val < arr.length; val++) {
                    var newdiff = Math.abs(num - arr[val].value);
                    if (newdiff < diff) {
                        diff = newdiff;
                        curr = arr[val].value;
                        currId = arr[val].index;
                    }
            }
            return [curr, currId];
            }
        }
        // get nearest value
        var valuee = closest(size, options);
        domSizeSelected.value = valuee[0];
        domSizeSelected.options[valuee[1]].selected = 'selected';
    }
}
/**
 * Génère une liste d'un resultat
 *
 * @param {object} object
 * @returns
 */
mboxBooking.generateBoxDomListEl = function (object) {
    return '<div class="uk-card uk-padding uk-margin-bottom uk-grid-collapse" uk-grid><div class="uk-width-2-5@m"><p class="uk-h4 uk-margin-remove">' + object.L + ' </p></div><div class="uk-width-3-5@m"><p class="uk-h5 uk-margin-remove uk-align-right"><a href="#box-' + object.UI + '" uk-toggle><span class="uk-visible@m uk-badge uk-badge-primary uk-padding-small uk-margin-right">' + object.NBD + ' disponible(s)</span><span style="color: #1A2844; " uk-icon="icon: info"></span></a><input style="opacity: 0" data-selected=\'{"id": "' + object.L + '" ,"surface":' + object.M2 + '}\' class="uk-radio uk-margin-small-top" type="radio" name="box"></p></div></div>';
    
    //return '<div class="uk-card uk-padding uk-margin-bottom uk-grid-collapse" uk-grid><div class="uk-width-2-5@m"><p class="uk-h4 uk-margin-remove">' + object.L + ' </p></div><div class="uk-width-3-5@m"><p class="uk-h5 uk-margin-remove uk-align-right"><a href="#box-' + object.UI + '" uk-toggle><span class="uk-visible@m uk-badge uk-badge-primary uk-padding-small uk-margin-right">' + object.NBD + ' disponible(s)</span><span style="color: #1A2844; " uk-icon="icon: info"></span></a> ' + object.T + ' € / mois <input data-selected=\'{"id": "' + object.L + '" ,"price":' + object.T + ',"surface":' + object.M2 + '}\' class="uk-radio uk-margin-small-top" type="radio" name="box"></p></div></div>';
}
/**
 * Génère la Modale d'un resultat
 *
 * @param {object} object
 * @returns
 */
mboxBooking.generateBoxDomListModal = function (object) {
    return '<div id="box-' + object.UI + '" uk-modal><div class="uk-modal-dialog uk-margin-auto-vertical"> <button class="uk-modal-close-default" type="button" uk-close></button><div class="uk-modal-header"> <h2 class="uk-modal-title">' + object.L + '</h2></div> <div class="uk-modal-body">  <p>Ce box dispose d\'un éclairage au plafond et d\'une bonne aération.</p><p> Ses dimensions au sol sont de ' + object.M2 + 'm². Il dispose d\'une hauteur de 2.60m pour un volume total de ' + (2.6*object.M2) + 'm³.</p><br><span class="uk-badge uk-badge-primary uk-padding-small">' + object.NBD + ' box sur ' + object.NB + ' disponible(s)</span> </div> <div class="uk-modal-footer uk-text-right"></div> </div></div>';
}
/**
 * Mise a jour des informations contexutelles flottantes
 *
 * @param {object} object
 */
mboxBooking.updateBoxTemplate = function (object) {
    if (object !== false) {
        // collect data from dom
        var selectedBoxData = JSON.parse(object.dataset.selected);
        // updateing front
        document.getElementById('surface').innerHTML = selectedBoxData.surface;
        document.getElementById('boxId').innerHTML = selectedBoxData.id;
        //document.getElementById('price').innerHTML = selectedBoxData.price;
    } else {
        document.getElementById('surface').innerHTML = ''
        document.getElementById('boxId').innerHTML = 'Aucune sélection'
        //document.getElementById('price').innerHTML = ''
    }
}
/**
 * Modification et génération du contenu de la liste de resultats
 *
 * @param {int} surface
 */

 if (window.location.href.indexOf("reserver-un-box") != -1) {
    mboxBooking.updateBoxList = function (surface) {
        var provDom;
        var unvailable = 0;
        var available = 0;
        document.getElementById('boxListContainer').innerHTML = '<div class="uk-margin-top" uk-spinner="ratio: 1"></div>';
        // Parcours l'objet en session storage et affiche les paramètres de l'objet et ceux disponibles;
        var data = JSON.parse(distantBox);
        if (data.length > 0) {
            for (var i = 0; i < data.length; i++) {
                if (data[i].M2 == surface) {
                    unvailable += data[i].NBD;
                    provDom = '<p class="uk-text uk-margin-top"><span style="color: #333">' + data[i].NBD + ' box disponible(s)</span></p>'
                    if (data[i].NBD > 0) {
                        provDom += mboxBooking.generateBoxDomListEl(data[i]);
                        provDom += mboxBooking.generateBoxDomListModal(data[i]);
                        available++;
                    }
                }
            }
            if (unvailable == 0) {
                provDom += '<div class="uk-card uk-padding uk-margin-bottom uk-flex-between uk-flex"><div><p class="uk-h5 uk-margin-remove">Aucun box disponible pour cette taille </p></div><div></div></div>';
            }
            provDom += '<hr>'
        } else {
            provDom = '<p class="uk-text uk-margin-top"><span style="color: #333">Aucun box disponible. Contactez nous au 01 47 21 58 97</span></p>'

        }

        document.getElementById('boxListContainer').innerHTML = provDom;

        // select the first
        var radioButtons = document.getElementsByName('box');
        if (radioButtons.length > 0) {
            for (var i = 0; i < radioButtons.length; i++) {

                radioButtons[i].onchange = function () {
                    mboxBooking.updateBoxTemplate(this);
                }
            }
            radioButtons[0].checked = "true";
            radioButtons[0].onchange();
        }

    }
}
/**
 * Initialisation du module de la page
 *
 */
mboxBooking.initializePage = function () {
    // Initalization of value of selector
    domSelect = document.getElementById('selectContainer').innerHTML;
    //domContent = document.getElementById('boxListContainer').innerHTML;
    mboxBooking.updateDomElement('<div uk-spinner="ratio: 1"></div>', idBoxSelectContainer);
    for (var i = 0; i < inputToLisener.length; i++) {
        domInput = document.getElementById(inputToLisener[i]);
    //    if (domInput.value !== '') {
    //        mboxBooking.updateDomElement(domInput.value, domInput.dataset.target);
    //    }
    }
    // Init asyncly DOM how contain dynamics results 
    mboxBooking.getBoxDataAsync(mboxBooking.initList);

    // Lisen Inputs syncly
    var domInput;
    for (var i = 0; i < inputToLisener.length; i++) {
        domInput = document.getElementById(inputToLisener[i]);
        if (domInput) {
            domInput.oninput = function () {
                mboxBooking.updateDomElement(this.value, this.dataset.target);
                if (mboxBooking.validateInputs(this)) {
                    document.getElementById('submitForm').disabled = false;
                    document.getElementById('submitForm').addEventListener("click", function(){  mboxBooking.sendMail(mboxBooking.getDataDom());});
                    document.getElementById('submitFormText').innerHTML = "Une fois l'envoi de votre demande, vous recevrez une confirmation par email.<br> Vous serez ensuite pris en charge par nos équipes pour procéder à la réservation définitive du box";
                } else {
                    document.getElementById('submitForm').disabled = true;
                    document.getElementById('submitForm').removeEventListener("click", function(){  mboxBooking.sendMail(mboxBooking.getDataDom());});
                    document.getElementById('submitFormText').innerHTML = "Saisissez correctement toutes les informations réserver votre box";
                };
            };
        }
    }

}
mboxBooking.initializePage();


console.log('1000box Booking Ready - By Transacts'); 
</script>
            <script>

var requireData = document.querySelector('.requireData')
var ls = localStorage
var item = ls.getItem('surfaceSelected')

function getData() {
    var selectData = document.querySelector('.surfaceData')
    var ls = localStorage
    ls.setItem('surfaceSelected', selectData.value)
}

(function() {

    if (requireData) {
        requireData.value = item

        mboxBooking.updateBoxList(item)
    }

})()

</script>
            <script src="/theme/box/js/uikit.min.js?e6f4e4830a"></script>
            <script src="/theme/box/js/uikit-icons.min.js?9710d40a4b"></script>
            </html>