{"version":3,"sources":["reviewStars_A.js","pdPhotoGallery_A.js","pdRecipeSelector_A.js","pdStickyBar_A.js","getTheLookDetail_A.js","getTheLookGallery_A.js","pdAjaxButtons_A.js","contactForm_A.js","pdAvailabilityNotification_A.js","pdBundleItemVersionSelector_A.js","pdDeliveryAvailability_A.js","deliveryPointWidget_A.js","pdQuantitySelector_A.js","pdVersionQuantitySelector.js","pdVersionSelector_A.js","pdVersionSelector_C.js","pdVersionSelector_D.js","popupWidthFixer_A.js","pdWarehouseSearch_A.js","pdReview_A.js","pdReviewForm_A.js","pdReviewBox_A.js","orderChangeForm_Α.js","cartSearchBox_A.js","productDetails_B.js","pdTabPanel_A.js","pdLogin_A.js","categoryDetailedBox_A.js","categoryListMain_A.js","categoryListMenu_A.js","plPageMode_A.js"],"names":["initStars","isRateMode","ratingSummary","$wrapper","$stars","find","$starsList","closest","$rateSpan","$","dataMember","data","$rateInput","parent","$clearBtn","click","removeClass","text","length","val","keyup","hide","mouseenter","addClass","this","nextAll","children","prevAll","prev","mouseleave","fillRatedStars","show","isSelection","activeStars","Math","floor","starsDecimal","round","i","eq","css","deleteSpinnerInstances","spinners","spritespin","copyToClipboard","copyText","document","getElementById","select","setSelectionRange","execCommand","numberToString2","value","addCurrency","clearZeros","returnValue","currency","fractional","LhApp","Context","Currency","Symbol","doShowSymbol","DoShowSymbol","symbolShownFirst","SymbolShownFirst","decimalSeperator","DecimalSeparator","thousandSeperator","numberOfDigits","NumberOfDigits","parseFloat","toFixed","replace","trim","split","RegExp","test","getShortenedUrlAuth","ajax","type","dataType","async","contentType","url","getShortenedUrl","when","done","response","requestData","token","JSON","parse","message","access_token","stringify","success","shortUrl","shortFormat","confUrl","window","location","href","attr","generateQr","error","html","remove","$qrWrapper","QRCode","width","height","InitStickyBar","$page","$fixedProduct","$offsetContainer","isTouch","animate","scrollTop","offset","top","scroll","_","throttle","resize","debounce","hasClass","trigger","siblings","Vendd","Scripts","load","each","wrapper","ratingSummaryData","$boxes","$allToCartCont","totalPrice","numOfSelected","getSKU","skuJson","color","size","first","filter","skus","sku","el","get","skuJsonHtml","$control","control","on","e","$item","qty","updateSizes","sizelist","removeAttr","selectedSku","updateProductInfo","updateQuantity","updateColors","hasSelectedValueChange","allSizes","allColors","map","obj","getColors","$colorWrapper","$option","sizeId","toString","undefined","findWhere","getSizes","$sizeWrapper","colorId","off","preventDefault","stopPropagation","$this","is","id","skuId","path","itemInfo","minQuantity","maxQuantity","quanta","enhancedInfo","list","MessageBus","publishAsync","Cart","Messages","Add","Widget","OpenWidget","CartWidget","loading","selectedColor","imgSrc","ColorDimensions","getImageColor","stringToNumber","String","SkuId","CanBuy","toLowerCase","model","Price","Availability","CurrentPrice","UnitPrice","CurrentPriceText","UnitPriceText","DeletedPrice","DeletedPriceText","AvailabilityActionId","AvailabilityName","Handlebars","prop","stockMaxValue","StockMaxValue","MinQuantity","MaxQuantity","max","min","Quanta","index","quantity","selectedValue","Value","Selected","decodeEntities","dataArray","push","MultipleAdd","$mainGallery","carouselMainOpts","slidesToShow","slidesToScroll","infinite","adaptiveHeight","draggable","prevArrow","nextArrow","dots","slick","initCarousel","$fancyLinks","fancybox","protect","infobar","$slideWrapper","initFancybox","subscribe","Product","BindControl","envelope","$context","context","state","Controller","getState","parentId","selectedId","selectedColorId","extraAttributes","bundleItems","recipeItems","comboItems","$attr","code","vendd","getParentOrSelfVendd","MultipleWishlistsEnabled","Function","hideAllProductWishlists","product","showProductWishlists","Wishlist","wishlistModel","localStorage","getItem","wishlistItemId","Items","item","VariantId","Id","Remove","Recipe","GetModel","ProductCompare","ProductCompareWidget","Href","open","maxWidth","fitToView","autoSize","closeClick","openEffect","closeEffect","padding","beforeShow","contents","$box","$qty","$tooltip","setTimeout","parseInt","$productWrapper","$availabilityForm","$notifyBtn","target","has","form","formData","filedata","$form","firstName","lastName","email","newsletter","subject","reCaptchaCode","contactFileUpload","captchaWidgetId","$captchaElement","$captchaContainer","captchaEnabled","fileUploadEnabled","subjectEnabled","initRecaptcha","sitekey","grecaptcha","render","callback","recaptchaCallback","validateRecaptcha","resetRecaptcha","reset","removeRecaptcha","res","validateFileUpload","files","onSuccess","fbPixelTracker","fbPixelCanTrack","Properties","FacebookPixelId","fbq","onFailure","checkConsents","checkboxes","chkbx","source","approved","ConsentsManager","insertConsents","submit","Contact","Submit","cf","clearUploadErros","submitSelector","val1","validate","val2","val3","IsConsentsEnabled","setField","field","fieldName","validationOptions","required","isEmail","consentType","checkboxRequired","validationEngine","touch","fileupload","autoUpload","replaceFileInput","fileInput","multiple","singleFileUploads","fail","add","maxFileSize","fileTypes","acceptFileTypes","originalFiles","exec","name","event","empty","SubmitSuccess","SubmitFailure","Plugins","RecaptcaLoaded","Consents","InsertConsents","$formButton","sender","Notify","languageId","rnf","keyCode","unsubscribe","NotifySuccess","NotifyFailure","doSetBundleItems","parentProductId","productId","SetBundleItems","$bundleItemList","$controls","$versionSelector","$content","setDeliveryPointService","postalCode","variantArray","variant","Quantity","GetDeliveryAvailability","hideForm","GetDeliveryAvailabilitySuccess","availabilityId","availability","DeliveryAvailabilities","Message","MaxDays","MinDays","append","Deferred","deliveryPointId","statusCode","200","resolve","404","reject","console","log","500","setDeliveryPoint","setDeliveryPointResolve","Cookies","set","expires","publish","DeliveryPoint","close","GetAvailableWarehousesFailure","showLoader","hideLoader","update","ResetStore","GetModelSuccess","deliveryPostalCode","HasDeliveryPoint","extend","HasPostalCode","PostalCode","GetModelFailed","ResetStoreSuccess","ResetDeliveryPoint","$colorItems","$photoItems","$colorThumbs","$photoThumbs","cleanImage","stickyAnchors","$container","$anchor","$stickyBarHeight","$thisAnchor","$thumbIndex","$sectionToScroll","scrollToGallery","$contentContainer","offsetArray","firstScroll","content","initGalleryAnchors","$slickInitialized","destroyCarousel","manipulateCarousel","$cz","$fb","czOpts","transparentImage","useWrapper","adjustY","adjustX","position","showTitle","CloudZoom","initCZ","mobile","clickSlide","current","initFB","$spinner","spinnerSlider","spinnerData","sense","sizeMode","responsive","plugins","onInit","ionRangeSlider","skin","hide_min_max","hide_from_to","onChange","updateFrame","from","initSpinner","youTubeInitializedPd","pauseVideo","pausePdVideo","$thumbs","$thumbsCont","numOfSlides","carouselThumbsOpts","currentSlide","$colors","$photos","colorSrc","src","founded","elem","$elem","configuratorOptions","getElement","element","$_wrapper","config","isSubRecipe","$items","getGlobalElement","_wrapper","$recipe_container","jQuery","recipeController","options","literals","setOptions","_defaultConfiguration","$ParentWrapper","parents","ParentWrapper","isComboPage","isConfigurationPage","PartialHtml","isFancyboxPopup","ParentRecipeId","RecipeId","ParentRecipeItemId","RecipeItemId","HasAuthorizedPage","HasAuthorizedSave","LoadFromDatabase","SaveToDatabase","ShareConfiguration","PdfExport","SendToOneDealer","HasSummaryPage","HasQuantitySelectors","SaveToLocalStorage","OnLoadPageLoadFromLocalStorage","Attributes","IsPostalCodeMandatory","IsAuthorizedPage","setLiterals","UnAuthorizedText","UnAuthorizedLoginText1","UnAuthorizedLoginText2","InvalidRegistrationData","UnAuthorizedButtonText1","UnAuthorizedButtonText2","TooltipPrevStep","Standard","Optional","NextStep","ShowSummary","SubmitRegistration","Summary","BackToConfiguration","SummaryGeneralErrors","SummaryGeneralErrorsDescription","OutdatedEquipment","StandardEquipment","OptionalEquipment","OptionalEquipmentTotalPrice","PricesText","StandardPriceText","OptionalPriceText","ShippingPriceText","TotalPriceText","AvailableText","ShareText","DownloadPdfText","SaveForLaterText","PricesVatNote","recipeInitialPrice","initModel","shippingModel","checkboxChange","checked","ifChecked","ifUnchecked","result","ingredientIdFrom","ingredientId","dataset","ingredientid","$ingredientIdFrom","RecipeLibrary","AddIngredient","RemoveIngredient","ChangeIngredient","recipe","ingredient","Ingredients","IngredientId","SubRecipeId","subRecipeWrapper","setCheckedItems","setEnabledItems","status","ErrorCode","showErrorMessage","checkChanges","Literals","Categories","category","Groups","indexInGroupArray","group","indexInItemArray","Description","Name","ParentImageURL","bind","bindEvents","initIcheck","initIngredientsToggle","initNextStep","initTooltips","$infoContainer","$errorHtml","vertical","momentum","storeLocator","StoreLocator","Partner","CanChangeDealer","openPostCodeSelector","Validate","showSummary","scroll_to_class","GlobalId","HashCode","$successHtml","btnTpl","smallBtn","afterClose","finally","Force","FriendlyName","vin","Vin","PartnerId","partnerId","saveData","isAuthenticated","$unauthorized","$link","UpdateQueryString","Url","Page","Login","encodeURIComponent","$fancyprompt","fancyPrompt","friendlyName","generatePDF","IsShare","addthis","toolbox","ResetRecipe","ClearLocalStorage","delay","queue","dequeue","oneDealerResponse","GetOneDealerData","postMessage","$element","initVal","afterShow","change","focus","call","$el","$button","coverPdf","user","fullname","FirstName","LastName","IsAuthenticated","today","Date","dd","getDate","mm","getMonth","yyyy","getFullYear","getUserData","externalLink","externalLinkFirst","filename","filenamehassuffixdatetime","pagesize","pageorientation","parameters","hasprintcss","getHtmlBodyForPdf","headerhtml","getHtmlHeaderForPdf","footerhtml","getHtmlFooterForPdf","HeaderHeight","FooterHeight","margin","bottom","left","right","pdf","blob","b64toBlob","FileContents","URL","createObjectURL","navigator","msSaveOrOpenBlob","Filename","a","createElement","style","visibility","body","appendChild","fileURL","download","removeChild","complete","img","$img","clone","$pdfHeader","startsWith","$pdfFooter","$bodyclone","scaleWidth","scaleHeight","scale","toggleClass","b64Data","sliceSize","byteCharacters","atob","byteArrays","slice","byteNumbers","Array","charCodeAt","byteArray","Uint8Array","Blob","save","htmlData","Body","Header","Footer","defaultConfiguration","HtmlData","GenerateGlobalId","always","loadData","_config","callbacks","ShippingCost","calculatePrice","calculateWeight","SetCallbacks","GetShippingCost","Initialized","LoadFromGlobalId","FindPartner","LoadFromLocalRecipeItems","RecipeItems","assignConfigurationToUser","AssignConfigurationToUser","hideAllErrors","incompatibles","missingPrerequisites","missingAnyOfPrerequisites","$ingredient","errorHtml","template","ManufacturerProductCode","join","missingAnyOfPrerequisitesHtml","items","initScrollToIngredient","showGeneralErrorMessage","errorItem","$templateErrors","errorCode","ErrorCodes","relatedItemsHtml","$templateClone","$group","groupIndex","ExtraQuantity","CategoryName","Incompatibles","MissingPrerequisites","$parent","appendTo","localStorageHashCode","GetLocalStorageRecipeItemsHashCode","hasChanges","SaveRecipeItemsToLocal","GetCheckedRecipeItems","$template","CheckedRecipeItems","ProductItemId","IsStandard","Category","ImageUrl","price","TotalPrice","prependTo","GroupId","CheckedItemsStandardTotal","CheckedItemsOptionalTotal","parentWrapper","checkIfLoggedIn","GetEnabledItems","EnabledItems","MissingAnyOfPrerequisites","DisableItems","Errors","GroupErrors","prices","GetPrices","InitialPrice","StandardTotalPrice","OptionalTotalPrice","shippingPrice","shippingPriceText","optionalTotalPriceText","totalPriceText","basicPrice","basicPriceText","weightObj","GetWeight","remainingWeight","InitialWeight","OptionalTotalWeight","initiallizeProductRecipe","MaxFreeQuantity","MaxReplaceQuantity","MaxQuantityText","step","$wrapperTooltips","intiTooltip","$selectedWrapper","$toolbox","not","$tooltipBox","toggle","groupId","goToItem","$category","$nextCategory","next","slideToggle","loadDataError","IsAuthorized","loadDataSuccess","CanEdit","SetRecipeItems","SavedGlobalIdToLocal","SaveGlobalIdToLocal","IsValid","onValidateError","subrecipe_data","onValidateSuccess","$firstError","IngredientsErrors","$input","IngredientsWarnings","ingredientsOutdatedErrors","includes","ingredientsGeneralErrors","$templateOutdated","initialize","pasrseInt","getQueryStringValueByName","getUserViewModelSuccess","LoginPage","encodeURI","globalId","doSave","hasPermissions","_ingredients","_model","SubRecipe","attributes","recipeId","hasCategoryData","isValidConfigurationPage","InitRecipe","User","GetUserViewModelSuccess","GetShippingModelSuccess","ApplyShippingDataSuccess","ShippingCostText","bindRecipeController","intRegex","decRegex","$field","$first","unitType","minQty","maxQty","SetQuantity","sSelect","skuQuanta","Helpers","isInteger","SetQuanta","fn","pdControlDisabled","toggleValue","pdQuantitySelector","useFloats","isFloat","$decr","$incr","$select","clipNumber","parseNumber","roundNumber","updateValue","isReadOnly","newValue","formatNumber","setValue","oldValue","getValue","minValue","maxValue","SetSelected","visitorInitiated","reInitLazyProductLists","tableSku","$tableSku","updateQuantitiesControl","isNaN","$addToCartBtn","total","$price","$targetPrice","numberToString","init","j","productBox","$productBox","$quantitySelector","$unitPriceContainer","$unitPriceValue","$totalPriceContainer","$totalPriceValue","$addToCartButton","unitPriceLiteral","unitPriceValue","NumberFormatter","parsePrice","isEnabled","selectedQuantity","unitPrice","updateQuantitySelector","updateUnitPrice","updateTotalPrice","updateButtonState","addToCart","valueLiteral","formatPrice","AddCompleted","Failed","$productGroups","$productBoxes","$totalQuantityContainer","$totalQuantityValue","productGroup","groupValue","subtotalPrice","totalQuantity","subtotalQuantity","updateTotalQuantity","formatInt","$productGroup","$subtotalPriceContainer","$subtotalPriceValue","$subtotalQuantityContainer","$subtotalQuantityValue","itemValue","k","updateSubtotalPrice","updateSubtotalQuantity","MultipleAddSuccess","HasGoogleMapsInitialized","google","maps","EnableTrackingLocation","myLocation","latitude","longitude","skuCode","ignoreAvailability","lazyloadAvailabilities","geoLocationWithZipCode","topAvailableWarehouse","groupBy","latestLocation","productAddedService","setStoreService","selectedWarehouse","searchTerm","maxDistance","hasGeolocation","countryCode","indexOf","pair","GetAvailableWarehouses","geolocation","getCurrentPosition","coords","watchPosition","enableHighAccuracy","maximumAge","bindWarehouses","WarehousesGrouped","Store","CalculateDistances","bindAvailabilities","GetPickUpAvailability","GetPickUpAvailabilitySuccess","pickUpAvailabilities","warehouse","PickupAvailabilities","Shops","x","Days","AvailabilityActionName","warehousesModel","evaluateDistances","distanceData","ErrorCalculatingDistances","DistanceMeasured","warehousesGroups","sortBy","array","Distance","warehouses","hasWareHouses","TotalFindInRange","Show","IsWithinRange","AvailabilityCustomText","Text","AvailabilityId","HasWareHouses","Warehouses","isDisabled","NoWarehouseFound","getText","mCustomScrollbar","scrollbarPosition","scrollInertia","theme","mouseWheel","tab","selectedWarehouseAvailablity","cartRedirect","productAddedResponse","setStoreResponse","ProductAdded","ContentType","getServiceEndpoint","arguments","ex","setStore","GetAvailableWarehousesSuccess","CalculateDistancesSuccess","isAjax","sessionIsAuthenticated","$orderByLtestLink","$orderByHelpfullnessLink","search","setParameterValueOnUrl","$productReviewForm","$openFormLink","$closeFormLink","$loginPopup","$loginLink","$registerLink","$closeBtn","$loginWidget","redirectUrl","setParameterValue","Register","onSuccessFn","request","$productRerviewControl","Error","isLoading","Review","title","description","rating","ReviewSuccess","responseData","Success","Code","Data","time","Time","parseJSON","ReviewFailure","responseText","reviewId","currentUserVotedForHelpfullness","$btnVote","$btnVoteYes","$voteYesInputWrapper","$btnVoteNo","$voteNoInputWrapper","$totalYesVotes","$totalNoVotes","$userVotedMessage","$voteError","ReviewVote","ReviewVoteSuccess","vote","noVoteSuccess","ReviewVoteFailure","$orderItems","$submitButton","cash","$orderItem","oid","$checkboxAction","$changeOrderForms","replaceValOpts","replaceWith","returnReason","refundValOpts","refundReason","validateInit","destroy","targetedForm","textareaName","omit","defaultOpts","action","note","replaceProductItemId","bankName","bankHolder","bankIban","orderItem","resultData","Service","$list","resultsPerPage","pdPageNum","isProductSelected","isLookupCompleted","maxResults","$searchInput","$qtyInput","$increaseQtyInput","$decreaseQtyInput","minLength","isElastic","HasInfiniteScroll","infiniteScrollIsLoading","enableInput","enable","enableInputs","$html","$newProducts","$products","last","insertAfter","MoreProducts","clear","checkSearchTerm","setSelectedProduct","variantId","availabilityActionId","stock","Search","GetProductSuggestiveElasticResults","GetProductSuggestiveResults","tempQuantity","enableSubmitButton","$viewItem","innerHeight","scrollHeight","innerHeight_v","outerHeight","enableIncreaseQtyInput","enableDecreaseQtyInput","GetProductSuggestiveResultsFailed","GetProductSuggestiveResultsSuccess","ProductsCount","PageNumber","GetProductSuggestiveResultsElasticFailed","GetProductSuggestiveResultsElasticSuccess","IsElastic","HasLazyLoadPrices","hits","itemIds","pluck","fetchPrices","fetchAvailabilities","fetchStock","ScrollList","GetClientProductListData","GetClientProductListDataSuccess","modelWithPrices","selectedProduct","Products","_source","Prices","Changed","mouseup","compareModel","lazyLoadSender","$bundleItems","isDynamic","bundleProductId","initState","serviceConfiguration","b2bEnabled","scrollOffset","$merchantSelector","Merchant","merchantPopUp","merchantId","formatPrices","allowOnlyNumbersInput","cartIds","MultipleRemove","MultipleRemoveSuccess","toastr","SuccessMessage","timeOut","showDuration","hideDuration","initAlreadyInCart","sidebar","StickySidebar","topSpacing","bottomSpacing","containerSelector","innerWrapperSelector","resizeSensor","minWidth","setInterval","updateSticky","initStickyColumn","SelectedProductId","AlreadyInWishlist","ParentProductId","AlreadyInCompare","canonicalBreadcrumb","Dimensions","colorSelector","sizeSelector","colorIsSelected","sizeIsSelected","Versions","ver","ColorIsSelected","Buttons","CartEnabled","quantitySelector","quantityElement","Quantities","HasAddToCart","HasAddToProductCompare","HasAddToWishlist","AvailabilityNoticationForm","Visible","Disabled","IsPopUp","PathChecksum","SelectedProductColorId","backToList","uspsHtml","promoMenu","replacedBy","inCartCounter","prepend","baseTpl","onYouTubeIframeAPIReady","updatePrices","$pricesCont","ShowPriceWithoutVat","UnitPriceWithoutVat","DeletedPriceWithoutVat","TotalPointsGain","quantityInCart","idsInCart","inCart","ProductId","productInWishlist","$wishlistButton","GetWidgetModelSuccess","productInCompare","$compareButton","deliveryPointModel","lazyLoadAvailabilities","funcCookiesEnabled","cookiesStatus","functionalityCookies","LastViewedProducts","LastViewedProductsIsActive","expirationDays","LastViewedProductsExpirationDays","productNumber","LastViewedProductsNumber","Item","products","productsArray","unshift","cookieValue","expireDate","setTime","getTime","secure","Request","IsSecure","samesite","visible","$stickyAnchorsHeight","scrollTopAmount","$tabIndex","scrollToSection","initTabAnchors","initTabsAccordion","idx","anchorOffset","extraOffset","scrollHorizontalTabs","$offsetTop","$buttons","openLogin","scrollToTop","isComplete","hiddenCont","iconOpen","iconClose","accordion","initListToggle","ww","masonryState","$masonryTarget","checkToInit","masonry","itemSelector","columnWidth","gutter","removeData","catMenu","catMenuHeight","spacer","lastScrollTop","delta","stickyNavTop","st","abs","stickyCatMenu","anchor","plMode","$pageModeBtn"],"mappings":"AAqBA,SAAAA,UAAAC,WAAAC,cAAAC,UAEA,IA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uwC,OAAAtwC,SAAAC,IAAA,IACA,UClHAS,MAAAC,QAAAC,KAAA,WACA,IAAAhI,SAAAM,EAAA,0BAEA,KAAAN,SAAAe,OAAA,GAAA,CAGA,IAAA42C,OAAA97B,QAAA5S,IAAA,UAEA,QAAA0uC,QACAr3C,EAAA,iBAAAN,UAAAa,YAAA,YACAP,EAAA,sBAAAN,UAAAoB,SAAA,YACAd,EAAA,wCAAAO,YAAA,uBAAAO,SAAA,sBACA,QAAAu2C,SACAr3C,EAAA,iBAAAN,UAAAa,YAAA,YACAP,EAAA,sBAAAN,UAAAoB,SAAA,YACAd,EAAA,wCAAAO,YAAA,qBAAAO,SAAA,wBAGAd,EAAA,0BAAA2H,KAAA,SAAA9F,EAAA+F,SACA,IAAAlI,SAAAM,EAAA4H,SACA0vC,aAAAt3C,EAAA,iBAAAN,UAEAA,SAAAqJ,GAAA,QAAA,iBAAA,SAAAC,GACAsuC,aAAA/2C,YAAA,YACAP,EAAAe,MAAAD,SAAA,YACAd,EAAAe,MAAAsG,SAAA,SACArH,EAAA,wCAAAO,YAAA,uBAAAO,SAAA,qBACAya,QAAAC,IAAA,SAAA,OAAA,CAAAC,QAAA,GAAAm5B,SAAA,SACA50C,EAAAe,MAAAsG,SAAA,UACArH,EAAA,wCAAAO,YAAA,qBAAAO,SAAA,uBACAya,QAAAC,IAAA,SAAA,OAAA,CAAAC,QAAA,GAAAm5B,SAAA","file":"scripts-products.js","sourcesContent":["Vendd.Scripts.load(function () {\n\n $('.x-control.x-review-stars[data-type=\"stars\"]').each(function (i, wrapper) {\n\n var $wrapper = $(wrapper);\n\n var isRateMode = $wrapper.data('is-rate-mode');\n var ratingSummaryData = $wrapper.data('rating-summary');\n var ratingSummary = 0.00;\n\n if (typeof ratingSummaryData === 'string') {\n ratingSummary = parseFloat(ratingSummaryData.replace(\",\", \".\"));\n } else if (typeof ratingSummaryData === 'number') {\n ratingSummary = parseFloat(ratingSummaryData);\n }\n\n initStars(isRateMode, ratingSummary, $wrapper);\n });\n});\n\n\nfunction initStars(isRateMode, ratingSummary, $wrapper) {\n\n var $stars = $wrapper.find('.star');\n var $starsList = $stars.closest('.star-list');\n var $rateSpan = $('.rate', $wrapper);\n var dataMember = $wrapper.data('member');\n\n if (isRateMode) {\n\n var $rateInput = $wrapper.parent().find('input[data-member=\"' + dataMember + '\"]');\n\n var $clearBtn = $('input[data-click=\"clear-stars\"]', $wrapper);\n\n $clearBtn.click(function () {\n $stars.removeClass('active selected');\n\n ratingSummary = 0;\n $rateSpan.text(ratingSummary);\n\n if ($rateInput.length > 0) {\n $rateInput.val('');\n $rateInput.keyup();\n }\n\n $clearBtn.hide();\n });\n\n\n $stars.mouseenter(function () {\n $stars.addClass('inactive');\n $(this).parent().nextAll().children().removeClass('active');\n $(this).parent().prevAll().children().addClass('active');\n $(this).addClass('active').prev().addClass('active');\n\n $rateSpan.text($('.star.active', $wrapper).length / 2);\n\n });\n\n $stars.mouseleave(function () {\n fillRatedStars(ratingSummary, $stars, false);\n });\n\n $stars.click(function () {\n //set clicked\n ratingSummary = $('.star.active', $wrapper).length / 2;\n\n fillRatedStars(ratingSummary, $stars, true);\n\n if ($rateInput.length > 0) {\n $rateInput.val($('.star.selected', $wrapper).length / 2);\n $rateInput.keyup();\n }\n $clearBtn.show();\n });\n\n $starsList.mouseleave(function () {\n $stars.removeClass('active inactive');\n $rateSpan.text($('.star.selected', $wrapper).length / 2);\n });\n\n } else {\n fillRatedStars(ratingSummary, $stars, true);\n }\n}\n\nfunction fillRatedStars(ratingSummary, $stars, isSelection) {\n if (isSelection) {\n $stars.removeClass('selected');\n }\n $stars.removeClass('active').addClass('inactive');\n\n var activeStars = 2 * (Math.floor(ratingSummary));\n\n var starsDecimal = Math.round((ratingSummary % 1) * 100);\n\n for (var i = 0; i < activeStars; i++) {\n $stars.eq(i).addClass('active').removeClass('inactive');\n if (isSelection) $stars.eq(i).addClass('selected');\n }\n\n if (starsDecimal == 50) {\n starsDecimal += 5;\n $stars.eq(i).css('width', starsDecimal + '%').addClass('active').removeClass('inactive');\n if (isSelection) $stars.eq(i).addClass('selected');\n }\n\n\n};","Vendd.Scripts.load(function () {\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, \"product-details-photo-gallery\", function (envelope) {\n\n var $context = envelope.message.data.context,\n $control = $('.x-product-details-photo-gallery', $context);\n\n if ($control.length < 1)\n return;\n\n if ($control.hasClass('with-slider')) {\n cleanThumbGallery();\n cleanPhotoGallery();\n initCarousel();\n } else {\n stickyAnchors();\n $(window).scroll(_.throttle(stickyAnchors, 100));\n scrollToGallery(); \n initGalleryAnchors();\n\n //init and destroy carousel\n manipulateCarousel();\n }\n \n initCZ(); \n initFB();\n initSpinner();\n pausePdVideo();\n\n function initCZ() {\n var $image = $('.js-image-container', $control);\n\n if ($image.length < 1)\n return;\n\n var $cz = $('.cloud-zoom, .cloud-zoom-gallery', $control),\n $fb = $('.pd-fancybox', $control);\n\n var czOpts = {\n transparentImage: 'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',\n useWrapper: true,\n adjustY: 0,\n adjustX: 90,\n position: 'inside',\n showTitle: false,\n };\n\n var fbOpts = {};\n\n if ($fb.length > 0) {\n $fb.fancybox(fbOpts);\n } else {\n if (!isTouch()) {\n $cz.click(function (e) {\n e.preventDefault();\n $(this).CloudZoom(czOpts);\n });\n } else {\n $cz.on('click', function (e) {\n e.preventDefault();\n /* var $slideWrapper = $('.slick-initialized');\n \n if ($slideWrapper.length > 0) {\n $('.slick-active', $slideWrapper).children('.pd-fancybox-gallery').trigger('click');\n }*/\n });\n }\n }\n }\n\n function initCarousel() {\n\n var $thumbs = $('.gallery-thumbs > ul', $control);\n var $thumbsCont = $thumbs.parent();\n var $mainGallery = $('.main-gallery > ul', $control);\n\n var numOfSlides = $('> li', $thumbs).length;\n\n if ($thumbs.length < 1)\n return;\n\n var $next = $('.nav-next', $control),\n $prev = $('.nav-prev', $control);\n\n var carouselThumbsOpts = {\n // vertical: true,\n // verticalSwiping: true,\n slidesToShow: 3,\n slidesToScroll: 1,\n infinite: false,\n prevArrow: $('.gallery-thumbs .nav-prev'),\n nextArrow: $('.gallery-thumbs .nav-next'),\n };\n\n var carouselMainOpts = {\n slidesToShow: 1,\n slidesToScroll: 1,\n infinite: false,\n adaptiveHeight: true,\n draggable: false,\n prevArrow: $('.main-gallery .nav-prev'),\n nextArrow: $('.main-gallery .nav-next'),\n dots: true\n };\n\n $mainGallery.slick(carouselMainOpts);\n\n $thumbs.slick(carouselThumbsOpts);\n\n $('li', $thumbs).eq(0).addClass('current');\n\n $thumbs.on('afterChange', function (event, slick, currentSlide) {\n if (currentSlide == 0) {\n $('.nav-prev', $thumbsCont).addClass('slick-inactive');\n $('.nav-next', $thumbsCont).removeClass('slick-inactive');\n } else if (currentSlide == numOfSlides - 1) {\n $('.nav-prev', $thumbsCont).removeClass('slick-inactive');\n $('.nav-next', $thumbsCont).addClass('slick-inactive');\n } else {\n $('.nav-prev', $thumbsCont).removeClass('slick-inactive');\n $('.nav-next', $thumbsCont).removeClass('slick-inactive');\n }\n });\n $mainGallery.on('afterChange', function (event, slick, currentSlide) {\n $('li', $thumbs).removeClass('slick-current current');\n $('li', $thumbs).eq(currentSlide).addClass('slick-current current');\n if (youTubeInitializedPd)\n pauseVideo();\n });\n\n $('.thumb-item .image-container', $thumbs).click(function () {\n var index = $(this).parent().index();\n $thumbs.slick('slickGoTo', index);\n $('li', $thumbs).removeClass('slick-current current');\n $('li', $thumbs).eq(index).addClass('slick-current current');\n $mainGallery.slick('slickGoTo', index);\n });\n $(window).trigger('resize');\n }\n\n function destroyCarousel() {\n var $thumbs = $('.gallery-thumbs > ul', $control);\n var $mainGallery = $('.main-gallery > ul', $control);\n\n if ($thumbs.hasClass('slick-initialized')) $thumbs.slick('unslick');\n if ($mainGallery.hasClass('slick-initialized')) $mainGallery.slick('unslick'); \n }\n\n function manipulateCarousel() {\n\n var $slickInitialized = $('.main-gallery > ul', $control).hasClass('slick-initialized');\n\n if (isTouch() && $(window).width() < 960) {\n if (!$slickInitialized) initCarousel();\n } else {\n destroyCarousel();\n }\n\n $(window).resize(_.debounce(function () {\n if (isTouch() && $(window).width() < 960) {\n if (!$slickInitialized) initCarousel();\n } else {\n destroyCarousel();\n }\n }, 100));\n }\n\n function initFB() {\n\n var $fancyLinks = $('.pd-fancybox-gallery', $control);\n var $mainGallery = $('.main-gallery', $control);\n\n if ($fancyLinks.length < 1) return;\n\n var fbOpts = {\n protect: true,\n infobar: true,\n mobile: {\n clickSlide: function (current, event) {\n return \"close\";\n }\n }\n };\n\n $fancyLinks.fancybox(fbOpts);\n\n $control.on('click', '.fancy-btn', function (e) {\n\n if ($control.hasClass('with-slider')) {\n var $slideWrapper = $('.slick-initialized', $mainGallery);\n if ($slideWrapper.length > 0) {\n $('.slick-active', $slideWrapper).children('.pd-fancybox-gallery').trigger('click');\n }\n } else {\n $('.gallery-item', $mainGallery).first().children('.pd-fancybox-gallery').trigger('click');\n }\n \n });\n }\n\n function initSpinner() {\n var $spinner = $('.spritespin', $control);\n\n if ($spinner.length < 1)\n return;\n\n $control.children('script').remove();\n\n $spinner.each(function (index) {\n var $this = $(this);\n\n var spinnerSlider = $(this).siblings('.spinner-slider');\n\n $this.siblings('script').remove();\n $this.spritespin({\n source: spinnerData[index],\n animate: false,\n sense: -1,\n sizeMode: 'fit',\n responsive: true,\n plugins: [\n 'progress',\n '360',\n 'drag'\n ],\n onInit: function () {\n spinnerSlider.ionRangeSlider({\n skin: \"big\",\n min: 0,\n max: spinnerData[index].length - 1,\n hide_min_max: true,\n hide_from_to: true,\n onChange: function (data) {\n $this.spritespin('api').updateFrame(data.from);\n }\n });\n },\n });\n });\n }\n\n function cleanThumbGallery() {\n var $colorThumbs, $photoThumbs;\n\n $colorThumbs = $('.color-thumb', $control);\n $photoThumbs = $('.photo-thumb', $control);\n\n cleanImage($colorThumbs, $photoThumbs);\n }\n\n function cleanPhotoGallery() {\n var $colorItems, $photoItems;\n\n $colorItems = $('.color-item', $control);\n $photoItems = $('.photo-item', $control);\n\n cleanImage($colorItems, $photoItems);\n }\n\n function cleanImage($colors, $photos) {\n $colors.each(function (index, item) {\n var $item, $thumb, colorSrc, src, founded;\n\n $item = $(item);\n colorSrc = $('img', $item).attr('src');\n founded = false;\n\n\n $photos.each(function (index, elem) {\n $elem = $(elem);\n\n src = $('img', $elem).attr('src');\n\n if (colorSrc === src) {\n $elem.closest('li').remove();\n founded = true;\n return false;\n }\n });\n\n if (founded)\n return false;\n });\n }\n\n function pausePdVideo() {\n var $videos = $('.video-thumb', $control);\n\n if ($videos.length < 1)\n return;\n\n $('.thumb-item', $control).click(function () {\n if (youTubeInitializedPd)\n pauseVideo();\n });\n }\n\n function stickyAnchors() {\n\n if ($(window).width() < 960) return;\n\n var $wrapper = $('.x-pd-gallery-thumbs');\n var $stickyBarHeight = $('.header-region').height();\n\n if ($(window).scrollTop() < $stickyBarHeight) {\n $wrapper.removeClass('sticky');\n } else {\n $wrapper.addClass('sticky');\n }\n }\n\n function scrollToGallery() {\n\n if ($(window).width() < 960) return;\n\n var $container = $('.gallery-thumbs', $control);\n var $anchor = $('.thumb-item', $container);\n var $stickyBarHeight = $('.sticky-header-region').height();\n\n $anchor.click(function () {\n var $thisAnchor = $(this);\n var $thumbIndex = $thisAnchor.index();\n var $sectionToScroll = $('.gallery-item:eq(' + $thumbIndex + ')');\n\n $('html, body').animate({ scrollTop: $sectionToScroll.offset().top - $stickyBarHeight }, 400); \n });\n\n }\n\n function initGalleryAnchors() {\n\n if ($(window).width() < 960) return;\n\n var $container = $('.gallery-thumbs', $control);\n var $anchor = $('.thumb-item', $container);\n var $contentContainer = $('.main-gallery', $control);\n var $content = $('.gallery-item', $contentContainer);\n var $stickyBarHeight = $('.sticky-header-region').height();\n var offsetArray = [];\n var isLastElement = false;\n var firstScroll = true; \n\n //set first item active\n $anchor.first().addClass('current');\n\n //unbind scroll using specific event name\n $(window).off(\"scroll.event\");\n //bind scroll using specific event name\n $(window).on('scroll.event', function () {\n\n if (firstScroll) {\n //Add offsets to an Array\n _.each($content, function (content, index) {\n offsetArray.push($(content).offset().top - ($stickyBarHeight + 1));\n });\n }\n\n //Enable every anchor when scroll is in appropriate height\n _.each(offsetArray, function (offset, index) {\n\n if (index == offsetArray.length - 1) {\n isLastElement = true;\n } else {\n isLastElement = false;\n }\n\n if (isLastElement) {\n if ($(window).scrollTop() >= offsetArray[index]) {\n $anchor.removeClass('current');\n $('li.thumb-item:eq(' + index + ')').addClass('current');\n }\n } else {\n if ($(window).scrollTop() >= offsetArray[index] && $(window).scrollTop() < offsetArray[index + 1]) {\n $anchor.removeClass('current');\n $('li.thumb-item:eq(' + index + ')').addClass('current');\n }\n }\n });\n\n firstScroll = false;\n });\n \n } \n });\n\n});\n\nfunction deleteSpinnerInstances() {\n var spinners = $(\".x-product-details .spritespin\");\n\n if (spinners.length < 1)\n return;\n\n spinners.spritespin(\"destroy\");\n}\n","Vendd.Scripts.load(function () {\n\n var currentRecipeItems = [];\n\n var configuratorOptions = {};\n /**\n * HasAuthorizedPage if true, user must be logged in to see configurator or uri must have valid global identifier (GlobalId)\n * LoadFromDatabase if true, then configurator can load the product recipe item list from database with a valid global identifier\n * SaveToDatabase if true, then configurator can save the product recipe item list to database and generate a global identifier\n * HasSummaryPage if configurator has a summary page of standard items, optional items and prices\n * HasQuantitySelectors if product recipe items have quantity selector (true) or have just checked buttons (false)\n * SaveToLocalStorage if true, then on changing the recipe item list, this list will be save to local storage\n * OnLoadPageLoadFromLocalStorage if true, then on loading the configurator, the recipe item list will be load from local storage\n * \n * */\n\n /**\n * ----------------------\n * --PIZZA HUT OPTIONS---\n * ----------------------\n options.HasAuthorizedPage = false;\n options.LoadFromDatabase = false;\n options.SaveToDatabase = false;\n options.HasSummaryPage = false;\n options.HasQuantitySelectors = true;\n options.SaveToLocalStorage = false;\n options.OnLoadPageLoadFromLocalStorage = false;\n */\n\n /**\n * ----------------------\n * -----BJT OPTIONS------\n * ----------------------\n options.HasAuthorizedPage = true;\n options.LoadFromDatabase = true;\n options.SaveToDatabase = true;\n options.HasSummaryPage = true;\n options.HasQuantitySelectors = false;\n options.OnLoadPageLoadFromLocalStorage = false;\n */\n\n (function ($) {\n $.getElement = function (element, $_wrapper) {\n if (!$_wrapper) return $(\"\");\n var _wrapper = $_wrapper.get(0);\n var $items;\n if (_wrapper.config.isSubRecipe) {\n $items = $(element, $_wrapper);\n } else {\n $items = $(\"\");\n $('.x-recipe-ingredients ' + element, $_wrapper).each(function (i, el) {\n if ($(el).closest('.x-subrecipe').length === 0) {\n $items.push(el);\n }\n });\n }\n return $items;\n };\n $.getGlobalElement = function (element, $_wrapper) {\n if (!$_wrapper || $_wrapper.length === 0) return $(\"\");\n var _wrapper = $_wrapper.get(0);\n var $items = $(\"\");\n if (_wrapper.$recipe_container) {\n $(element, _wrapper.$recipe_container).each(function (i, el) {\n $items.push(el);\n });\n }\n return $items;\n };\n })(jQuery);\n\n var recipeController = function ($wrapper, options, literals) {\n if ($wrapper.length < 1)\n return;\n\n var wrapper = $wrapper.get(0);\n\n var state = Vendd.Product.Controller.getState();\n var id = parseInt($wrapper.attr('data-id') || state.parentId),\n skuId = parseInt($wrapper.attr('data-skuid') || state.selectedId),\n path = state.path,\n qty = state.qty,\n extraAttributes = [],\n bundleItems = state.bundleItems,\n recipeItems = [],\n comboRecipes = [],\n comboItems = state.comboItems;\n wrapper.state = {};\n wrapper.state.id = id;\n wrapper.state.skuId = skuId;\n var current_product_id;\n\n wrapper.setOptions = function (options) {\n\n var _defaultConfiguration = {};\n\n\n _defaultConfiguration.isSubRecipe = $wrapper.hasClass('issubrecipe');\n\n _defaultConfiguration.$ParentWrapper = _defaultConfiguration.isSubRecipe ? $wrapper.parents('.x-recipe-ingredients-wrapper') : null;\n _defaultConfiguration.ParentWrapper = _defaultConfiguration.isSubRecipe ? $wrapper.parents('.x-recipe-ingredients-wrapper').get(0) : null;\n\n _defaultConfiguration.isComboPage = $wrapper.hasClass('combo');\n _defaultConfiguration.isConfigurationPage = $wrapper.hasClass('configuration-page');\n _defaultConfiguration.PartialHtml = $wrapper.attr(\"data-partialhtml\") || \"pdRecipeIngredients\";\n _defaultConfiguration.isFancyboxPopup = $wrapper.hasClass('configuration-page');\n _defaultConfiguration.ParentRecipeId = _defaultConfiguration.isSubRecipe ? parseInt($wrapper.parents('.x-recipe-ingredients-wrapper').get(0).model.RecipeId) || 0 : 0;\n _defaultConfiguration.ParentRecipeItemId = _defaultConfiguration.isSubRecipe ? parseInt($wrapper.parents('.x-recipe-ingredients-wrapper').get(0).model.RecipeItemId) || 0 : 0;\n\n _defaultConfiguration.RecipeItemId = wrapper.state.skuId;\n _defaultConfiguration.RecipeId = parseInt($wrapper.attr(\"data-recipe-id\") !== undefined ? $wrapper.attr(\"data-recipe-id\") || 0 : 0);\n _defaultConfiguration.HasAuthorizedPage = $wrapper.attr(\"data-hasauthorizedpage\") !== undefined ? $wrapper.attr(\"data-hasauthorizedpage\") === \"true\" : false;\n _defaultConfiguration.HasAuthorizedSave = $wrapper.attr(\"data-hasauthorizedsave\") !== undefined ? $wrapper.attr(\"data-hasauthorizedsave\") === \"true\" : true;\n _defaultConfiguration.LoadFromDatabase = $wrapper.attr(\"data-loadfromdatabase\") !== undefined ? $wrapper.attr('data-loadfromdatabase') === \"true\" : false;\n _defaultConfiguration.SaveToDatabase = $wrapper.attr(\"data-savetodatabase\") !== undefined ? $wrapper.attr('data-savetodatabase') === \"true\" : false;\n _defaultConfiguration.ShareConfiguration = $wrapper.attr(\"data-shareconfiguration\") !== undefined ? $wrapper.attr('data-shareconfiguration') === \"true\" : false;\n _defaultConfiguration.PdfExport = $wrapper.attr(\"data-pdfexport\") !== undefined ? $wrapper.attr('data-pdfexport') === \"true\" : false;\n _defaultConfiguration.SendToOneDealer = $wrapper.attr(\"data-onedealer\") !== undefined ? $wrapper.attr('data-onedealer') === \"true\" : false;\n _defaultConfiguration.HasSummaryPage = $wrapper.attr(\"data-hassummarypage\") !== undefined ? $wrapper.attr('data-hassummarypage') === \"true\" : false;\n _defaultConfiguration.HasQuantitySelectors = $wrapper.attr(\"data-hasquantityselectors\") !== undefined ? $wrapper.attr('data-hasquantityselectors') === \"true\" : false;\n _defaultConfiguration.SaveToLocalStorage = $wrapper.attr(\"data-savetolocalstorage\") !== undefined ? $wrapper.attr('data-savetolocalstorage') === \"true\" : false;\n _defaultConfiguration.OnLoadPageLoadFromLocalStorage = $wrapper.attr(\"data-onloadpageloadfromlocalstorage\") !== undefined ? $wrapper.attr(\"data-onloadpageloadfromlocalstorage\") === \"true\" : false;\n _defaultConfiguration.Attributes = $wrapper.attr(\"data-attributes\") || \"\";\n _defaultConfiguration.IsPostalCodeMandatory = $wrapper.attr(\"data-is-postalcode-mandatory\") !== undefined ? $wrapper.attr('data-is-postalcode-mandatory') === \"true\" : false;\n\n _defaultConfiguration.IsAuthorizedPage = false;\n\n wrapper.config = $.extend({}, _defaultConfiguration, options || {});\n };\n\n wrapper.setLiterals = function (literals) {\n\n wrapper.literals = literals || {};\n\n //wrapper.literals.title = $wrapper.attr('data-title') || \"\";\n wrapper.literals.UnAuthorizedText = $wrapper.attr('data-unauthorized-text') || \"You first need to log in in order to configure a trailer.Don’t have an account? Register Here! It’s FREE and it takes less than 30 seconds\";\n wrapper.literals.UnAuthorizedLoginText1 = $wrapper.attr('data-unauthorized-login-text1') || \"LOGIN TO YOUR ACCOUNT \";\n wrapper.literals.UnAuthorizedLoginText2 = $wrapper.attr('data-unauthorized-login-text2') || \"You can also create an account here\";\n\n wrapper.literals.InvalidRegistrationData = $wrapper.attr('data-invalid-data') || \"INVALID REGISTRATION DATA!\";\n\n wrapper.literals.UnAuthorizedButtonText1 = $wrapper.attr('data-unauthorized-login-text1') || \"LOGIN TO YOUR ACCOUNT!\";\n wrapper.literals.UnAuthorizedButtonText2 = $wrapper.attr('data-unauthorized-login-text2') || \"You can also create account here\";\n\n wrapper.literals.TooltipPrevStep = $wrapper.attr('data-tooltip-prev-step') || \"Please go through previous steps\";\n\n wrapper.literals.Standard = $wrapper.attr('data-standard') || \"STANDARD\";\n wrapper.literals.Optional = $wrapper.attr('data-optional') || \"OPTIONAL\";\n wrapper.literals.NextStep = $wrapper.attr('data-next-step') || \"NEXT STEP\";\n wrapper.literals.ShowSummary = $wrapper.attr('data-show-summary') || \"SHOW SUMMARY\";\n wrapper.literals.SubmitRegistration = $wrapper.attr('data-submit-registration') || \"SUBMIT CONFIGURATION\";\n\n wrapper.literals.Summary = $wrapper.attr('data-summary') || \"Summary\";\n wrapper.literals.BackToConfiguration = $wrapper.attr('data-back-to-configuration') || \"BACK TO CONFIGURATION\";\n wrapper.literals.SummaryGeneralErrors = $wrapper.attr('data-summary-general-errors') || \"GENERAL ERRORS\";\n wrapper.literals.SummaryGeneralErrorsDescription = $wrapper.attr('data-summary-general-errors-description') || \"Please go back to the configuration page and review the following errors and/or inconsistencies:\";\n wrapper.literals.OutdatedEquipment = $wrapper.attr('data-outdated-equipment') || \"OUTDATED EQUIPMENT\";\n wrapper.literals.StandardEquipment = $wrapper.attr('data-standard-equipment') || \"STANDARD EQUIPMENT\";\n wrapper.literals.OptionalEquipment = $wrapper.attr('data-optional-equipment') || \"OPTIONAL EQUIPMENT\";\n wrapper.literals.OptionalEquipmentTotalPrice = $wrapper.attr('data-optional-equipment-total-price') || \"Optional equipment total price\";\n\n wrapper.literals.PricesText = $wrapper.attr('data-prices-text') || \"PRICES\";\n wrapper.literals.StandardPriceText = $wrapper.attr('data-prices-standard-price-text') || \"BASIC PRICE\";\n wrapper.literals.OptionalPriceText = $wrapper.attr('data-prices-optional-price-text') || \"OPTIONAL EQUIPMENT\";\n wrapper.literals.ShippingPriceText = $wrapper.attr('data-prices-shipping-price-text') || \"DELIVERY IN UK\";\n wrapper.literals.TotalPriceText = $wrapper.attr('data-prices-total-price-text') || \"TOTAL PRICE\";\n\n wrapper.literals.AvailableText = $wrapper.attr('data-available-text') || \"Available direct to your address - 30 days\";\n\n wrapper.literals.ShareText = $wrapper.attr('data-share-text') || \"SHARE\";\n wrapper.literals.DownloadPdfText = $wrapper.attr('data-download-pdf-text') || \"DOWNLOAD PDF\";\n wrapper.literals.SaveForLaterText = $wrapper.attr('data-save-for-later-text') || \"SAVE FOR LATER\";\n wrapper.literals.PricesVatNote = $wrapper.attr('data-price-vat-note') || \"All prices excl. 20% VAT\";\n };\n\n wrapper.setOptions(options);\n\n wrapper.setLiterals(literals);\n\n wrapper.$recipe_container = wrapper.config.isComboPage ?\n $wrapper.closest('.page_ProductList') :\n wrapper.config.isConfigurationPage ? $wrapper.closest('.recipe-container') : $wrapper.closest('.x-product-details');\n\n var $versionSelector = $.getGlobalElement('.x-product-details-version-selector', $wrapper);\n\n var maxQuantity = 0,\n maxFreeQuantity = 0,\n maxedOut = 0,\n maxReplaceQuantity = 0,\n defaultQuantity = 0,\n currentQuantity = 0,\n recipeInitialPrice = parseFloat(stringToNumber($('.current-price').attr('data-price'))),\n comboRecipePrice = 0,\n recipePrice = recipeInitialPrice;\n wrapper.initModel = {}, wrapper.model = {}, shippingModel = {};\n\n var checkboxChange = function (event) {\n if (this.checked) {\n ifChecked(event);\n } else {\n ifUnchecked(event);\n }\n };\n\n var ifChecked = function (event) {\n if ($(event.target).hasClass(\"loading\")) return;\n if ($(event.target).hasClass(\"disabled\")) return;\n $(event.target).addClass(\"loading\");\n //var recipeId = id;\n var ingredientId = parseInt(event.target.dataset.ingredientid || \"\") || -1;\n var quantity = parseFloat(stringToNumber(event.target.dataset.quanta || \"1\") || 1);\n\n var result, ingredientIdFrom;\n if ($(event.target).is(\":radio\")) {\n var radioName = event.target.name;\n var $ingredientIdFrom = $(\"input[name='\" + event.target.name + \"'].active\");\n //check for None option\n if ($ingredientIdFrom.is(\".option-nullable\") || $(event.target).is(\".option-nullable\")) {\n if ($ingredientIdFrom.is(\".option-nullable\")) {\n //if unchecked None option\n result = Vendd.RecipeLibrary.AddIngredient(wrapper.model, wrapper.model.RecipeItemId, ingredientId, quantity, true);\n } else if ($ingredientIdFrom.length > 0) {\n //if checked None option\n ingredientIdFrom = parseInt($ingredientIdFrom.get(0).dataset.ingredientid || \"\") || -1;\n result = Vendd.RecipeLibrary.RemoveIngredient(wrapper.model, wrapper.model.RecipeItemId, ingredientIdFrom, quantity, true);\n }\n\n } else {\n if ($ingredientIdFrom.length > 0 && !$(event.target).hasClass(\"active\")) {\n ingredientIdFrom = parseInt($ingredientIdFrom.get(0).dataset.ingredientid || \"\") || -1;\n result = Vendd.RecipeLibrary.ChangeIngredient(wrapper.model, wrapper.model.RecipeItemId, ingredientIdFrom, ingredientId);\n } else {\n result = Vendd.RecipeLibrary.AddIngredient(wrapper.model, wrapper.model.RecipeItemId, ingredientId, quantity, true);\n }\n }\n } else {\n result = Vendd.RecipeLibrary.AddIngredient(wrapper.model, wrapper.model.RecipeItemId, ingredientId, quantity, true);\n }\n if (!result) {\n //console.log(\"error\");\n }\n if (!result.success) {\n //console.log(result.status);\n if (result.status.ErrorCode !== \"0\") {\n wrapper.showErrorMessage($(event.target), result.status.ErrorCode);\n }\n } else {\n wrapper.model = result.data.recipe || wrapper.model;\n var ingredient = _.find(wrapper.model.Ingredients, function (i) { return i.IngredientId === ingredientId; }) || {};\n if ((ingredient.SubRecipeId || 0) > 0) {\n var $subRecipeWrapper = $(\".x-recipe-ingredients-wrapper[data-recipe-id='\" + ingredient.SubRecipeId + \"']\", $wrapper);\n var subRecipeWrapper = $subRecipeWrapper.get(0);\n subRecipeWrapper.setCheckedItems();\n subRecipeWrapper.setEnabledItems();\n }\n }\n setTimeout(function () {\n wrapper.setCheckedItems();\n wrapper.setEnabledItems();\n $(event.target).removeClass(\"loading\");\n if (wrapper.config.SaveToDatabase) wrapper.checkChanges();\n }, 0);\n };\n\n var ifUnchecked = function (event) {\n if ($(event.target).hasClass(\"loading\")) return;\n if ($(event.target).hasClass(\"disabled\")) return;\n if ($(event.target).is(\":radio\")) return;\n $(event.target).addClass(\"loading\");\n //var recipeId = id;\n var ingredientId = parseInt(event.target.dataset.ingredientid || \"\") || -1;\n var quantity = parseFloat(stringToNumber(event.target.dataset.quanta || \"1\") || 1);\n var result = Vendd.RecipeLibrary.RemoveIngredient(wrapper.model, wrapper.model.RecipeItemId, ingredientId, quantity, true);\n if (!result) {\n //console.log(\"error\");\n }\n if (!result.success) {\n //console.log(result.status);\n } else {\n wrapper.model = result.data.recipe || wrapper.model;\n }\n setTimeout(function () {\n wrapper.setCheckedItems();\n wrapper.setEnabledItems();\n $(event.target).removeClass(\"loading\");\n if (wrapper.config.SaveToDatabase) wrapper.checkChanges();\n }, 0);\n };\n\n wrapper.loading = function (loading) {\n if (loading) {\n $wrapper.addClass('x-loading');\n } else {\n $wrapper.removeClass('x-loading');\n }\n };\n\n wrapper.loading(true);\n\n wrapper.update = function () {\n wrapper.model.Literals = wrapper.literals;\n $.each(wrapper.model.Categories, function (index, category) {\n $.each(category.Groups, function (indexInGroupArray, group) {\n $.each(group.Items, function (indexInItemArray, item) {\n if (item.Description === item.Name) {\n item.Description = null;\n }\n });\n });\n });\n wrapper.model.ParentImageURL = $('.js-image-container img', wrapper.$recipe_container).attr('src'); //Custom BJT\n var html = Vendd.Handlebars.parse(wrapper.config.PartialHtml, wrapper.model);\n wrapper.bind(html);\n\n if (!wrapper.config.isSubRecipe) {\n $('.x-recipe-ingredients-wrapper.issubrecipe', $wrapper).each(function (el, i) {\n //console.log('SubRecipe');\n recipeController($(this), configuratorOptions);\n });\n }\n };\n\n wrapper.bind = function bind(html) {\n $wrapper.html(html);\n\n wrapper.setCheckedItems();\n wrapper.setEnabledItems();\n if (wrapper.config.SaveToDatabase) wrapper.checkChanges();\n\n wrapper.bindEvents();\n\n $wrapper.show();\n\n };\n\n wrapper.bindEvents = function () {\n\n wrapper.initIcheck();\n wrapper.initIngredientsToggle();\n wrapper.initNextStep();\n wrapper.initTooltips();\n\n $.getElement(' input[data-ingredientid]:checkbox', $wrapper).off('change').on('change', checkboxChange);\n //$('input[data-ingredientid]', $wrapper).off('ifUnchecked').on('ifUnchecked', ifUnchecked);\n\n $.getElement(\" .info-error-container .info-error-btn\", $wrapper).off(\"click\").on(\"click\", function (e) {\n e.preventDefault();\n var $infoContainer = $(e.target).closest(\".info-error-container\");\n if ($infoContainer.hasClass(\"disabled\")) return;\n var $errorHtml = $(\".info-error-text\", $infoContainer);\n $.fancybox.open($errorHtml, {\n touch: {\n vertical: false,\n momentum: false\n }\n });\n });\n if (!wrapper.config.isSubRecipe) {\n $.getElement(' .js-summary-show-button', $wrapper).off('click').on('click touchstart', function () {\n //Custom BJT start\n if (wrapper.config.IsPostalCodeMandatory) {\n var storeLocator = (Vendd.StoreLocator || {}).Controller || {};\n if (!storeLocator.Partner && storeLocator.CanChangeDealer) {\n var callback = function () {\n var storeLocator = (Vendd.StoreLocator || {}).Controller || {};\n if (storeLocator.Partner) {\n setTimeout(() => {\n wrapper.Validate();\n }, 100);\n }\n };\n openPostCodeSelector(callback);\n } else {\n wrapper.Validate();\n }\n } else {\n wrapper.Validate();\n }\n });\n\n $.getGlobalElement(' .js-edit-post-code', $wrapper).off('click').on('click touchstart', function () {\n openPostCodeSelector(null);\n });\n }\n if (!wrapper.config.isSubRecipe) {\n $.getGlobalElement(' .back-to-config-container', $wrapper).off('click').on('click touchstart', function () {\n wrapper.showSummary(false);\n scroll_to_class($wrapper, 90);\n });\n }\n\n if (!wrapper.config.isSubRecipe) {\n $.getGlobalElement('.js-submit-registration-button', $wrapper).off('click').on('click touchstart', function () {\n var $this = $(this);\n if ($this.hasClass(\"loading\")) return;\n wrapper.loading(true);\n $this.addClass(\"loading\");\n var callback = {\n success: function (response) {\n wrapper.model.GlobalId = response.GlobalId;\n wrapper.model.HashCode = response.HashCode;\n wrapper.checkChanges();\n var $successHtml = $.getGlobalElement('.success-registration-text', $wrapper);\n $.fancybox.open($successHtml, {\n touch: false,\n btnTpl: {\n smallBtn:\n '
\"\n },\n afterClose: function () {\n parent.jQuery.fancybox.close();\n }\n });\n }, error: function () {\n var $errorHtml = $.getGlobalElement('.error-for-later-text', $wrapper);\n $.fancybox.open($errorHtml, {\n touch: {\n vertical: false,\n momentum: false,\n btnTpl: {\n smallBtn:\n '
\"\n },\n afterClose: function () {\n parent.jQuery.fancybox.close();\n }\n }\n });\n }, finally: function () {\n $this.removeClass(\"loading\");\n wrapper.loading(false);\n }\n };\n var config = {\n Force: true,\n FriendlyName: \"Register:\" + wrapper.model.vin,\n Vin: wrapper.model.vin,\n PartnerId: wrapper.model.partnerId !== \"\" ? wrapper.model.partnerId : null\n };\n wrapper.saveData(callback, config);\n });\n }\n if (!wrapper.config.isSubRecipe) {\n $.getGlobalElement('.save-for-later-container .button', $wrapper).off('click').on('click touchstart', function () {\n var $this = $(this);\n if ($this.hasClass(\"loading\") || !wrapper.config.SaveToDatabase || $this.hasClass(\"disabled\")) return;\n $this.addClass(\"loading\");\n wrapper.loading(true);\n var callback = {\n success: function (response) {\n wrapper.model.GlobalId = response.GlobalId;\n wrapper.model.HashCode = response.HashCode;\n wrapper.checkChanges();\n var location;\n if (wrapper.config.HasAuthorizedSave && !wrapper.model.isAuthenticated) {\n var $unauthorized = $.getGlobalElement(\".unauthorized-container\", $wrapper);\n var $link = $(\"a\", $unauthorized);\n location = UpdateQueryString(\"GlobalId\", wrapper.model.GlobalId);\n location = UpdateQueryString(\"DoSave\", true, location);\n $link.attr(\"href\", LhApp.Url.Page.Login + \"?returnUrl=\" + encodeURIComponent(location));\n $.fancybox.open($unauthorized, {\n touch: {\n vertical: false,\n momentum: false\n }\n });\n } else {\n var $successHtml = $.getGlobalElement('.success-for-later-text', $wrapper);\n location = UpdateQueryString(\"GlobalId\", wrapper.model.GlobalId);\n $(\"#saved-url\", $successHtml).val(location);\n $.fancybox.open($successHtml, {\n touch: false\n });\n }\n }, error: function () {\n var $errorHtml = $.getGlobalElement('.error-for-later-text', $wrapper);\n $.fancybox.open($errorHtml, {\n touch: {\n vertical: false,\n momentum: false\n }\n });\n }, finally: function () {\n $this.removeClass(\"loading\");\n wrapper.loading(false);\n }\n };\n if (wrapper.config.isConfigurationPage) {\n var config = {\n Force: true,\n FriendlyName: \"Register:\" + wrapper.model.vin,\n }\n wrapper.saveData(callback, config);\n } else {\n var $fancyprompt = $(\".fancybox-prompt-container\");\n if ($fancyprompt.length > 0) {\n fancyPrompt($fancyprompt, $(\".product-name\").text() || \"\", function (friendlyName) {\n if (friendlyName !== null && friendlyName !== \"\") {\n var config = {\n Force: true,\n FriendlyName: friendlyName\n }\n wrapper.saveData(callback, config);\n } else {\n $this.removeClass(\"loading\");\n wrapper.loading(false);\n }\n });\n }\n }\n\n });\n }\n if (!wrapper.config.isSubRecipe) {\n $.getGlobalElement(' .download-pdf-container .button', $wrapper).off('click').on('click touchstart', function (e) {\n e.preventDefault();\n var $this = $(this);\n if ($this.hasClass(\"loading\") || !wrapper.config.PdfExport || $this.hasClass(\"disabled\")) return;\n $this.addClass(\"loading\");\n wrapper.loading(true);\n\n var callback = {\n success: function (response) {\n wrapper.model.GlobalId = response.GlobalId;\n wrapper.model.HashCode = response.HashCode;\n\n generatePDF($this);\n }, error: function () {\n var $errorHtml = $.getGlobalElement('.error-download-text', $wrapper);\n $.fancybox.open($errorHtml, {\n touch: {\n vertical: false,\n momentum: false\n }\n });\n }, finally: function () {\n $this.removeClass(\"loading\");\n wrapper.loading(false);\n }\n };\n var config = {\n FriendlyName: \"Share\",\n IsShare: true\n };\n wrapper.saveData(callback, config);\n });\n }\n if (!wrapper.config.isSubRecipe) {\n $.getGlobalElement(' .share-buttons .button', $wrapper).off('click').on('click touchstart', function () {\n //στο share οταν σωζουμε, θα πρεπει να μπαινει friendly name οεο;\n var $this = $(this);\n if ($this.hasClass(\"loading\") || !wrapper.config.ShareConfiguration || $this.hasClass(\"disabled\")) return;\n $this.addClass(\"loading\");\n wrapper.loading(true);\n\n var callback = {\n success: function (response) {\n wrapper.model.GlobalId = response.GlobalId;\n wrapper.model.HashCode = response.HashCode;\n wrapper.checkChanges();\n var location = UpdateQueryString(\"GlobalId\", wrapper.model.GlobalId);\n addthis.update('share', 'url', location);\n addthis.url = location;\n addthis.toolbox(\".addthis_inline_share_toolbox\");\n $('.addthis_inline_share_toolbox').removeClass('hidden');\n }, error: function () {\n var $errorHtml = $.getGlobalElement('.error-share-text', $wrapper);\n $.fancybox.open($errorHtml, {\n touch: {\n vertical: false,\n momentum: false\n }\n });\n }, finally: function () {\n $this.removeClass(\"loading\");\n wrapper.loading(false);\n }\n };\n var config = {\n FriendlyName: \"Share\",\n IsShare: true\n };\n wrapper.saveData(callback, config);\n });\n }\n if (!wrapper.config.isSubRecipe) {\n $.getGlobalElement('.start-over-container', $wrapper).off('click').on('click touchstart', function (event) {\n if ($(event.target).hasClass(\"disabled\")) return;\n wrapper.loading(true);\n scroll_to_class($wrapper, 90);\n $(event.target).addClass(\"disabled\");\n Vendd.RecipeLibrary.ResetRecipe(wrapper.initModel, id);\n Vendd.RecipeLibrary.ClearLocalStorage();\n wrapper.model = $.extend(true, {}, wrapper.initModel);\n $.getElement(\" .globalid-container\", $wrapper).text(wrapper.model.GlobalId);\n $.getElement(\" .hashcode-container\", $wrapper).text(wrapper.model.HashCode);\n $.getElement(' input[data-ingredientid]', $wrapper).addClass(\"loading\");\n wrapper.update();\n $(event.target).removeClass(\"disabled\");\n $(\".js-full-screen-popup\").addClass(\"disabled\");\n wrapper.showSummary(false);\n wrapper.loading(false);\n });\n }\n if (!wrapper.config.isSubRecipe) {\n $.getGlobalElement('.fancybox-copy-to-clipboard', $wrapper).on(\"click touchstart\", function () {\n copyToClipboard();\n $(this).addClass(\"copied\").delay(1000).queue(function () {\n $(this).removeClass(\"copied\").dequeue();\n });\n });\n }\n if (!wrapper.config.isSubRecipe) {\n $.getGlobalElement('.one-dealer-container .button', $wrapper).off('click').on('click touchstart', function () {\n var $this = $(this);\n if ($this.hasClass(\"loading\") || !wrapper.config.SendToOneDealer || $this.hasClass(\"disabled\")) return;\n wrapper.loading(true);\n $this.addClass(\"loading\");\n var callback = {\n success: function (response) {\n wrapper.model.GlobalId = response.GlobalId;\n wrapper.model.HashCode = response.HashCode;\n wrapper.checkChanges();\n var $successHtml = $.getGlobalElement('.success-registration-text', $wrapper);\n $.fancybox.open($successHtml, {\n touch: false,\n btnTpl: {\n smallBtn:\n '
\"\n },\n afterClose: function () {\n parent.jQuery.fancybox.close();\n }\n });\n if (window.parent) {\n var oneDealerResponse = Vendd.RecipeLibrary.GetOneDealerData(wrapper.model.RecipeItemId);\n if (oneDealerResponse.success) {\n window.parent.postMessage(oneDealerResponse.data, \"*\");\n }\n }\n }, error: function () {\n var $errorHtml = $.getGlobalElement('.error-for-later-text', $wrapper);\n $.fancybox.open($errorHtml, {\n touch: {\n vertical: false,\n momentum: false,\n btnTpl: {\n smallBtn:\n '
\"\n },\n afterClose: function () {\n parent.jQuery.fancybox.close();\n }\n }\n });\n }, finally: function () {\n $this.removeClass(\"loading\");\n wrapper.loading(false);\n }\n };\n var config = {\n Force: true,\n FriendlyName: \"OneDealer:\" + wrapper.model.vin\n };\n wrapper.saveData(callback, config);\n });\n }\n };\n\n var openPostCodeSelector = function (callback) {\n $.fancybox.open($('.js-post-code-selector'), {\n touch: {\n vertical: false,\n momentum: false\n },\n //modal: true,\n afterClose: function (e, i) {\n if (callback) callback();\n }\n });\n };\n\n var fancyPrompt = function ($element, initVal, callback) {\n var value;\n $.fancybox.open($element, {\n touch: {\n vertical: false,\n momentum: false\n },\n beforeShow: function () {\n $('input', $element).val(initVal);\n },\n afterShow: function () {\n $element.on('keyup', function (event) {\n if (event.keyCode === 27) {\n value = null;\n $.fancybox.close();\n }\n if (event.keyCode === 13) {\n $(\".fancybox-prompt-ok\").trigger(\"click\");\n }\n });\n $('input', $element).change(function () {\n $('.error-wrapper', $element).addClass(\".hidden\");\n });\n $(\".fancybox-prompt-button\").on(\"click touchstart\", function (event) {\n if ($(event.target).is(\".fancybox-prompt-ok\")) {\n value = $('input', $element).val();\n if (value === \"\") {\n $('.error-wrapper', $element).removeClass(\".hidden\");\n }\n } else {\n value = null;\n }\n $.fancybox.close();\n });\n $('input', $element).focus();\n },\n afterClose: function () {\n $element.off('keyup');\n callback.call(this, value);\n }\n });\n };\n\n var getUserData = function () {\n //set user fullname to PDF\n var user = JSON.parse(localStorage.getItem(\"CurrentUserModel\"));\n var fullname = user.FirstName + ' ' + user.LastName;\n $('.pdf-header-container .user-name', $('.js-pdf-header')).html(fullname);\n //if authenticated add hide class else no\n if (user.IsAuthenticated) {\n $(\".pdf-header-subtitle\").hide();\n $(\".authenticatedSubtitle\").show();\n }\n else {\n $(\".pdf-header-subtitle\").show();\n $(\".authenticatedSubtitle\").hide();\n }\n //Add current Date to PDF \n var today = new Date();\n var dd = today.getDate();\n var mm = today.getMonth() + 1;\n var yyyy = today.getFullYear();\n if (dd < 10) {\n dd = '0' + dd;\n }\n if (mm < 10) {\n mm = '0' + mm;\n }\n today = dd + '.' + mm + '.' + yyyy;\n $('.pdf-header-container .user-time', $('.js-pdf-header')).html(today);\n };\n var generatePDF = function ($el) {\n $button = $el;\n var coverPdf = null;\n if ($button.data('coverpdf') !== '') {\n coverPdf = 'https:' + $button.data('coverpdf');\n }\n getUserData();\n var location = UpdateQueryString(\"GlobalId\", wrapper.model.GlobalId);\n $.when(getShortenedUrl(location)).done(function () {\n $(\".qr-wrapper img\").on(\"load\", function () {\n $(\".qr-wrapper img\").attr({\n \"width\": 120,\n \"height\": 120\n });\n //coverPdf = \"https://bjt.staginglh.com/Uploads/130750/68ca_config_a2transporter_125-1010.pdf\";\n var requestData = {\n \"url\": null,\n \"externalLink\": coverPdf,\n \"externalLinkFirst\": null,\n \"filename\": \"configurator\",\n \"filenamehassuffixdatetime\": true,\n \"pagesize\": null,\n \"pageorientation\": null,\n \"parameters\": {\n \"hasprintcss\": true\n },\n html: getHtmlBodyForPdf(),\n headerhtml: getHtmlHeaderForPdf(),\n footerhtml: getHtmlFooterForPdf(),\n \"HeaderHeight\": 140,\n \"FooterHeight\": 50,\n \"margin\": {\n \"top\": 0,\n \"bottom\": 0,\n \"left\": 25,\n \"right\": 25\n }\n };\n var successDownload = function (pdf) {\n const blob = b64toBlob(pdf.FileContents, 'application/pdf');\n const blobUrl = URL.createObjectURL(blob);\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\n window.navigator.msSaveOrOpenBlob(blob, pdf.Filename);\n } else {\n var a = document.createElement(\"a\");\n a.style.visibility = 'hidden';\n document.body.appendChild(a);\n var fileURL = URL.createObjectURL(blob);\n a.href = fileURL;\n a.download = pdf.Filename;\n a.click();\n document.body.removeChild(a);\n setTimeout(function () {\n // For Firefox it is necessary to delay revoking the ObjectURL\n //window.URL.revokeObjectURL(fileURL);\n }, 500);\n }\n };\n var errorDownload = function (response) {\n var $errorHtml = $('.error-download-text', wrapper.$recipe_container);\n $.fancybox.open($errorHtml, {\n touch: {\n vertical: false,\n momentum: false\n }\n });\n };\n $.ajax({\n type: \"POST\",\n dataType: 'json',\n contentType: 'application/json; charset=UTF-8',\n url: \"/services/api/PdfExporter/Generate\",\n async: false,\n data: JSON.stringify(requestData),\n success: successDownload,\n error: errorDownload,\n complete: function (response) {\n $button.removeClass(\"loading\");\n wrapper.loading(false);\n }\n });\n });\n });\n };\n var getHtmlHeaderForPdf = function () {\n $(\"header img\").each(function (i, img) {\n var $img = $(img);\n $img\n .attr(\"data-width\", $img.width())\n .attr(\"data-height\", $img.height());\n });\n var $bodyclone = $(\"html\").clone();\n var $pdfHeader = $(\".js-pdf-header\").clone();\n $(\"img\", $pdfHeader).each(function (i, img) {\n var $img = $(img);\n var src = $img.attr(\"src\");\n if (src.startsWith(\"//\")) $img.attr(\"src\", \"https:\" + src);\n });\n return $pdfHeader.html();\n };\n\n var getHtmlFooterForPdf = function () {\n var $pdfFooter = $(\".js-pdf-footer\").clone();\n $(\"img\", $pdfFooter).each(function (i, img) {\n var $img = $(img);\n var src = $img.attr(\"src\");\n if (src.startsWith(\"//\")) $img.attr(\"src\", \"https:\" + src);\n });\n return $pdfFooter.html();\n };\n\n var getHtmlBodyForPdf = function () {\n\n $(\"img\").each(function (i, img) {\n var $img = $(img);\n $img\n .attr(\"data-width\", $img.width())\n .attr(\"data-height\", $img.height());\n });\n var $bodyclone = $(\"html\").clone();\n $(\"script\", $bodyclone).remove();\n $(\".js-pdf-header, .js-pdf-footer\", $bodyclone).remove();\n var maxWidth = 400;\n var maxHeight = 200;\n $(\"img\", $bodyclone).each(function (i, img) {\n if ($(this).attr(\"src\") !== null) {\n var $img = $(img);\n var src = $img.attr(\"src\");\n if (src.startsWith(\"//\")) $img.attr(\"src\", \"https:\" + src);\n //fix images width and height\n var scaleWidth = maxWidth / $img.attr(\"data-width\");\n if (scaleWidth > 1) scaleWidth = 1;\n var scaleHeight = maxHeight / $img.attr(\"data-height\");\n if (scaleHeight > 1) scaleHeight = 1;\n var scale = scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n var width = $img.attr(\"data-width\") * scale;\n var height = $img.attr(\"data-height\") * scale;\n $img\n .width(width + \"px\")\n .height(height + \"px\");\n }\n });\n if (wrapper.config.isConfigurationPage) {\n $(\".configurator-container\", $bodyclone).toggleClass(\"hidden\", true);\n $(\".summary-container\", $bodyclone).toggleClass(\"hidden\", false);\n }\n return $bodyclone\n .html()\n .replace(/(\")/gm, \"'\")\n .replace(/(\\\\)/gm, \"\\\\\\\\\")\n .replace(/(\\r\\n|\\n|\\r)/gm, \"\");\n };\n\n var b64toBlob = function (b64Data, contentType, sliceSize) {\n contentType = contentType || '';\n sliceSize = sliceSize || 512;\n\n var byteCharacters = atob(b64Data);\n var byteArrays = [];\n\n for (var offset = 0; offset < byteCharacters.length; offset += sliceSize) {\n var slice = byteCharacters.slice(offset, offset + sliceSize);\n\n var byteNumbers = new Array(slice.length);\n for (var i = 0; i < slice.length; i++) {\n byteNumbers[i] = slice.charCodeAt(i);\n }\n\n var byteArray = new Uint8Array(byteNumbers);\n\n byteArrays.push(byteArray);\n }\n\n var blob = new Blob(byteArrays, { type: contentType });\n return blob;\n };\n\n wrapper.saveData = function (callback, config) {\n var save = function (callback, config) {\n var htmlData = {\n Body: getHtmlBodyForPdf(),\n Header: getHtmlHeaderForPdf(),\n Footer: getHtmlFooterForPdf()\n };\n\n var defaultConfiguration = {\n RecipeId: wrapper.model.RecipeItemId,\n Force: false,\n FriendlyName: \"\",\n Vin: wrapper.model.vin,\n PartnerId: wrapper.model.partnerId !== \"\" ? wrapper.model.partnerId : null,\n HtmlData: htmlData,\n callback: callback\n };\n config = $.extend({}, defaultConfiguration, config || {});\n\n $.when(Vendd.RecipeLibrary.GenerateGlobalId(config))\n .done(\n function (response) {\n if (callback && callback.success) callback.success(response.data);\n return;\n })\n .fail(\n function (response) {\n if (callback && callback.error) callback.error(response);\n return;\n })\n .always(\n function (response) {\n if (callback && callback.finally) callback.finally(response);\n return;\n });\n };\n if (wrapper.config.IsPostalCodeMandatory) {\n var storeLocator = (Vendd.StoreLocator || {}).Controller || {};\n if (!storeLocator.Partner) {\n openPostCodeSelector(function () {\n var storeLocator = (Vendd.StoreLocator || {}).Controller || {};\n if (storeLocator.Partner) {\n save(callback, config);\n } else {\n $.fancybox.close(true);\n }\n });\n return;\n }\n }\n save(callback, config);\n };\n\n wrapper.loadData = function (callback, config) {\n\n var defaultConfiguration = {\n RecipeId: wrapper.model.RecipeItemId\n };\n var _config = $.extend({}, defaultConfiguration, config || {});\n\n var storeLocator = (Vendd.StoreLocator || {}).Controller || {};\n var callbacks = {\n onSuccess: function (response) {\n if (response.success) {\n //var ShippingCostText = numberToString2(response.data, true);\n wrapper.model.ShippingCost = parseFloat(response.data);\n //wrapper.model.ShippingCostText = ShippingCostText;\n //$.getElement(' .summary-shipping-price', $wrapper).html(ShippingCostText);\n //$.getGlobalElement(' .delivery-value', $wrapper).html(ShippingCostText);\n wrapper.calculatePrice();\n wrapper.calculateWeight();\n //$.fancybox.close(true);\n }\n }\n };\n if (storeLocator.Partner && !wrapper.config.isSubRecipe) {\n storeLocator.SetCallbacks(callbacks);\n storeLocator.GetShippingCost();\n } else if (Vendd.StoreLocator && !wrapper.config.isSubRecipe) {\n Vendd.MessageBus.subscribe(Vendd.StoreLocator.Messages.Initialized, wrapper, function () {\n storeLocator.SetCallbacks(callbacks);\n storeLocator.GetShippingCost();\n });\n }\n var response;\n if (wrapper.config.isSubRecipe) {\n response = Vendd.RecipeLibrary.GetModel(wrapper.model.RecipeItemId);\n if (callback && callback.success && response.success) callback.success(response);\n if (callback && callback.error && !response.success) callback.error(response);\n if (callback && callback.finally) callback.finally(response);\n }\n else if (_config.GlobalId !== \"\" && wrapper.config.LoadFromDatabase) {\n $.when(Vendd.RecipeLibrary.LoadFromGlobalId(_config))\n .done(\n function (response) {\n if (storeLocator.Partner) {\n storeLocator.FindPartner();\n } else if (Vendd.StoreLocator) {\n Vendd.MessageBus.subscribe(Vendd.StoreLocator.Messages.Initialized, wrapper, function () {\n storeLocator.FindPartner();\n });\n }\n if (callback && callback.success) callback.success(response);\n return;\n })\n .fail(\n function (response) {\n if (callback && callback.error) callback.error(response);\n return;\n })\n .always(\n function (response) {\n if (callback && callback.finally) callback.finally(response);\n wrapper.loading(false);\n return;\n });\n } else if (wrapper.config.OnLoadPageLoadFromLocalStorage) {\n wrapper.config.LoadFromDatabase = false;\n response = Vendd.RecipeLibrary.LoadFromLocalRecipeItems(wrapper.model.RecipeItemId);\n if (response.success) {\n wrapper.model.RecipeItems = response.data.Recipe.RecipeItems;\n if (callback && callback.success) callback.success(response);\n } else {\n wrapper.update();\n }\n if (callback && callback.finally) callback.finally(response);\n wrapper.loading(false);\n } else {\n wrapper.config.LoadFromDatabase = false;\n wrapper.update();\n wrapper.loading(false);\n }\n };\n\n wrapper.assignConfigurationToUser = function (callback, config) {\n var defaultConfiguration = {\n RecipeItemId: wrapper.config.RecipeItemId,\n callback: callback\n };\n config = $.extend({}, defaultConfiguration, config || {});\n\n $.when(Vendd.RecipeLibrary.AssignConfigurationToUser(config))\n .done(\n function (response) {\n if (callback && callback.success) callback.success(response.data);\n return;\n })\n .fail(\n function (response) {\n if (callback && callback.error) callback.error(response);\n return;\n })\n .always(\n function (response) {\n if (callback && callback.finally) callback.finally(response);\n return;\n });\n };\n\n wrapper.hideAllErrors = function () {\n $.getGlobalElement(\".recipe-error-container\", $wrapper).addClass(\"hidden\");\n $.getElement(\".category-items .group-error-container\", $wrapper).addClass(\"hidden\");\n $.getElement(\".category-items .info-error-container\", $wrapper).addClass(\"disabled\");\n $.getElement(\".ingredient\", $wrapper).removeClass(\"disabled\");\n };\n\n wrapper.showErrorMessage = function ($item, code, incompatibles, missingPrerequisites, missingAnyOfPrerequisites) {\n var $ingredient = $item.closest(\".category-item\");\n var $infoContainer = $(\".info-error-container\", $ingredient);\n if ($infoContainer.length === 0) return;\n var errorHtml = $.getGlobalElement(\".error[data-code='\" + code + \"']\", $wrapper).html();\n var template = \"
  • {2} {1}
  • \";\n if (code === 1030) {\n errorHtml = errorHtml.replace(\"{0}\", \"\");\n }\n if (code === 1031) {\n errorHtml = errorHtml.replace(\"{0}\", \"\");\n }\n if (code === 1032) {\n errorHtml = errorHtml.replace(\"{0}\", \"\");\n errorHtml = errorHtml.replace(\"{0}\", \"\");\n }\n if (code === 1033) {\n var missingAnyOfPrerequisitesHtml = \"\";\n for (var i = 0; i < missingAnyOfPrerequisites.length; i++) {\n var items = missingAnyOfPrerequisites[i];\n missingAnyOfPrerequisitesHtml += \"\";\n }\n errorHtml = errorHtml.replace(\"{0}\", missingAnyOfPrerequisitesHtml);\n }\n $(\".info-error-text\", $infoContainer).html(errorHtml);\n $infoContainer.removeClass(\"disabled\");\n\n $(\".inner-wrapper\", $infoContainer).html(errorHtml);\n initScrollToIngredient($(\".inner-wrapper .scroll-to-ingredient\", $infoContainer));\n $infoContainer.removeClass(\"hidden\");\n };\n\n wrapper.showGeneralErrorMessage = function (errorItem) {\n var $templateErrors = $.getElement(\" .summary-error-generate-template\", $wrapper);\n var errorCode = (errorItem.ErrorCodes || []).length > 0 ? errorItem.ErrorCodes[0] : errorItem.ErrorCode;\n var errorHtml = $.getGlobalElement(\".error[data-code='\" + errorCode + \"']\", $wrapper).html();\n var relatedItemsHtml = \"\";\n var $templateClone = $templateErrors.clone().removeClass(\"summary-error-generate-template\").addClass(\"generated\");\n\n if (errorItem.Id || 0 > 0) {\n var $group = $.getElement(\" .category-items[data-groupId='\" + (errorItem.Id || 0) + \"']\", $wrapper);\n if ($group) {\n var groupIndex = $group.index() + 1;\n errorHtml = errorHtml.replace(\"{0}\", errorItem.ExtraQuantity).replace(\"{1}\", errorItem.Name).replace(\"{2}\", errorItem.CategoryName).replace(\"{3}\", groupIndex);\n $(\".group-error-container\", $group).html(errorHtml).removeClass(\"hidden\");\n $templateClone.attr(\"data-goto-group-id\", (errorItem.Id || 0)).addClass(\"goto-item\");\n $(\".summary-item-name\", $templateClone).addClass(\"hidden\");\n }\n } else if (errorItem.IngredientId || 0 > 0) {\n var $ingredient = $.getElement(\" .category-item[data-ingredientid='\" + (errorItem.IngredientId || 0) + \"']\", $wrapper);\n if ($ingredient) {\n var template = \"
  • {2} {1}
  • \";\n if (errorCode === 1030) {\n relatedItemsHtml = \"\";\n }\n if (errorCode === 1031) {\n relatedItemsHtml = \"\";\n }\n if (errorCode === 1032) {\n relatedItemsHtml = \"\"\n + \"\";\n }\n $(\".summary-related-items\", $templateClone).html(relatedItemsHtml);\n errorHtml = errorHtml.replace(\"{0}\", \"\");\n }\n } else {\n errorHtml = errorHtml.replace(\"{0}\", errorItem.ExtraQuantity).replace(\"{1}\", errorItem.Name);\n $.getGlobalElement(\".recipe-error-container\", $wrapper).html(errorHtml).removeClass(\"hidden\");\n }\n\n if ((errorItem.IngredientId || 0 > 0)) {\n $(\".summary-item-name\", $templateClone).text(errorItem.Name)\n .addClass(\"scroll-to-ingredient\")\n .attr(\"data-goto-ingredient-id\", (errorItem.IngredientId || 0))\n .addClass(\"goto-item\");\n }\n $(\".summary-error\", $templateClone).html(errorHtml);\n var $parent = $.getElement(\" .summary-category-general-errors .category-items\", $wrapper);\n $templateClone.appendTo($parent);\n $(\".goto-item\", $templateClone).each(function () {\n initScrollToIngredient($(this));\n });\n if ($templateClone.hasClass(\"goto-item\")) initScrollToIngredient($templateClone);\n };\n\n wrapper.checkChanges = function () {\n var localStorageHashCode = Vendd.RecipeLibrary.GetLocalStorageRecipeItemsHashCode(wrapper.model.RecipeItemId);\n var hasChanges = wrapper.model.HashCode !== localStorageHashCode;\n $(\".globalid-container\").text(wrapper.model.GlobalId).toggleClass(\"unsaved\", hasChanges);\n $(\".hashcode-container\").text(wrapper.model.HashCode).toggleClass(\"unsaved\", hasChanges);\n if (wrapper.config.SaveToLocalStorage) (Vendd.RecipeLibrary.SaveRecipeItemsToLocal(wrapper.model.RecipeItemId, wrapper.model.GlobalId)).success;\n };\n\n wrapper.setCheckedItems = function () {\n var result;\n if (wrapper.config.isSubRecipe) {\n result = (Vendd.RecipeLibrary.GetCheckedRecipeItems(wrapper.config.ParentRecipeItemId));\n }\n else {\n result = (Vendd.RecipeLibrary.GetCheckedRecipeItems(wrapper.model.RecipeItemId));\n }\n if (!result.success) {\n //console.log(result.status);\n } else {\n $.getGlobalElement(\" .summary-category-standard-equipment .category-item.generated\", $wrapper).remove();\n $.getGlobalElement(\" .summary-category-optional-equipment .category-item.generated\", $wrapper).remove();\n $.getGlobalElement(\" .summary-category-general-errors .category-item.generated\", $wrapper).remove();\n $.getGlobalElement(\" .summary-category-outdated-equipment .category-item.generated\", $wrapper).remove();\n var $template = $.getGlobalElement(\".summary-item-generate-template\", $wrapper);\n $.getElement(\" input[data-ingredientid]\", $wrapper)\n .addClass('loading')\n .off('change')\n .prop(\"checked\", false).removeClass(\"active\");\n $('.x-recipe-ingredients-wrapper.issubrecipe', $wrapper).addClass(\"hidden\");\n _.each(result.data.CheckedRecipeItems, function (item) {\n if (wrapper.config.isSubRecipe && item.ProductItemId === wrapper.model.RecipeItemId) {\n //change package price\n }\n if (item.IngredientId !== 0) {\n //update summary\n var $templateClone = $template.clone().removeClass(\"summary-item-generate-template\").addClass(\"generated\");\n $templateClone.attr(\"data-ingredientid\", item.IngredientId);\n var IsStandard = '';\n if (item.IsStandard) {\n IsStandard = 'pdf-standard';\n }\n $(\".summary-item-name\", $templateClone).text(item.Name);\n $(\".summary-item-category\", $templateClone).text(item.Category);\n $(\".summary-item-image img\", $templateClone).attr(\"src\", item.ImageUrl).parent().addClass(IsStandard);\n var price = item.TotalPrice > 0 ? numberToString2(item.TotalPrice, true) : \"\";\n $(\".summary-item-price\", $templateClone).text(price).addClass(IsStandard);\n var $parent = item.IsStandard ?\n $(\".category.summary-category-standard-equipment .category-items\") :\n $(\".category.summary-category-optional-equipment .category-items\");\n $templateClone.prependTo($parent);\n }\n\n if (item.RecipeItemId !== wrapper.model.RecipeItemId) return;\n //set valid recipe items as checked\n var $element = $.getElement(\" [data-groupid='\" + item.GroupId + \"'] input[data-ingredientid='\" + item.IngredientId + \"']\", $wrapper);\n $element\n .prop(\"checked\", true)\n .addClass(\"active\");\n var $ingredient = $element.closest(\".ingredient\");\n $('.x-recipe-ingredients-wrapper', $ingredient).removeClass(\"hidden\");\n });\n\n $.getElement(\" .category.summary-category-standard-equipment\", $wrapper).toggleClass(\"hidden\", result.data.CheckedItemsStandardTotal === 0);\n $.getElement(\" .category.summary-category-optional-equipment\", $wrapper).toggleClass(\"hidden\", result.data.CheckedItemsOptionalTotal === 0);\n\n $.getElement(\" input[data-ingredientid]\", $wrapper)\n .removeClass('loading')\n .on('change', checkboxChange);\n if (wrapper.model.ParentRecipeItemId === 0) {\n wrapper.calculatePrice();\n wrapper.calculateWeight();\n } else {\n var parentWrapper = $wrapper.parents('.x-recipe-ingredients-wrapper').get(0);\n if (parentWrapper) {\n parentWrapper.calculatePrice();\n parentWrapper.calculateWeight();\n }\n }\n }\n };\n wrapper.checkIfLoggedIn = function () {\n var user = JSON.parse(localStorage.getItem('CurrentUserModel'));\n if (user !== null && user.FirstName && user.LastName) {\n $('.pdf-header-subtitle').hide();\n $('.pdf-header-logedin-subtitle').append('' + user.FirstName + ' ' + user.LastName + '').show();\n } else {\n $('.pdf-header-logedin-subtitle').hide();\n $('.pdf-header-subtitle').show();\n }\n };\n\n //wrapper.checkIfLoggedIn();\n wrapper.setEnabledItems = function () {\n wrapper.hideAllErrors();\n var result = Vendd.RecipeLibrary.GetEnabledItems(wrapper.model.RecipeItemId);\n if (!result.success) {\n //console.log(result.status);\n $.getElement(\" input[data-ingredientid]\", $wrapper).removeClass(\"loading\");\n } else {\n $.getElement(\" input[data-ingredientid]\", $wrapper)\n .addClass('disabled').prop(\"disabled\", true);\n _.each(result.data.EnabledItems, function (item) {\n var $item = $.getElement(\" [data-groupid='\" + item.GroupId + \"'] input[data-ingredientid='\" + item.IngredientId + \"']\", $wrapper);\n var $ingredient = $item.closest(\".ingredient\");\n if (item.ErrorCode > 0) {\n wrapper.showErrorMessage($item, item.ErrorCode, item.Incompatibles, item.MissingPrerequisites, item.MissingAnyOfPrerequisites);\n } else {\n $(\".error\", $ingredient).addClass(\"hidden\");\n }\n $item\n .removeClass('disabled')\n .prop(\"disabled\", false);\n });\n _.each(result.data.DisableItems, function (item) {\n var $item = $.getElement(\" input[data-ingredientid='\" + item.IngredientId + \"']\", $wrapper);\n var $ingredient = $item.closest(\".ingredient\");\n if ($ingredient.length > 0) {\n wrapper.showErrorMessage($item, item.ErrorCode, item.Incompatibles, item.MissingPrerequisites, item.MissingAnyOfPrerequisites);\n $ingredient.addClass(\"disabled\");\n }\n });\n\n _.each(result.data.Errors, function (error) {\n wrapper.showGeneralErrorMessage(error);\n });\n\n _.each(result.data.GroupErrors, function (group) {\n wrapper.showGeneralErrorMessage(group);\n\n });\n }\n };\n\n wrapper.calculatePrice = function () {\n var prices = Vendd.RecipeLibrary.GetPrices(wrapper.model.RecipeItemId) || {};\n prices.InitialPrice = prices.InitialPrice || 0;\n prices.StandardTotalPrice = prices.StandardTotalPrice || 0;\n prices.OptionalTotalPrice = prices.OptionalTotalPrice || 0;\n var shippingPrice = wrapper.model.ShippingCost || 0;\n var shippingPriceText = shippingPrice > 0 ? numberToString2(shippingPrice, true) : \"\";\n var optionalTotalPriceText = prices.OptionalTotalPrice > 0 ? numberToString2(prices.OptionalTotalPrice, true) : \"\";\n var totalPrice = prices.InitialPrice + prices.OptionalTotalPrice + prices.StandardTotalPrice + shippingPrice;\n var totalPriceText = totalPrice > 0 ? numberToString2(totalPrice, true) : \"\";\n var basicPrice = prices.InitialPrice + prices.StandardTotalPrice;\n var basicPriceText = basicPrice > 0 ? numberToString2(basicPrice, true) : \"\";\n $('.price-optional-value').html(optionalTotalPriceText);\n $('.total-price').html(totalPriceText);\n $('.basic-price').html(basicPriceText);\n $('.summary-shipping-price').html(shippingPriceText);\n $('.delivery-value').html(shippingPriceText);\n };\n wrapper.calculateWeight = function () {\n var weightObj = Vendd.RecipeLibrary.GetWeight(wrapper.model.RecipeItemId) || {};\n var remainingWeight = weightObj.InitialWeight - weightObj.OptionalTotalWeight;\n $('.load-capacity .value').html(remainingWeight);\n $('.load-capacity .product-details-value').toggleClass(\"error\", remainingWeight < 0);\n };\n\n wrapper.initiallizeProductRecipe = function () {\n maxQuantity = parseInt(wrapper.model.MaxQuantity);\n maxFreeQuantity = parseInt(wrapper.model.MaxFreeQuantity);\n maxReplaceQuantity = parseInt(wrapper.model.MaxReplaceQuantity);\n $('.x-recipe .description').html(wrapper.model.MaxQuantityText);\n $('.x-recipe .selected-version-label').show();\n $('.x-recipe .selected-version').html($('.x-recipe .selected-version-label')[0]);\n recipeInitialPrice = parseFloat(stringToNumber($('.x-product-details .current-price').attr('data-price')));\n $('.page_ProductList[data-step-number]').each(function (index, value) {\n var step = $(this).data(\"step-number\");\n if ($('.price-container[data-combo-recipe' + step + ']').length === 0) return;\n var price = parseFloat(stringToNumber($('.price-container').attr(\"data-combo-recipe\" + step)));\n recipeInitialPrice = recipeInitialPrice + price;\n });\n $('.x-product-details .current-price').html(recipeInitialPrice.toFixed(2).replace('.', ',') + '€');\n recipePrice = recipeInitialPrice;\n comboRecipePrice = 0;\n defaultQuantity = 0;\n currentQuantity = 0;\n $wrapper.get(0).recipeItems = [];\n };\n\n wrapper.initTooltips = function () {\n var $wrapperTooltips = $.getElement(' .tooltip-info-wrapper', $wrapper);\n\n if ($wrapperTooltips.length < 1)\n return;\n\n $wrapperTooltips.each(function (i, el) {\n intiTooltip($(el));\n });\n\n $(document).on('click touchstart', function (e) {\n var $wrapperTooltips = $.getElement(' .tooltip-info-wrapper', $wrapper);\n var $selectedWrapper = $wrapperTooltips.is(e.target) ? $(e.target) : $(e.target).closest($wrapperTooltips).first();\n var $toolbox = $('.info-tooltip', $selectedWrapper);\n $('.info-tooltip', $wrapperTooltips).not($toolbox).attr('style', '');\n });\n };\n\n var intiTooltip = function ($tooltip) {\n $tooltip.on(\"click touchstart\", function (e) {\n if ($(this).is('.category-item') && !$(this).hasClass(\"disabled\") && $(e.target).is(\"input\")) return;\n if ($(this).hasClass(\"category-title\") && $(this).parent('.category').length > 0 && !$(this).parent('.category').hasClass(\"disabled\")) return;\n if ($(this).hasClass('category-item') && $(this).find(\".info-error-container\").hasClass(\"disabled\")) return;\n if ($(e.target).hasClass(\"more-info-btn\")) return;\n var $tooltipBox = $(this).find('.info-tooltip');\n $('.info-tooltip', $tooltip).not($tooltipBox).attr('style', '');\n $tooltipBox.toggle();\n });\n };\n\n var initScrollToIngredient = function ($item) {\n $item.off(\"click\").on(\"click touchstart\", function () {\n var groupId = parseInt($(this).attr(\"data-goto-group-id\") || \"0\");\n var ingredientId = parseInt($(this).attr(\"data-goto-ingredient-id\") || \"0\");\n goToItem(groupId, ingredientId);\n });\n };\n\n var goToItem = function (groupId, ingredientId) {\n var $item = groupId > 0 ?\n $.getElement(\" .configurator-container .ingredients[data-groupid='\" + groupId + \"']\", $wrapper) :\n $.getElement(\" .configurator-container .ingredient[data-ingredientid='\" + ingredientId + \"']\", $wrapper);\n if ($item.length === 0) return;\n var $congifuratorPage = $.getElement(\" .configurator-container\", $wrapper);\n if (!$congifuratorPage.is(\":visible\")) {\n wrapper.showSummary(false);\n }\n //$(\".configurator-container .category\", $wrapper).toggleClass(\"opened\", false);\n var $category = $item.closest(\".category\");\n $category.toggleClass(\"opened\", true);\n scroll_to_class($item, 90);\n };\n\n wrapper.initIcheck = function () {\n var $input = $.getGlobalElement('input', $wrapper);\n };\n\n wrapper.initIngredientsToggle = function () {\n $.getElement(' .category-title', $wrapper).click(function () {\n var $this = $(this);\n var $category = $this.closest('li.category');\n if ($category.hasClass(\"disabled\")) return;\n $category.toggleClass(\"opened\");\n if ($category.hasClass(\"wizard\")) {\n if ($category.is(\":last-child\")) {\n $.getElement(\" .button-show-summary-wrapper\", $wrapper).removeClass(\"hidden\");\n $.getElement(\" .button-submit-registration\", $wrapper).removeClass(\"hidden\");\n }\n\n var $nextCategory = $category.next();\n if ($nextCategory.length > 0) {\n $nextCategory.removeClass(\"disabled\");\n }\n }\n });\n };\n\n wrapper.initNextStep = function () {\n $.getElement(' li.category.wizard:not(:first-child):not(:nth-child(2))', $wrapper).addClass(\"disabled\");\n if ($.getElement(' li.category.wizard', $wrapper).length === 1) {\n $.getElement(\" .button-show-summary-wrapper\", $wrapper).removeClass(\"hidden\");\n $.getElement(\" .button-submit-registration\", $wrapper).removeClass(\"hidden\");\n }\n\n $.getElement(' .next-step-center', $wrapper).on(\"click\", function () {\n var $this = $(this);\n var $category = $this.closest('li.category');\n var $categoryTitle = $category.find('.category-title');\n\n if ($category.hasClass(\"disabled\")) return;\n\n $category.removeClass(\"opened\");\n\n var $nextCategory = $category.next();\n if ($nextCategory.length > 0) {\n $nextCategory.addClass(\"opened\").slideToggle(0);\n $nextCategory.slideToggle(600);\n scroll_to_class($nextCategory, 90);\n if ($nextCategory.is(\":last-child\")) {\n $.getElement(\" .button-show-summary-wrapper\", $wrapper).removeClass(\"hidden\");\n $.getElement(\" .button-submit-registration\", $wrapper).removeClass(\"hidden\");\n }\n if ($nextCategory.next().length > 0) $nextCategory.next().removeClass(\"disabled\");\n }\n });\n };\n\n var loadDataError = function (response, errorCode) {\n var $errorHtml = $.getGlobalElement(\".error[data-code='\" + (errorCode || response.status.ErrorCode || \"1070\") + \"']\", $wrapper);\n $.fancybox.open($errorHtml, {\n touch: {\n vertical: false,\n momentum: false\n }\n });\n wrapper.model.IsAuthorized = (errorCode === \"1061\" && wrapper.config.isConfigurationPage) || wrapper.model.IsAuthenticated;\n\n wrapper.showSummary(false);\n };\n\n var loadDataSuccess = function (response) {\n if ((!response.success || !response.data || !(response.data.GlobalId && wrapper.config.LoadFromDatabase)) && !wrapper.config.isSubRecipe) {\n var errorCode = (response.data && !response.data.GlobalId ? \"1071\" : \"1070\");\n loadDataError(response, errorCode);\n return;\n }\n wrapper.model.GlobalId = response.data.GlobalId;\n wrapper.model.HashCode = response.data.HashCode;\n wrapper.model.CanEdit = response.data.CanEdit;\n $.getElement(\" .globalid-container\", $wrapper).text(wrapper.model.GlobalId);\n $.getElement(\" .hashcode-container\", $wrapper).text(wrapper.model.HashCode);\n\n var result;\n if (wrapper.config.isSubRecipe) {\n wrapper.model.RecipeItems = response.data.RecipeItems;\n result = Vendd.RecipeLibrary.SetRecipeItems(wrapper.model.RecipeItemId, wrapper.model.RecipeItems);\n if (!result.success) {\n //console.log(result.status);\n loadDataError(response, \"1071\");\n return;\n }\n wrapper.update();\n wrapper.setCheckedItems();\n wrapper.setEnabledItems();\n wrapper.loading(false);\n return;\n } else if (wrapper.model.GlobalId) {\n wrapper.model.RecipeItems = response.data.RecipeItems;\n result = Vendd.RecipeLibrary.SetRecipeItems(wrapper.model.RecipeItemId, wrapper.model.RecipeItems);\n result.SavedGlobalIdToLocal = (Vendd.RecipeLibrary.SaveGlobalIdToLocal(wrapper.model.RecipeItemId, wrapper.model.GlobalId)).success;\n if (wrapper.config.SaveToLocalStorage && wrapper.model.GlobalId) result.SaveRecipeItemsToLocal = (Vendd.RecipeLibrary.SaveRecipeItemsToLocal(wrapper.model.RecipeItemId, wrapper.model.GlobalId)).success;\n if (!result.success) {\n //console.log(result.status);\n loadDataError(response, \"1071\");\n return;\n }\n }\n\n wrapper.update();\n\n if (response.data.IsValid) {\n var storeLocator = (Vendd.StoreLocator || {}).Controller || {};\n if (!storeLocator.Partner && $.getGlobalElement('.js-post-code-selector', $wrapper).length > 0) {\n openPostCodeSelector(null);\n }\n wrapper.setCheckedItems();\n wrapper.setEnabledItems();\n } else {\n onValidateError(response);\n }\n wrapper.showSummary(true);\n };\n\n wrapper.Validate = function () {\n var response = {};\n var data = Vendd.RecipeLibrary.IsValid(wrapper.model.RecipeItemId);\n response.data = data || {};\n _.each(_.filter(wrapper.model.RecipeItems, function (item) { return item.SubRecipeId > 0; }),\n function (recipe) {\n var subrecipe_data = Vendd.RecipeLibrary.IsValid(recipe.ProductItemId) || {};\n if (response.data.IsValid && !subrecipe_data.IsValid) {\n ($(\".issubrecipe[data-id='\" + recipe.ProductItemId + \"']\").get(0)).Validate();\n }\n response.data.IsValid = response.data.IsValid && subrecipe_data.IsValid;\n });\n\n if (response.data.IsValid) {\n onValidateSuccess(response);\n wrapper.showSummary(true);\n scroll_to_class($wrapper, 90);\n } else {\n onValidateError(response);\n var $firstError = $.getElement(\" .group-error-container:not(.hidden),.x-recipe-ingredients:not(.x-subrecipe) .recipe-error-container:not(.hidden)\", $wrapper).first();\n if (response.data.GroupErrors.length > 0 && $firstError.length) {\n var $categoryError = $firstError.closest(\".category\");\n $categoryError.toggleClass(\"opened\", true);\n scroll_to_class($firstError, 90);\n } else if (response.data.IngredientsErrors.length > 0) {\n $.each(response.data.IngredientsErrors, function (i, error) {\n $el = $.getElement(\" .ingredients .info-error-container:not(.disabled)\", $wrapper).closest(\".ingredient[data-ingredientid='\" + error.IngredientId + \"']\");\n $input = $(\"input\", $el);\n if ($input.is(':checked')) {\n var $categoryError = $el.closest(\".category\");\n $categoryError.toggleClass(\"opened\", true);\n scroll_to_class($el, 90);\n return false;\n }\n });\n }\n }\n };\n\n var onValidateError = function (response) {\n\n $.getElement(\" .back-to-config-container\", $wrapper).toggleClass(\"hidden\", true);\n $.getGlobalElement(\".save-for-later-container .button\", $wrapper).addClass(\"disabled\").prop(\"disabled\", true);\n if ((wrapper.model.GlobalId || 0) === 0) $.getGlobalElement(\".download-pdf-container .button\", $wrapper).addClass(\"disabled\").prop(\"disabled\", true);\n if ((wrapper.model.GlobalId || 0) === 0) $.getGlobalElement(\".share-buttons .button\", $wrapper).addClass(\"disabled\").prop(\"disabled\", true);\n if ((wrapper.model.GlobalId || 0) === 0) $.getGlobalElement(\".one-dealer-container .button\", $wrapper).addClass(\"disabled\").prop(\"disabled\", true);\n $.getElement(\" .summary-category-error\", $wrapper).toggleClass(\"hidden\", response.data.Errors.length === 0 && response.data.GroupErrors.length === 0 && response.data.IngredientsErrors.length === 0);\n $.getElement(' .summary-category-error .category-description a', $wrapper).off(\"click touchstart\").on(\"click touchstart\", function () {\n wrapper.showSummary(false);\n scroll_to_class($wrapper, 90);\n });\n $.getElement(\" .summary-category-error .category-item.generated\", $wrapper).remove();\n $.getGlobalElement(\".validate-info-container .alert\", $wrapper).removeClass(\"hidden\");\n $.getGlobalElement(\".validate-info-container .warning\", $wrapper).toggleClass(\"hidden\", !((response.data.IngredientsWarnings || []).length > 0));\n\n var ingredientsOutdatedErrors = _.filter(response.data.IngredientsErrors, function (i) { return i.ErrorCodes.includes(1072); });\n var ingredientsGeneralErrors = _.filter(response.data.IngredientsErrors, function (i) { return !i.ErrorCodes.includes(1072); });\n\n $.getElement(\" .summary-category-outdated-equipment\", $wrapper).toggleClass(\"hidden\", ingredientsOutdatedErrors.length === 0);\n var $templateOutdated = $.getElement(\" .summary-outdated-item-generate-template\", $wrapper);\n _.each(ingredientsOutdatedErrors, function (item) {\n var $templateClone = $templateOutdated.clone().removeClass(\"summary-outdated-item-generate-template\").addClass(\"generated\");\n $templateClone.attr(\"data-ingredientid\", item.IngredientId);\n $(\".summary-item-name\", $templateClone).text(item.Name);\n var price = item.Price > 0 ? numberToString2(item.Price, true) : \"\";\n $(\".summary-item-price\", $templateClone).text(price);\n var $parent = $.getElement(\" .summary-category-outdated-equipment .category-items\", $wrapper);\n $templateClone.appendTo($parent);\n });\n\n _.each(ingredientsGeneralErrors, function (item) {\n wrapper.showGeneralErrorMessage(item);\n });\n\n $.getElement(\" .summary-category-general-errors\", $wrapper).toggleClass(\"hidden\", response.data.Errors.length === 0 && response.data.GroupErrors.length === 0 && ingredientsGeneralErrors.length === 0);\n _.each(response.data.Errors, function (item) {\n wrapper.showGeneralErrorMessage(item);\n });\n\n _.each(response.data.GroupErrors, function (group) {\n wrapper.showGeneralErrorMessage(group);\n });\n\n _.each(response.data.IngredientsWarnings, function (item) {\n var $item = $.getElement(\" .summary-container .category-item[data-ingredientid='\" + item.IngredientId + \"']\", $wrapper);\n if ($item.length > 0) {\n wrapper.showErrorMessage($item, item.ErrorCodes[0], null, null, null);//<--- fix to multiple errors\n $item.addClass(\"tooltip-info-wrapper\");\n intiTooltip($item);\n };\n });\n };\n\n var onValidateSuccess = function (response) {\n\n $.getElement(\" .back-to-config-container\", $wrapper).toggleClass(\"hidden\", false);\n $.getElement(\" .summary-category-error\", $wrapper).addClass(\"hidden\");\n $.getElement(\" .summary-category-general-errors\", $wrapper).addClass(\"hidden\");\n $.getElement(\" .summary-category-outdated-equipment\", $wrapper).addClass(\"hidden\");\n $.getElement(\" .summary-category-general-errors .category-item.generated\", $wrapper).remove();\n $.getElement(\" .summary-category-outdated-equipment .category-item.generated\", $wrapper).remove();\n $.getElement(\" .summary-container .info-error-container\", $wrapper).addClass(\"disabled\");\n $.getGlobalElement(\".save-for-later-container .button\", $wrapper).removeClass(\"disabled\");\n $.getGlobalElement(\".download-pdf-container .button\", $wrapper).removeClass(\"disabled\");\n $.getGlobalElement(\".share-buttons .button\", $wrapper).removeClass(\"disabled\");\n $.getGlobalElement(\".one-dealer-container .button\", $wrapper).removeClass(\"disabled\");\n $.getGlobalElement(\".validate-info-container .alert\", $wrapper).addClass(\"hidden\");\n $.getGlobalElement(\".validate-info-container .warning\", $wrapper).toggleClass(\"hidden\", !((response.data.IngredientsWarnings || []).length > 0));\n\n\n _.each(response.data.IngredientsWarnings, function (item) {\n var $item = $.getElement(\" .category-item[data-ingredientId='\" + item.IngredientId + \"']\", $wrapper);\n if ($item.length > 0) {\n wrapper.showErrorMessage($item, item.ErrorCodes[0], null, null, null);//<--- fix to multiple errors\n $item.addClass(\"tooltip-info-wrapper\");\n intiTooltip($item);\n };\n });\n };\n\n wrapper.showSummary = function (show) {\n if (show) $.getElement(' li.category:not(.summary-category-error)', $wrapper).removeClass(\"disabled\");\n if (wrapper.config.SaveToDatabase || wrapper.config.ShareConfiguration || wrapper.config.PdfExport || wrapper.config.SendToOneDealer) {\n if (!wrapper.config.SaveToDatabase || !wrapper.model.CanEdit) $.getGlobalElement(\".button-summary-wrapper .save-for-later-container\", $wrapper).remove();\n if (!wrapper.config.ShareConfiguration) $.getGlobalElement(\".button-summary-wrapper .share-container\", $wrapper).remove();\n if (!wrapper.config.PdfExport) $.getGlobalElement(\".button-summary-wrapper .download-pdf-container\", $wrapper).remove();\n if (!wrapper.config.SendToOneDealer) $.getGlobalElement(\".button-summary-wrapper .one-dealer-container\", $wrapper).remove();\n $(\".button-summary-wrapper\").toggleClass(\"hidden\", !show);\n }\n $(\".recipe-buttons-container\").toggleClass(\"hidden\", !show);\n $(\".js-full-screen-popup\").toggleClass(\"disabled\", !show);\n if (!wrapper.config.isConfigurationPage) {\n $(\".configurator-container\").toggleClass(\"hidden\", show);\n $(\".summary-container\").toggleClass(\"hidden\", !show);\n }\n };\n\n wrapper.initialize = function () {\n\n wrapper.model.CanEdit = true;\n\n if (wrapper.config.isConfigurationPage) {\n wrapper.model.RecipeItemId = pasrseInt(getQueryStringValueByName(\"ParentItemId\") || \"\");\n }\n\n var vendd = getParentOrSelfVendd();\n\n var getUserViewModelSuccess = function () {\n\n wrapper.model.LoginPage = LhApp.Url.Page.Login + \"?returnUrl=\" + encodeURI(window.location);\n\n var globalId = getQueryStringValueByName(\"GlobalId\") || \"\";\n var doSave = (getQueryStringValueByName(\"DoSave\") || \"\") === \"true\";\n var callback = {}, config = {};\n if (wrapper.model.isAuthenticated && wrapper.config.SaveToDatabase && globalId !== \"\" && doSave) {\n callback = {\n success: function (response) {\n var $successHtml = $.getGlobalElement('.success-for-later-text', $wrapper);\n var location = UpdateQueryString(\"DoSave\", false);\n $(\"#saved-url\", $successHtml).val(location);\n $.fancybox.open($successHtml, {\n touch: false\n });\n //console.log(\"update successfully!\");\n }, error: function () {\n //console.log(\"updating failed!\");\n }, finally: function () {\n }\n };\n config = {\n GlobalId: globalId\n };\n wrapper.assignConfigurationToUser(callback, config);\n }\n\n var hasPermissions = !wrapper.config.HasAuthorizedPage ||\n (wrapper.model.isAuthenticated && wrapper.config.HasAuthorizedPage) ||\n (globalId !== \"\" && wrapper.config.LoadFromDatabase) ||\n wrapper.config.isConfigurationPage;\n\n if (wrapper.config.isSubRecipe) {\n var _ingredients = ((Vendd.RecipeLibrary.GetModel(wrapper.config.ParentRecipeItemId).data || {}).Ingredients) || {};\n var _model = (_.find(_ingredients, function (i) { return i.SubRecipeId === wrapper.config.RecipeId }) || {}).SubRecipe || {};\n wrapper.model = _model;\n wrapper.model.RecipeItemId = wrapper.model.ProductItemId || 0;\n var result = Vendd.RecipeLibrary.GetModel(wrapper.model.RecipeItemId);\n wrapper.model = $.extend({}, wrapper.model, result.data);\n wrapper.initModel = $.extend(true, {}, wrapper.model);\n\n callback = {\n success: loadDataSuccess,\n error: loadDataError\n };\n config = {\n GlobalId: globalId || \"\"\n };\n wrapper.loadData(callback, config);\n return;\n }\n\n if (hasPermissions) {\n var attributes = wrapper.config.Attributes.split(\",\");\n vendd.MessageBus.publishAsync(wrapper, new vendd.Recipe.Messages.GetModel(wrapper.config.RecipeItemId, path, attributes));\n vendd.MessageBus.subscribe(vendd.Recipe.Messages.GetModelSuccess, wrapper, function (envelope) {\n if (wrapper.config.isSubRecipe) return;\n var recipeId = (envelope.message.data || {}).RecipeId || 0;\n wrapper.model.RecipeId = recipeId;\n\n var hasCategoryData = ((envelope.message.data || {}).Categories || []).length > 0;\n if (($('.x-recipe-ingredients-wrapper.issubrecipe[data-recipe-id=\"' + wrapper.model.RecipeId + '\"]').length > 0 && wrapper.config.RecipeId !== wrapper.model.RecipeId) || !hasCategoryData) return;\n wrapper.model.RecipeItemId = (envelope.message.data || {}).ProductItemId || 0;\n wrapper.model.ParentRecipeId = wrapper.config.ParentRecipeId;\n wrapper.model.ParentRecipeItemId = wrapper.config.ParentRecipeItemId;\n wrapper.model = $.extend({}, wrapper.model, envelope.message.data);\n wrapper.model.IsAuthorized = true;\n\n if (wrapper.config.isConfigurationPage) {\n wrapper.model.RecipeItemId = parseInt(getQueryStringValueByName(\"ParentItemId\") || \"\");\n wrapper.model.vin = getQueryStringValueByName(\"Vin\") || \"\";\n wrapper.model.partnerId = parseInt(getQueryStringValueByName(\"PartnerId\") || \"\");\n wrapper.model.isValidConfigurationPage = wrapper.model.RecipeItemId !== 0 && wrapper.model.vin !== \"\" && wrapper.model.partnerId !== 0;\n wrapper.model.isConfigurationPage = true;\n }\n var result = Vendd.RecipeLibrary.InitRecipe(wrapper.model, wrapper.model.RecipeItemId);\n wrapper.model = $.extend({}, wrapper.model, result.data.recipe);\n wrapper.initModel = $.extend(true, {}, wrapper.model);\n\n var callback = {\n success: loadDataSuccess,\n error: loadDataError\n };\n var config = {\n GlobalId: globalId || \"\"\n };\n wrapper.loadData(callback, config);\n //Custom BJT\n // var result = Vendd.RecipeLibrary.GetRecipeItems(id);\n // var itemInfo = {\n // minQuantity: 1,\n // maxQuantity: 1,\n // quanta: 1\n // };\n // var recipeItems = [];\n // $.each(result.data.RecipeItems, function (i, el) { \n // recipeItems.push( {\n // RecipeItemId: el.RecipeItemId,\n // ParentProductId: id,\n // Quantity: el.Quantity\n // } );\n // });\n // var enhancedInfo = { color: '', size: '', list: 'productDetails', colorId: null };\n // var vendd = getParentOrSelfVendd();\n // //Dirty fix, wait cart to clear first (pd.js)\n // setTimeout(function() {\n // vendd.MessageBus.publishAsync($wrapper.get(0), new vendd.Cart.Messages.Add(id, skuId, path, qty, '', extraAttributes, bundleItems, recipeItems, comboItems, itemInfo, enhancedInfo));\n // }, 3000);\n });\n } else {\n wrapper.model.IsAuthorized = false;\n wrapper.initModel = $.extend(true, {}, wrapper.model);\n wrapper.update();\n wrapper.loading(false);\n }\n };\n if (window.localStorage && window.localStorage.getItem(\"CurrentUserModel\")) {\n wrapper.model.isAuthenticated = (JSON.parse(window.localStorage.getItem(\"CurrentUserModel\") || \"\")).IsAuthenticated || false;\n getUserViewModelSuccess();\n } else {\n vendd.MessageBus.subscribe(Vendd.User.Messages.GetUserViewModelSuccess, wrapper, function (envelope) {\n wrapper.model.isAuthenticated = (((envelope.message || {}).data || {}).model || {}).IsAuthenticated || false;\n getUserViewModelSuccess();\n });\n }\n\n Vendd.MessageBus.subscribe(Vendd.Cart.Messages.GetShippingModelSuccess, wrapper, function (envelope) {\n wrapper.shippingModel = (((envelope.message || {}).data || {}).model || {});\n });\n Vendd.MessageBus.subscribe(Vendd.Cart.Messages.ApplyShippingDataSuccess, wrapper, function (envelope) {\n wrapper.model.ShippingCost = parseFloat(stringToNumber(wrapper.shippingModel.ShippingCostText));\n wrapper.model.ShippingCostText = wrapper.shippingModel.ShippingCostText;\n $.getElement(' .summary-shipping-price', $wrapper).html(wrapper.model.ShippingCostText);\n //wrapper.setCheckedItems();\n });\n };\n\n wrapper.initialize();\n };\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'x-recipe-ingredients-wrapper', function (envelope) {\n bindRecipeController();\n });\n\n var bindRecipeController = function () {\n $('.x-recipe-ingredients-wrapper').each(function () {\n\n recipeController($(this), configuratorOptions);\n });\n\n $.getGlobalElement('.js-show-recipe', $wrapper).off('click').on('click', function (e) {\n var $parent = $(this).closest('.x-recipe-ingredients-wrapper');\n if ($parent.length === 0) return;\n recipeController($parent, configuratorOptions);\n });\n\n };\n\n $('.x-recipe-ingredients-wrapper').each(function () {\n\n recipeController($(this), configuratorOptions);\n });\n});\n\nfunction copyToClipboard() {\n copyText = document.getElementById(\"saved-url\");\n\n /* Select the text field */\n copyText.select();\n copyText.setSelectionRange(0, 99999); /*For mobile devices*/\n\n /* Copy the text inside the text field */\n document.execCommand(\"copy\");\n}\n\n\nfunction numberToString2(value, addCurrency, clearZeros) {\n var returnValue, currency, decimal, fractional;\n\n currency = LhApp.Context.Currency.Symbol;\n var doShowSymbol = LhApp.Context.Currency.DoShowSymbol;\n var symbolShownFirst = LhApp.Context.Currency.SymbolShownFirst;\n var decimalSeperator = LhApp.Context.Currency.DecimalSeparator;\n var thousandSeperator = LhApp.Context.Currency.DecimalSeparator === \".\" ? \",\" : \".\";\n var numberOfDigits = LhApp.Context.Currency.NumberOfDigits;\n\n returnValue = parseFloat(value).toFixed(numberOfDigits);\n returnValue += \"\";\n returnValue = returnValue.replace('.', decimalSeperator).trim();\n\n if (clearZeros) {\n fractional = returnValue.split(decimalSeperator);\n\n if (fractional.length > 1) {\n if (new RegExp(\"^[0\\0]+$\").test(fractional[1])) {\n returnValue = fractional[0];\n }\n }\n }\n returnValue = returnValue.replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, '$1' + thousandSeperator);\n\n if (addCurrency && doShowSymbol)\n returnValue = symbolShownFirst ? currency + \" \" + returnValue : returnValue + \" \" + currency;\n\n return returnValue;\n}\nfunction getShortenedUrlAuth() {\n return $.ajax({\n type: \"POST\",\n dataType: 'json',\n async: false,\n contentType: 'application/json; charset=UTF-8',\n url: \"services/api/ExternalServices/GetShortenedUrlAuth\",\n data: null\n });\n}\nfunction getShortenedUrl(url) {\n return $.when(getShortenedUrlAuth()).done(function (response) {\n // the code here will be executed when all four ajax requests resolve.\n // a1, a2, a3 and a4 are lists of length 3 containing the response text,\n // status, and jqXHR object for each of the four ajax calls respectively.\n var requestData = {\n \"token\": JSON.parse(response.message).access_token,\n \"url\": url\n };\n return $.ajax({\n type: \"POST\",\n dataType: 'json',\n async: false,\n contentType: 'application/json; charset=UTF-8',\n url: \"services/api/ExternalServices/GetShortenedUrl\",\n data: JSON.stringify(requestData),\n success: function (response) {\n shortUrl = JSON.parse(response.message)[0].shortFormat;\n var confUrl = window.location.href;\n if (shortUrl) {\n confUrl = shortUrl;\n }\n $('.js-pdf-footer .shorturl').attr('href', confUrl).text(confUrl);\n generateQr(confUrl);\n },\n error: function () {\n $(\".qr-wrapper\").html(\n ''\n );\n }\n });\n });\n}\nfunction generateQr(url) {\n $(\".qr-wrapper img\").remove();\n var $qrWrapper = $(\".qr-wrapper\");\n new QRCode($qrWrapper[0], {\n text: url,\n width: 120,\n height: 120\n });\n $(\".qr-wrapper .qr-literal\").css('color', '#4999CE');\n}\n","function InitStickyBar() {\n var $page = $('.product-details-region'),\n $fixedProduct = $(\".x-product-details-sticky-bar\"),\n $offsetContainer = $('.' + $fixedProduct.data('offset'), $page),\n scroll;\n\n $('.js-select-size, .js-notify-button', $fixedProduct).click(function () {\n if (!($(window).width() < 768 && isTouch()))\n $(\"body,html\").animate({ scrollTop: 0 }, $(window).scrollTop() / 2);\n });\n\n scroll = $(window).scrollTop();\n scroll > ($offsetContainer.offset().top - 100) ? $fixedProduct.addClass(\"visible\") : $fixedProduct.removeClass(\"visible\");\n\n $(window).scroll(_.throttle(fixedScroll, 100));\n\n function fixedScroll() {\n if ($(window).width() > 767) {\n scroll = $(window).scrollTop();\n scroll > ($offsetContainer.offset().top - 100) ? $fixedProduct.addClass(\"visible\") : $fixedProduct.removeClass(\"visible\");\n $('html').removeClass('hide-sticky-btns');\n } else if (isTouch() && $(window).width() < 768) {\n if ($(window).scrollTop() > ($offsetContainer.offset().top - 50)) {\n $fixedProduct.addClass('hidden');\n $('.x-product-details .x-product-details-availability-notification').addClass('hidden');\n $('html').removeClass('hide-sticky-btns');\n } else {\n $fixedProduct.removeClass('hidden');\n $('html').addClass('hide-sticky-btns');\n }\n }\n\n }\n\n /*reset*/\n $('html').removeClass('no-scroll');\n\n $(window).resize($.debounce(150, function () {\n if ($('.x-product-details-version-selector', $fixedProduct).hasClass('opened') && isTouch()) {\n $('.js-close-popup', $fixedProduct).trigger('click');\n }\n }));\n\n $('.open-dim-pop-up', $fixedProduct).click(function () {\n var parent = $(this).parent('.x-product-details-version-selector');\n if (parent.hasClass('opened')) {\n $('html').removeClass('no-scroll');\n $fixedProduct.removeClass('top-layer');\n parent.removeClass('opened').siblings().removeClass('shadow');\n $(this).removeClass('icon-minus').addClass('icon-plus');\n } else {\n $('html').addClass('no-scroll');\n $fixedProduct.addClass('top-layer');\n parent.addClass('opened').removeClass('shadow').siblings().removeClass('opened').addClass('shadow').children('.open-dim-pop-up').removeClass('icon-minus').addClass('icon-plus');\n $(this).removeClass('icon-plus').addClass('icon-minus');\n }\n });\n\n $('.js-close-popup', $fixedProduct).click(function () {\n var parent = $(this).closest('.x-product-details-version-selector');\n $fixedProduct.removeClass('top-layer');\n $('html').removeClass('no-scroll');\n parent.removeClass('opened').siblings().removeClass('shadow');\n parent.children('.open-dim-pop-up').removeClass('icon-minus').addClass('icon-plus');\n });\n\n $('.js-selector', $fixedProduct).click(function () {\n $('.js-close-popup', $fixedProduct).trigger('click');\n });\n}\n","Vendd.Scripts.load(function () {\n\n var $boxes = $('.x-product-box-gtl-related');\n\n var $allToCartCont = $('.x-all-to-cart'), totalPrice = 0, numOfSelected = 0;\n\n $.each($boxes, function (i, el) {\n var $wrapper = $(this),\n wrapper;\n var model = null;\n\n if ($wrapper.length < 1)\n return;\n\n wrapper = $wrapper.get(0);\n\n if ($('.product-json-generator', $wrapper).length > 0) {\n var skuJsonHtml = $('.product-json-generator', $wrapper).html();\n $('.product-json-generator', $wrapper).remove();\n skuJsonHtml = skuJsonHtml.replace(/(\"[^\"]*\")|\\s/g, \"$1\").replace(/,}/g, '}').replace(/,]/g, ']');\n var skuJson = JSON.parse(skuJsonHtml);\n\n var $control = $('.x-product-details-quantity-selector', $wrapper);\n\n $.each($control, function (i, control) {\n var $item = $(control);\n\n $item.on('change', '.js-selector', function (e) {\n\n var $this = $(this);\n\n var qty = $this.val();\n\n });\n });\n\n var $control = $('.x-product-details-version-selector', $wrapper);\n\n $.each($control, function (i, control) {\n var $item = $(control);\n\n $item.on('change', '.js-selector', function (e) {\n\n var $this = $(this);\n\n var qty = $this.val();\n\n if ($item.hasClass(\"colorlist\")) {\n wrapper.updateSizes();\n var sizelist = $('.x-product-details-version-selector.sizelist select', $wrapper);\n if (qty > 0)\n sizelist.removeAttr('disabled');\n else\n sizelist.attr('disabled', 'true');\n }\n selectedSku = getSKU(skuJson, $('.colorlist .js-selector', $wrapper).val(), $('.sizelist .js-selector', $wrapper).val());\n wrapper.updateProductInfo();\n wrapper.updateQuantity();\n });\n });\n\n wrapper.updateColors = function () {\n var hasSelectedValueChange = false;\n var allSizes = getColors(skuJson, $('.sizelist .js-selector', $wrapper).val());\n var $colorWrapper = $('.x-product-details-version-selector.colorlist', $wrapper);\n $.each($('option[data-set-value-id!=0]', $colorWrapper), function () {\n var $option = $(this);\n var sizeId = $option.data(\"set-value-id\").toString();\n var isEnable = _.findWhere(allSizes, sizeId) != undefined;\n if (isEnable) {\n $option.removeClass('disabled').show();\n }\n else {\n if (sizeId == $('.js-selector', $colorWrapper).val()) hasSelectedValueChange = true;\n $option.addClass('disabled').hide();\n }\n });\n if (hasSelectedValueChange) {\n $(\"option\", $colorWrapper).attr('selected', null);\n $(\"option:not(.disabled)\", $colorWrapper).first().attr('selected', 'selected');\n $colorWrapper.val($(\"option:not(.disabled)\", $colorWrapper).first().val());\n }\n }\n\n wrapper.updateSizes = function () {\n var hasSelectedValueChange = false;\n var allColors = getSizes(skuJson, $('.colorlist .js-selector', $wrapper).val());\n var $sizeWrapper = $('.x-product-details-version-selector.sizelist', $wrapper);\n $.each($('option[data-set-value-id!=0]', $sizeWrapper), function () {\n var $option = $(this);\n var colorId = $option.data(\"set-value-id\").toString();\n var isEnable = _.findWhere(allColors, colorId) != undefined;\n if (isEnable) {\n $option.removeClass('disabled').show();\n }\n else {\n if (colorId == $('.js-selector', $sizeWrapper).val()) hasSelectedValueChange = true;\n $option.addClass('disabled').hide();\n }\n });\n if (hasSelectedValueChange) {\n $(\"option\", $sizeWrapper).attr('selected', null);\n $(\"option:not(.disabled)\", $sizeWrapper).first().attr('selected', 'selected');\n $sizeWrapper.val($(\"option:not(.disabled)\", $sizeWrapper).first().val());\n }\n }\n\n $wrapper.off('click', '.js-add-to-cart').on('click', '.js-add-to-cart', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n\n if ($this.hasClass('disabled') || $this.is(':disabled'))\n return;\n if ($('.x-warehouse-selector-widget').trigger('addtocart').hasClass('opening'))\n return;\n\n var id = $wrapper.data(\"productid\"),\n skuId = $wrapper.data(\"variantid\"),\n path = $wrapper.data(\"path\"),\n qty = $('.qty-select.js-selector', $wrapper).val();\n\n var itemInfo = {\n minQuantity: $wrapper.data(\"min-quantity\"),\n maxQuantity: $wrapper.data(\"max-quantity\"),\n quanta: $wrapper.data(\"quanta\")\n };\n\n //enhanced info\n var color = $('select [data-is-color=\"true\"].selected', $wrapper).text();\n var size = $('select [data-is-color=\"false\"].selected', $wrapper).text();\n var list = $('ul.related-list').data('list');\n\n var enhancedInfo = { color: color, size: size, list: list };\n //enhanced info\n\n if (qty < 1) return;\n\n Vendd.MessageBus.publishAsync($control.get(0), new Vendd.Cart.Messages.Add(id, skuId, path, qty, '', null, null, itemInfo, enhancedInfo)); \n //Open the widget only for template 1 of Cart Widget\n if ($('.x-cart-widget').data('template') === 1) {\n Vendd.MessageBus.publishAsync($wrapper, new Vendd.Widget.Messages.OpenWidget(Vendd.Widget.CartWidget, false));\n }\n });\n\n wrapper.loading = function (loading) {\n if (loading) {\n $wrapper.addClass('x-loading');\n } else {\n $wrapper.removeClass('x-loading');\n };\n };\n\n wrapper.updateProductInfo = function () {\n var selectedColor = $('.colorlist .js-selector', $wrapper).val();\n if (selectedColor != \"0\") {\n var imgSrc = getImageColor(skuJson, selectedColor);\n if (imgSrc != null) $('.image-container img', $wrapper).attr(\"src\", imgSrc);\n }\n\n if (selectedSku == undefined) {\n $('button.js-add-to-cart', $wrapper).addClass(\"disabled\").attr(\"disabled\", \"disabled\");\n if ($wrapper.hasClass('js-can-add-to-cart')) {\n $wrapper.removeClass('js-can-add-to-cart');\n numOfSelected -= 1;\n if (numOfSelected <= 0) {\n $('.js-add-all-to-cart', $allToCartCont).addClass(\"disabled\").attr(\"disabled\", \"disabled\");\n $allToCartCont.addClass('none-selected');\n totalPrice = 0;\n } else {\n totalPrice -= parseFloat(stringToNumber($wrapper.data('price')));\n }\n }\n $('.js-num-of-selected', $allToCartCont).text(numOfSelected);\n $('.js-total-price', $allToCartCont).text(String(totalPrice.toFixed(2)).replace(\".\", \",\"));\n return;\n }\n $wrapper.data(\"variantid\", selectedSku.SkuId);\n\n if (selectedSku.CanBuy.toLowerCase() == \"true\") {\n $('button.js-add-to-cart', $wrapper).removeClass(\"disabled\").attr(\"disabled\", null);\n if(!$wrapper.hasClass('js-can-add-to-cart')){\n $wrapper.addClass('js-can-add-to-cart');\n numOfSelected += 1;\n totalPrice += parseFloat(stringToNumber($wrapper.data('price')));\n $allToCartCont.removeClass('none-selected');\n $('.js-add-all-to-cart', $allToCartCont).removeClass(\"disabled\").attr(\"disabled\", null);\n }\n } else {\n $('button.js-add-to-cart', $wrapper).addClass(\"disabled\").attr(\"disabled\", \"disabled\");\n if ($wrapper.hasClass('js-can-add-to-cart')) {\n $wrapper.removeClass('js-can-add-to-cart');\n numOfSelected -= 1;\n if (numOfSelected <= 0) {\n $('.js-add-all-to-cart', $allToCartCont).addClass(\"disabled\").attr(\"disabled\", \"disabled\");\n $allToCartCont.addClass('none-selected');\n totalPrice = 0;\n } else {\n totalPrice -= parseFloat(stringToNumber($wrapper.data('price')));\n }\n }\n }\n\n $('.js-num-of-selected', $allToCartCont).text(numOfSelected);\n $('.js-total-price', $allToCartCont).text(String(totalPrice.toFixed(2)).replace(\".\", \",\"));\n\n var model = {};\n model.Price = {};\n model.Availability = {};\n model.Price.CurrentPrice = selectedSku.UnitPrice;\n model.Price.CurrentPriceText = selectedSku.UnitPriceText;\n model.Price.DeletedPrice = selectedSku.DeletedPrice != \"\" ? selectedSku.DeletedPrice : null;\n model.Price.DeletedPriceText = selectedSku.DeletedPrice != \"\" ? selectedSku.DeletedPriceText : null;\n model.Availability.AvailabilityActionId = selectedSku.AvailabilityActionId\n model.Availability.AvailabilityName = selectedSku.AvailabilityName\n\n var html = Vendd.Handlebars.parse(\"getTheLookPrices_A\", model);\n $('.prices-container', $wrapper).html(html);\n\n }\n\n wrapper.updateQuantity = function () {\n var html = \"\";\n if (selectedSku == undefined) {\n \n $('.x-product-details-quantity-selector', $wrapper).html(html);\n $('.x-product-details-quantity-selector', $wrapper).addClass('disabled').find('select').prop('disabled', true);\n return;\n }\n var model = {};\n if (selectedSku.CanBuy.toLowerCase() == \"true\") {\n var stock = 10;\n var stockMaxValue = parseFloat(selectedSku.StockMaxValue);\n var minQuantity = selectedSku.MinQuantity != \"\" ? parseFloat(selectedSku.MinQuantity) : 1;\n var maxQuantity = selectedSku.MaxQuantity != \"\" ? parseFloat(selectedSku.MaxQuantity) : stock;\n maxQuantity = Math.max(maxQuantity, stockMaxValue);\n maxQuantity = Math.min(maxQuantity, stock);\n var quanta = selectedSku.Quanta != \"\" ? parseFloat(selectedSku.Quanta) : 1;\n var index = 1;\n var quantity = minQuantity * quanta;\n var selectedValue = $('.qty-select.js-selector', $wrapper).length > 0 ? $('.qty-select.js-selector', $wrapper).val() : quantity;\n selectedValue = selectedValue <= maxQuantity ? selectedValue : quantity;\n do {\n model[index] = { \"Value\": quantity, \"Selected\": quantity == selectedValue }\n quantity = quantity + quanta;\n index++;\n } while (quantity <= maxQuantity && index <= 10);\n html = Vendd.Handlebars.parse(\"pdQuantitySelector_A\", model);\n }\n $('.x-product-details-quantity-selector', $wrapper).html(html);\n }\n\n wrapper.updateSizes();\n var selectedSku = getSKU(skuJson, $('.colorlist .js-selector', $wrapper).val(), $('.sizelist .js-selector', $wrapper).val());\n wrapper.updateProductInfo();\n wrapper.updateQuantity();\n if (selectedSku && selectedSku.color == \"0\") $('.colorlist .js-selector', $wrapper).hide();\n if (selectedSku && selectedSku.size == \"0\") $('.sizelist .js-selector', $wrapper).hide();\n }\n });\n\n function gtlSlider() {\n\n var $wrapper = $('.get-the-look-details-page');\n\n var $list = $('.js-related-products > ul', $wrapper);\n\n $list.on('init', function () {\n $('.gtl-item', $list).removeClass('last-visible');\n $('.gtl-item.slick-active', $list).eq($('.gtl-item.slick-active').length - 1).addClass('last-visible');\n });\n $list.on('afterChange', function () {\n $('.gtl-item', $list).removeClass('last-visible');\n $('.gtl-item.slick-active', $list).eq($('.gtl-item.slick-active').length - 1).addClass('last-visible');\n });\n $list.on('swipe', function () {\n $('.gtl-item', $list).removeClass('last-visible');\n $('.gtl-item.slick-active', $list).eq($('.gtl-item.slick-active').length - 1).addClass('last-visible');\n });\n\n updateListSlick($list);\n\n var resizeEvent;\n $(window).resize(function () {\n clearTimeout(resizeEvent);\n resizeEvent = setTimeout(function () {\n updateListSlick($list);\n }, 300);\n });\n }\n\n function updateListSlick(list) {\n var carouselCartOpts = {\n vertical: true,\n verticalSwiping: true,\n slidesToShow: 3,\n slidesToScroll: 3,\n infinite: false,\n prevArrow: $('.js-related-products .nav-prev'),\n nextArrow: $('.js-related-products .nav-next')\n };\n if (list.children().length > 3) {\n list.slick(carouselCartOpts);\n list.siblings('.nav').show();\n list.addClass('js-slick-initialised');\n }\n }\n\n function getSKU(skuJson, color,size) {\n return _.first(_.filter(skuJson.skus, function (sku) { return sku.color == color && sku.size == size; }));\n }\n\n function getSizes(skuJson, color) {\n var allSizes=(_.filter(skuJson.skus, function (sku) { return sku.color == color }));\n return _.map(allSizes,function(obj) {return obj.size;});\n }\n\n function getColors(skuJson, size) {\n var allColors = (_.filter(skuJson.skus, function (sku) { return sku.size == size }));\n return _.map(allColors, function (obj) { return obj.color; });\n }\n\n function getImageColor(skuJson, color) {\n if (skuJson.ColorDimensions[color] == undefined) return null;\n if (skuJson.ColorDimensions[color][0] == undefined) return null;\n return skuJson.ColorDimensions[color][0]['List'];\n }\n\n var currency = decodeEntities(LhApp.Context.Currency.Symbol);\n\n $('.currency-symbol', $allToCartCont).text(currency);\n\n $('.js-add-all-to-cart', $allToCartCont).click(function () {\n\n if ($(this).hasClass('disabled') || $(this).is(':disabled'))\n return;\n\n var dataArray = [];\n\n $.each($boxes, function (i, el) {\n var $wrapper = $(this);\n if ($wrapper.hasClass('js-can-add-to-cart')) { \n var data = {};\n \n var id = $wrapper.data(\"productid\"),\n skuId = $wrapper.data(\"variantid\"),\n path = $wrapper.data(\"path\"),\n qty = $('.qty-select.js-selector', $wrapper).val();\n\n var data = {\n id: id,\n skuId: skuId,\n path: path,\n qty: qty\n };\n\n dataArray.push(data);\n }\n });\n Vendd.MessageBus.publishAsync($control.get(0), new Vendd.Cart.Messages.MultipleAdd(dataArray));\n //Open the widget only for template 1 of Cart Widget\n if ($('.x-cart-widget').data('template') === 1) {\n Vendd.MessageBus.publishAsync($wrapper, new Vendd.Widget.Messages.OpenWidget(Vendd.Widget.CartWidget, false));\n }\n });\n\n $('.js-related-products').removeClass('x-loading');\n\n});\n","Vendd.Scripts.load(function () {\n var $wrapper = $('.gallery-look-container');\n\n initCarousel();\n initFancybox();\n\n function initCarousel() {\n var $mainGallery = $('> ul', $wrapper);\n\n if ($mainGallery.length < 1)\n return;\n\n var carouselMainOpts = {\n slidesToShow: 1,\n slidesToScroll: 1,\n infinite: false,\n adaptiveHeight: true,\n draggable: false,\n prevArrow: $('.nav-prev', $wrapper),\n nextArrow: $('.nav-next', $wrapper),\n dots: true\n };\n\n $mainGallery.slick(carouselMainOpts);\n };\n\n function initFancybox() {\n\n var $fancyLinks = $('.look-fancybox-gallery', $wrapper);\n\n\n if ($fancyLinks.length < 1)\n return;\n\n var fbOpts = {\n protect: true,\n infobar: true\n };\n\n $fancyLinks.fancybox(fbOpts);\n\n $('.fancy-btn', $wrapper).on('click', function (e) {\n var $slideWrapper = $('.slick-initialized', $wrapper);\n if ($slideWrapper.length > 0) {\n $('.slick-active', $slideWrapper).find('.look-fancybox-gallery').trigger('click');\n }\n\n });\n };\n});\n","Vendd.Scripts.load(function () {\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'product-details-ajax-buttons', function (envelope) {\n\n var $context = envelope.message.data.context,\n $control = $('.x-product-details-ajax-buttons', $context);\n\n if ($control.length < 1)\n return;\n\n $control.on('click', '.js-add-to-cart', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n\n if ($this.hasClass('disabled') || $this.is(':disabled'))\n return;\n if ($('.x-warehouse-selector-widget').trigger('addtocart').hasClass('opening'))\n return;\n\n var state = Vendd.Product.Controller.getState();\n var id = state.parentId,\n skuId = state.selectedId,\n colorId = state.selectedColorId,\n path = state.path,\n qty = (state.qty ? stringToNumber(state.qty) : null) || 1,\n extraAttributes = [],\n bundleItems = state.bundleItems,\n recipeItems = state.recipeItems,\n comboItems = state.comboItems;\n\n $('.x-editable-extra-properties .editable-attribute').each(function (el) {\n var $attr = $(this);\n var code = $attr.data('attribute');\n var value = $('input', $attr).val();\n extraAttributes.push({ code: code, value: value });\n\n });\n var itemInfo = {\n minQuantity: state.minQuantity,\n maxQuantity: state.maxQuantity,\n quanta: state.quanta\n };\n\n var enhancedInfo = { color: '', size: '', list: 'productDetails', colorId: colorId };\n\n if ($this.closest('.x-product-details-sticky-bar').length > 0) {\n $('html, body').animate({ scrollTop: 30 }, 1);\n }\n\n var vendd = getParentOrSelfVendd();\n vendd.MessageBus.publishAsync($control.get(0), new vendd.Cart.Messages.Add(id, skuId, path, qty, '', extraAttributes, bundleItems, recipeItems, comboItems, itemInfo, enhancedInfo));\n //Open the widget only for template 1 of Cart Widget\n if ($('.x-cart-widget').data('template') === 1) {\n Vendd.MessageBus.publishAsync($wrapper, new Vendd.Widget.Messages.OpenWidget(Vendd.Widget.CartWidget, false));\n }\n });\n\n $control.on('click', '.js-add-to-wishlist', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n\n if ($this.closest('.wishlist-button').hasClass('x-disabled'))\n return;\n\n var state = Vendd.Product.Controller.getState();\n var id = state.parentId,\n skuId = state.selectedId,\n path = state.path,\n qty = (state.qty ? stringToNumber(state.qty) : null) || 1,\n extraAttributes = [],\n bundleItems = state.bundleItems;\n\n if (LhApp.Context.MultipleWishlistsEnabled && $('.js-wishlist-lists', $control).length > 0) {\n LhApp.Function.hideAllProductWishlists();\n var product = { id: id, skuId: skuId, path: path, qty: qty };\n LhApp.Function.showProductWishlists($control, product);\n } else {\n Vendd.MessageBus.publishAsync($control.get(0), new Vendd.Wishlist.Messages.Add(id, skuId, path, qty, extraAttributes, bundleItems));\n }\n });\n\n $control.on('click', '.js-remove-from-wishlist', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n\n if ($this.closest('.wishlist-button').hasClass('x-disabled'))\n return;\n\n var state = Vendd.Product.Controller.getState();\n var skuId = state.selectedId;\n var wishlistModel = JSON.parse(localStorage.getItem(\"CurrentWishlistModel\"));\n var selectedsku = _.find(wishlistModel.Items, function (item) { return skuId === item.VariantId });\n var wishlistItemId = selectedsku.Id;\n\n Vendd.MessageBus.publishAsync($control.get(0), new Vendd.Wishlist.Messages.Remove(wishlistItemId));\n });\n\n $control.on('click', '.js-show-recipe', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n\n if ($this.hasClass('disabled') || $this.is(':disabled'))\n return;\n\n $this.addClass('active');\n\n var state = Vendd.Product.Controller.getState();\n var id = state.parentId,\n skuId = state.selectedId,\n path = state.path,\n qty = (state.qty ? stringToNumber(state.qty) : null) || 1,\n extraAttributes = [],\n bundleItems = state.bundleItems;\n\n var vendd = getParentOrSelfVendd();\n vendd.MessageBus.publishAsync($control.get(0), new vendd.Recipe.Messages.GetModel(id));\n });\n\n $control.on('click', '.js-add-to-compare', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n if ($(this).closest('.compare-button').hasClass('x-disabled'))\n return;\n\n var state = Vendd.Product.Controller.getState();\n var id = state.parentId,\n skuId = state.selectedId;\n\n Vendd.MessageBus.publishAsync($control.get(0), new Vendd.ProductCompare.Messages.Add(id, skuId));\n\n if ($('.x-productcompare-widget').data('template') === 1) {\n vendd.MessageBus.publishAsync($control.get(0), new vendd.Widget.Messages.OpenWidget(vendd.Widget.ProductCompareWidget, false));\n }\n });\n\n $control.on('click', '.js-remove-from-compare', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this), $product, compareItemtId;\n\n if ($this.closest('.compare-button').hasClass('x-disabled'))\n return;\n\n var state = Vendd.Product.Controller.getState();\n var id = state.parentId;\n\n Vendd.MessageBus.publishAsync($control.get(0), new Vendd.ProductCompare.Messages.Remove(id));\n });\n\n $control.on('click', '.js-quick-view', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n\n if ($this.hasClass('disabled') || $this.is(':disabled'))\n return;\n\n var state = Vendd.Product.Controller.getState();\n var id = state.parentId,\n skuId = state.selectedId,\n path = state.path,\n qty = ($('input[name=\"qty\"]').val() ? stringToNumber($('input[name=\"qty\"]').val()) : null) || 1;\n\n extraAttributes = \"\";\n\n Vendd.MessageBus.publishAsync($control.get(0), new Vendd.Cart.Messages.Add(id, skuId, path, qty, extraAttributes));\n //Open the widget only for template 1 of Cart Widget\n if ($('.x-cart-widget').data('template') === 1) {\n Vendd.MessageBus.publishAsync($wrapper, new Vendd.Widget.Messages.OpenWidget(Vendd.Widget.CartWidget, false));\n }\n var path = $('.x-product-details').data('path');\n var Href = '/pages/productdetailspopup.aspx?iid=' + id + '&path=' + path + '&Quantity=' + qty;\n $.fancybox.open({\n href: Href,\n type: 'iframe',\n maxWidth: 1040,\n //maxHeight: 745,\n fitToView: false,\n //width: '100%',\n //height: '100%',\n autoSize: false,\n closeClick: false,\n openEffect: 'none',\n closeEffect: 'none',\n padding: 0,\n beforeShow: function () {\n this.width = ($('.fancybox-iframe').contents().find('.product-details-popup').width());\n this.height = ($('.fancybox-iframe').contents().find('html').height());\n }\n });\n });\n\n $control.on('click', '.js-add-sku-to-cart', function (e) {\n\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this),\n $box, $qty, $tooltip,\n id, skuId, path, qty, extraAttributes, bundleItems;\n\n if ($this.hasClass('disabled') || $this.is(':disabled'))\n return;\n\n $box = $this.closest('.sku-product-box');\n $tooltip = $('.js-tooltip', $box);\n $qty = $('.js-qty-input', $box);\n\n id = $box.data('productid');\n skuId = $box.data('variantid');\n path = $box.data('path');\n\n qty = ($qty.val() ? stringToNumber($qty.val()) : null) || 0;\n extraAttributes = [];\n bundleItems = [];\n recipeItems = [];\n comboItems = [];\n\n if ($this.hasClass('inactive')) {\n $tooltip.addClass('visible');\n setTimeout(function () {\n $tooltip.removeClass('visible');\n }, 3000);\n return;\n }\n\n var itemInfo = {\n minQuantity: parseInt($box.data('min-quantity') || 0),\n maxQuantity: parseInt($box.data('max-quantity') || 0),\n quanta: parseInt($box.data('quanta') || 0)\n };\n\n var state = Vendd.Product.Controller.getState();\n var enhancedInfo = { color: '', size: '', list: 'productDetails', colorId: state.selectedColorId };\n\n\n Vendd.MessageBus.publishAsync($box.get(0), new Vendd.Cart.Messages.Add(id, skuId, path, qty, '', extraAttributes, bundleItems, recipeItems, comboItems, itemInfo, enhancedInfo));\n //Open the widget only for template 1 of Cart Widget\n if ($('.x-cart-widget').data('template') === 1) {\n Vendd.MessageBus.publishAsync($wrapper, new Vendd.Widget.Messages.OpenWidget(Vendd.Widget.CartWidget, false));\n }\n });\n\n $control.on('click', '.js-notify-button', function (e) {\n\n var $this = $(this);\n var $productWrapper = $('.x-product-details'),\n $availabilityForm = $('.x-product-details-availability-notification', $productWrapper);\n\n if ($productWrapper.length < 1)\n return;\n\n if ($availabilityForm.hasClass('hidden')) {\n $availabilityForm.removeClass('hidden');\n } else {\n $availabilityForm.addClass('hidden');\n }\n });\n\n /* -------- Product Info Component Buttons --------------*/\n\n $control.on('click', '.js-open-form, .js-open-map', function (e) {\n e.preventDefault();\n e.stopPropagation();\n var $this = $(this);\n\n var index = $this.data('tab-index');\n\n if ($(window).width() < 960) {\n //triger click - open tab\n $('.x-pd-tab-panel .tab-content .mb-title[data-tab-index=' + index + ']').trigger('click');\n //scroll to tab\n $('html, body').animate({ scrollTop: $('.x-pd-tab-panel .tab-content .mb-title[data-tab-index=' + index + ']').offset().top }, 400);\n } else {\n //trigger click - open tab\n $('.x-pd-tab-panel .tab-title .mb-title[data-tab-index=' + index + ']').trigger('click');\n }\n\n });\n\n $(document).on('click', function (e) {\n var $productWrapper = $('.x-product-details'),\n $availabilityForm = $('.x-product-details-availability-notification', $productWrapper),\n $notifyBtn = $('.js-notify-button', $productWrapper);\n if (!$availabilityForm.is(e.target)\n && $availabilityForm.has(e.target).length === 0\n && !$notifyBtn.is(e.target)\n && $notifyBtn.has(e.target).length === 0) {\n\n $availabilityForm.addClass('hidden');\n }\n });\n\n });\n\n});\n\n","Vendd.Scripts.load(function () {\n var $form = $('.x-contact-form'), $submitButton, form, formData, filedata;\n\n if ($form.length < 1)\n return;\n\n $submitButton = $('.js-submit-button', $form);\n\n form = $form.get(0);\n\n formData = {\n firstName: $(\"input[name='firstName']\", $form).val() ? $(\"input[name='firstName']\", $form).val() : \"\",\n lastName: $(\"input[name='lastName']\", $form).val() ? $(\"input[name='lastName']\", $form).val() : \"\",\n email: $(\"input[name='email']\", $form).val() ? $(\"input[name='email']\", $form).val() : \"\",\n message: $(\"textarea[name='message']\", $form).val() ? $(\"textarea[name='message']\", $form).val() : \"\",\n newsletter: false,\n subject: $(\"select[name='subject']\", $form).val() ? $(\"select[name='subject']\", $form).val() : \"\",\n reCaptchaCode: \"\",\n contactFileUpload: \"\"\n };\n // reCAPTCHA\n var captchaId = \"contactCaptcha\";\n var captchaWidgetId;\n var $captchaElement = $form.find(\"#\" + captchaId);\n var $captchaContainer = $form.find('.recaptcha-container');\n var captchaEnabled = $captchaElement.length > 0 ? true : false;\n var $fileUploadElement = $form.find(\"#cwfileupload\");\n var fileUploadEnabled = $fileUploadElement.length > 0 ? true : false;\n var subjectEnabled = $('.x-contact-form .form-row select[name=subject]').length > 0;\n\n form.initRecaptcha = function () {\n\n if (!captchaEnabled)\n return;\n\n var sitekey = $captchaElement.data(\"sitekey\");\n if (sitekey) {\n captchaEnabled = true;\n captchaWidgetId = grecaptcha.render(captchaId, {\n 'sitekey': sitekey,\n 'callback': form.recaptchaCallback\n });\n }\n };\n\n form.recaptchaCallback = function () {\n form.validateRecaptcha();\n };\n\n form.resetRecaptcha = function () {\n // Website must only verify the user's reCAPTCHA response token (g-recaptcha-response) once. \n // If a verify attempt has been made with a particular token, it cannot be used again. \n // Call grecaptcha.reset() to ask the end user to verify with reCAPTCHA again.\n if (captchaEnabled)\n grecaptcha.reset(captchaWidgetId);\n };\n\n form.removeRecaptcha = function () {\n $captchaElement.remove();\n };\n\n form.validateRecaptcha = function () {\n if (!captchaEnabled)\n return true;\n\n formData.reCaptchaCode = $captchaElement.find('.g-recaptcha-response').val();\n\n var res = false;\n\n if (formData.reCaptchaCode) {\n $captchaContainer.find('.recaptcha-required').removeClass('error');\n res = true;\n }\n else {\n $captchaContainer.find('.recaptcha-required').addClass('error');\n }\n\n return res;\n };\n\n form.validateFileUpload = function () {\n if (!fileUploadEnabled)\n return true;\n\n if ($(\"#cwfileupload\", $form).data(\"mandatoryfileupload\") === \"True\" && $(\"#cwfileupload\", $form).get(0).files.length === 0) {\n $('.cwfileupload-required', $form).show();\n return false;\n }\n\n return true;\n };\n\n form.loading = function (loading) {\n if (loading) {\n $form.addClass('x-loading');\n } else {\n $form.removeClass('x-loading');\n }\n };\n\n form.onSuccess = function (envelope) {\n form.loading(false);\n\n var data = envelope.message.data;\n\n if (data.success && data.code === \"Contact_OperationSuccesful\") {\n $('.js-error', $form).hide();\n $('.js-content', $form).hide();\n $('.js-success', $form).show();\n\n $('html,body').animate({ scrollTop: $('.js-success', $form).offset().top - 100 }, 400);\n\n /* Track Contact */\n if (typeof fbPixelTracker !== 'undefined' && typeof fbPixelCanTrack !== 'undefined') {\n if (fbPixelTracker && fbPixelTracker.Properties.FacebookPixelId && fbPixelCanTrack) {\n fbq('track', 'Contact');\n }\n }\n /* END Track Contact */\n\n form.removeRecaptcha();\n form.reset();\n } else {\n $('.js-error', $form).show();\n form.resetRecaptcha();\n };\n };\n\n form.onFailure = function (envelope) {\n form.loading(false);\n\n $('.js-error', $form).show();\n };\n\n form.checkConsents = function () {\n var data = [];\n\n var checkboxes = $('.form-row.consent.checkbox');\n $.each(checkboxes, function (e, el) {\n var chkbx = $('.checkbox-wrapper input', el);\n data.push({ type: chkbx.attr('id'), source: 'Contact Form', approved: chkbx.prop(\"checked\") });\n });\n\n if (data.length > 0) {\n window.ConsentsManager.insertConsents(data);\n } else {\n if (filedata)\n filedata.submit();\n else\n form.submit();\n }\n\n }\n\n form.submit = function () {\n form.loading(true);\n\n if ($('#chkNewsletter').length > 0) formData.newsletter = $('#chkNewsletter').prop(\"checked\");\n\n Vendd.MessageBus.publishAsync(form, new Vendd.Contact.Messages.Submit(\n formData.email,\n formData.firstName,\n formData.lastName,\n formData.message,\n formData.newsletter,\n '', '', '', '', '', '',\n formData.reCaptchaCode,\n subjectEnabled ? formData.subject : 0,\n formData.contactFileUpload\n ));\n };\n\n form.reset = function () {\n $('input[name=\"firstName\"]', $form).val(\"\");\n $('input[name=\"lastName\"]', $form).val(\"\");\n $('input[name=\"email\"]', $form).val(\"\");\n $('textarea[name=\"message\"]', $form).val(\"\");\n $('select[name=\"subject\"]', $form).val(\"\");\n $('input[name=\"PrivacyPolicy\"]', $form).prop('checked', false);\n cf.reset();\n };\n\n form.clearUploadErros = function () {\n $('.cwfileupload-required', $form).hide();\n $('.cwfileupload-invalid', $form).hide();\n $('.cwfileupload-exceeds-max-size', $form).hide();\n };\n\n form.submitSelector = function () {\n if (filedata)\n filedata.submit();\n else\n form.submit();\n };\n\n $form.on('click', '.js-submit-button', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var val1 = cf.validate();\n var val2 = form.validateRecaptcha();\n var val3 = form.validateFileUpload();\n\n if (val1 && val2 && val3) {\n if (LhApp.Context.IsConsentsEnabled) {\n form.checkConsents();\n } else {\n if (filedata)\n filedata.submit();\n else\n form.submit();\n }\n } else {\n if ($('.form-row.with-error', $form).length > 0) {\n $('html,body').animate({ scrollTop: $('.form-row.with-error').first().offset().top - 100 }, 400);\n }\n }\n\n });\n\n $form.on('click', '.js-reset-button', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n form.reset();\n });\n\n $form.on('blur', 'input[name]:not([type=\"checkbox\"]), textarea[name]', function (e) {\n form.setField($(this));\n });\n\n $form.on('keyup', 'input[name]:not([type=\"checkbox\"]), textarea[name]', function (e) {\n form.setField($(this));\n });\n\n $form.on('change', 'select[name]', function (e) {\n form.setField($(this));\n });\n\n form.setField = function (field) {\n\n var fieldName = field.attr('name');\n\n formData[fieldName] = field.val() || 0;\n\n cf.validate(fieldName);\n }\n\n //init validation options\n var validationOptions = {\n firstName: {\n required: 'firstname-required'\n },\n lastName: {\n required: 'lastname-required'\n },\n email: {\n required: 'email-required',\n isEmail: 'email-invalid'\n },\n message: {\n required: 'message-required'\n }\n };\n if (subjectEnabled) {\n validationOptions.subject = {\n required: 'subject-required'\n }\n }\n\n //add consent validations\n $.each($('div.consent.checkbox[data-required]'), function (e, el) {\n var consentType = $('input', el).attr('name');\n validationOptions[consentType] = {\n checkboxRequired: consentType + '-required'\n };\n });\n\n\n $form.validationEngine(validationOptions);\n var cf = $form.data('validationEngine');\n\n if ($(\".view-terms\", $form).length > 0) {\n $(\".view-terms\", $form).fancybox({\n touch: false\n });\n }\n\n var $consents = $('.form-row.consent input[type=\"checkbox\"]', $form);\n\n $consents.on('click', function () {\n var fieldName = $(this).attr('name');\n\n cf.validate(fieldName);\n });\n\n $('.cwfileupload', $form).on('click', function () {\n $('.cwuploaded-file', $form).hide();\n $('.cwuploaded-file .text', $form).text('');\n });\n\n $('.cwfileupload', $form).fileupload({\n dataType: 'json',\n url: '/Engine/UploadContactFiles',\n autoUpload: false,\n replaceFileInput: false,\n fileInput: $(\"input:file\"),\n multiple: false,\n singleFileUploads: true,\n done: function (e, data) {\n form.submit();\n },\n fail: function (e, data) {\n $('.cwfileupload-invalid', $form).show();\n },\n add: function (e, data) {\n\n form.clearUploadErros();\n formData.contactFileUpload = \"\";\n\n var maxFileSize = $(\"#cwfileupload\", $form).data(\"maxfilesize\");\n\n var fileTypes = $(\"#cwfileupload\", $form).data(\"acceptfiletypes\");\n if (fileTypes) {\n var acceptFileTypes = \"(\\.|\\/)(\" + fileTypes + \")$\";\n acceptFileTypes = new RegExp(acceptFileTypes, \"i\");\n }\n\n var extractExtension = /(?:\\.([^.]+))?$/;\n\n if (acceptFileTypes && data.originalFiles[0]['type'].length && !acceptFileTypes.test(extractExtension.exec(data.originalFiles[0].name)[0])) {\n $('.cwfileupload-invalid', $form).show();\n }\n else if (data.originalFiles[0]['size'] > maxFileSize) {\n $('.cwfileupload-exceeds-max-size', $form).show();\n }\n else {\n $('.cwuploaded-file', $form).show();\n $('.cwuploaded-file .text', $form).text(data.files[0].name);\n $('.cwuploaded-file .js-delete-file', $form).on('click', function (event) {\n event.preventDefault();\n\n form.clearUploadErros();\n\n $('.cwfileupload', $form).val('');\n $('.cwuploaded-file', $form).hide();\n $('.cwuploaded-file .text', $form).empty();\n\n data.files.length = 0;\n\n filedata = null;\n formData.contactFileUpload = \"\";\n });\n filedata = data;\n formData.contactFileUpload = data.files[0].name;\n }\n }\n });\n\n Vendd.MessageBus.subscribe(Vendd.Contact.Messages.SubmitSuccess, form, form.onSuccess);\n Vendd.MessageBus.subscribe(Vendd.Contact.Messages.SubmitFailure, form, form.onFailure);\n Vendd.MessageBus.subscribe(Vendd.Plugins.Messages.RecaptcaLoaded, form, form.initRecaptcha);\n Vendd.MessageBus.subscribe(Vendd.Consents.Messages.InsertConsents, form, form.submitSelector);\n});\n\n","Vendd.Scripts.load(function () {\n\n\tVendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'product-details-availability-notification', function (envelope) {\n\n var $context = envelope.message.data.context,\n $form = $('.x-product-details-availability-notification', $context);\n\n if ($form.length < 1)\n return;\n\n $form.each(function () {\n\n var form = $(this),\n $formButton = $('.js-submit', form), \n formData = { email: \"\" };\n\n form.loading = function (loading) {\n if (loading) {\n form.addClass('x-loading');\n } else {\n form.removeClass('x-loading');\n };\n };\n\n form.onSuccess = function (envelope) {\n var response = envelope.message.data;\n var sender = envelope.message.data.sender;\n if (form && sender && form == sender) {\n form.loading(false);\n\n if (response.success) {\n $('.js-error', form).hide();\n $('.js-success', form).show();\n\n $('.js-content', form).hide();\n } else {\n $('.js-error', form).show();\n };\n }\n };\n\n form.onFailure = function (envelope) {\n var response = envelope.message.data;\n var sender = envelope.message.data.sender;\n if (form && sender && form == sender) {\n form.loading(false);\n\n $('.js-error', form).show();\n }\n };\n\n form.submit = function () {\n form.loading(true);\n var selectedId, state = Vendd.Product.Controller.getState();\n\n if (form.closest('.x-product-variant-box').length > 0) {\n selectedId = form.closest('.x-product-variant-box').attr('data-variantid');\n } else {\n selectedId = state.selectedId;\n }\n\n Vendd.MessageBus.publishAsync(form, new Vendd.Product.Messages.Notify(formData.email, selectedId, state.languageId));\n };\n\n form.reset = function () {\n $('.js-error', form).hide();\n $('.js-success', form).hide();\n\n $('input[name=\"email\"]', form).val(\"\");\n\n $('.js-content', form).hide();\n\n rnf.reset();\n };\n\n form.validationEngine({\n email: {\n required: 'email-required',\n isEmail: 'email-invalid'\n }\n });\n var rnf = form.data('validationEngine');\n\n form.on('click', '.js-submit', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n formData.email = $('input[name=\"email\"]', form).val();\n\n if (rnf.validate())\n form.submit();\n });\n\n form.on('keyup', 'input[name]', function (e) {\n var $this = $(this);\n\n if (e.keyCode == 13) {\n e.preventDefault();\n e.stopPropagation();\n\n $formButton.click();\n\n return;\n }\n\n formData[$this.attr('name')] = $this.val();\n\n rnf.validate($this.attr('name'));\n });\n\n Vendd.MessageBus.unsubscribe(Vendd.Product.Messages.NotifySuccess, form);\n Vendd.MessageBus.unsubscribe(Vendd.Product.Messages.NotifyFailure, form);\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.NotifySuccess, form, form.onSuccess);\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.NotifyFailure, form, form.onFailure);\n });\n });\n\n});","Vendd.Scripts.load(function () {\n\n var doSetBundleItems = function (control, parentId, skuId, quantity) {\n\n var state = Vendd.Product.Controller.getState();\n var bundleItems = state.bundleItems;\n\n for (var i = 0; i < bundleItems.length; i++) {\n if (bundleItems[i].parentProductId === parentId) {\n\n if (!!skuId) \n bundleItems[i].productId = skuId;\n\n quantity = quantity || 0;\n if (quantity >= 0)\n bundleItems[i].quantity = quantity;\n }\n }\n\n Vendd.MessageBus.publishAsync(control, new Vendd.Product.Messages.SetBundleItems(bundleItems));\n }\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'product-details-bundleitems', function (envelope) {\n\n var $context = envelope.message.data.context,\n $bundleItemList = $('.x-product-details-bundleitems .js-bundle-item-list', $context),\n $controls = $('.js-bundle-item', $bundleItemList);\n\n if ($controls.length < 1)\n return;\n\n $.each($controls, function (i, control) {\n var $control = $(control);\n var parentProductId = $control.data('parent-id');\n var productId = $control.data('selected-id');\n var quantity = 0;\n\n $control.on('change', '.js-quantity', function (e) {\n \n var $this = $(this);\n quantity = parseInt($this.val());\n\n doSetBundleItems(control, parentProductId, productId, quantity);\n });\n\n var $versionSelector = $('.x-product-details-version-selector', $control);\n\n if ($versionSelector.data('type') === 'list') {\n\n $versionSelector.on('click', '.js-bundle-item-version-selector', function (e) {\n\n var $this = $(this);\n if ($this.hasClass('selected'))\n return;\n\n productId = parseInt($this.data('value'));\n\n doSetBundleItems(control, parentProductId, productId, null);\n });\n };\n\n if ($versionSelector.data('type') === 'dropdown') {\n\n $versionSelector.on('change', '.js-bundle-item-version-selector', function (e) {\n\n var $this = $(this);\n\n productId = parseInt($this.val());\n\n doSetBundleItems(control, parentProductId, productId, null);\n });\n };\n\n\n\n });\n });\n});\n","Vendd.Scripts.load(function () {\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'product-details-delivery-availability', function (envelope) {\n\n var $context = envelope.message.data.context,\n $control = $('.x-product-details-delivery-availability', $context),\n $content = $('.delivery-availability-wrapper', $control);\n\n if ($control.length < 1)\n return;\n\n var control = $control.get(0);\n var $resultsContainer = $('.results-container', $content);\n\n control.setDeliveryPointService;\n\n $content.on('keyup', 'input', function (e) {\n if (e.keyCode === 13) {\n e.preventDefault();\n e.stopPropagation();\n $('.js-submit', $content).trigger('click');\n return;\n }\n }); \n\n $content.on('click', '.js-submit', function (e) {\n\n e.preventDefault();\n e.stopPropagation();\n\n if ($(this).hasClass(\"disabled\")) return;\n if ($content.hasClass('x-loading')) return;\n\n $content.addClass('x-loading'); \n\n control.skuId = $content.data(\"skuid\"); \n control.quantity = $('.qty-spinner-input').val() || 1;\n control.postalCode = $('.js-search-term', $content).val();\n\n var variantArray = [];\n var variant = {\n VariantId: control.skuId,\n Quantity: control.quantity\n };\n variantArray.push(variant);\n\n Vendd.MessageBus.publishAsync(control, new Vendd.Product.Messages.GetDeliveryAvailability(variantArray, control.postalCode, null, true));\n });\n\n $('.js-show-delivery-availability', $control).fancybox({\n padding: 0,\n width: 450,\n touch: false \n });\n \n control.hideForm = function () {\n $('.js-delivery-availability-form', $content).hide();\n $('.form-msg .js-error', $content).show();\n };\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.GetDeliveryAvailabilitySuccess, control, function (envelope) {\n var data = envelope.message.data;\n\n //Set Delivery Availability Id\n var availability = data.DeliveryAvailabilities[0].Message;\n var availabilityId;\n if (data.DeliveryAvailabilities[0].MaxDays == null && data.DeliveryAvailabilities[0].MinDays == null) {\n availabilityId = 1;\n } else {\n availabilityId = 3;\n }\n\n //Show Delivery Availability\n $('.x-product-details .lazyload-availability-container > span').remove();\n $('.x-product-details .lazyload-availability-container').append('' + availability + '');\n\n control.setDeliveryPointService = $.Deferred();\n\n //Function for setDeliveryPoint Service ajax call\n var deliveryPointId = 1;\n setDeliveryPoint(deliveryPointId);\n\n $.when(control.setDeliveryPointService)\n .done(function (setDeliveryPointResolve) { \n //Create cookie for Delivery Postal Code\n if (control.postalCode)\n Cookies.set('DeliveryPostalCode', control.postalCode, { expires: 1/24 });\n //get model of delivery point\n if ($('.x-deliverypoint-widget-a').length > 0) {\n Vendd.MessageBus.publish($('.x-deliverypoint-widget-a'), new Vendd.DeliveryPoint.Messages.GetModel());\n }\n //close pop up\n $.fancybox.close();\n $content.removeClass('x-loading');\n }); \n });\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.GetAvailableWarehousesFailure, control, function (envelope) { });\n\n //setDeliveryPoint Service ajax call\n function setDeliveryPoint(deliveryPointId) {\n $.ajax({\n type: \"post\",\n url: \"/Services/api/DeliveryPoint/SetDeliveryPoint\",\n data: {\n deliveryPointId: deliveryPointId\n },\n dataType: \"json\",\n statusCode: {\n 200: function (response) {\n //Resolve\n control.setDeliveryPointService.resolve(response);\n },\n 404: function (response) {\n control.setDeliveryPointService.reject();\n console.log(\"error\");\n },\n 500: function (response) {\n control.setDeliveryPointService.reject();\n console.log(\"error\");\n }\n }\n });\n }\n\n });\n\n});","Vendd.Scripts.load(function () {\n var $wrapper = $('.x-deliverypoint-widget-a');\n var model = null;\n\n if ($wrapper.length < 1)\n return;\n\n var wrapper = $wrapper.get(0);\n\n wrapper.showLoader = function () {\n $wrapper.addClass('x-loading');\n };\n\n wrapper.hideLoader = function () {\n $wrapper.removeClass('x-loading');\n };\n\n wrapper.update = function () {\n var html = Vendd.Handlebars.parse(\"deliveryPointWidget_A\", model);\n $wrapper.html(html);\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Widget.Messages.BindControl($wrapper));\n };\n\n $wrapper.on('click', '.js-remove-store', function (e) {\n e.stopPropagation();\n e.preventDefault();\n //Remove Selected Store\n Vendd.MessageBus.publish(wrapper, new Vendd.DeliveryPoint.Messages.ResetStore());\n });\n\n Vendd.MessageBus.subscribe(Vendd.DeliveryPoint.Messages.GetModelSuccess, wrapper, function (envelope) {\n $wrapper.removeClass('x-loading');\n model = envelope.message.data.model.data;\n\n //Extend model with Delivery Postal Code\n var deliveryPostalCode = Cookies.get('DeliveryPostalCode');\n if (model.HasDeliveryPoint) if (model.DeliveryPoint.Id == 1 && deliveryPostalCode && deliveryPostalCode !== 'undefined') _.extend(model, { HasPostalCode: true, PostalCode: deliveryPostalCode });\n \n wrapper.update();\n });\n\n Vendd.MessageBus.subscribe(Vendd.DeliveryPoint.Messages.GetModelFailed, wrapper, function (envelope) {\n $wrapper.removeClass('x-loading');\n });\n\n Vendd.MessageBus.subscribe(Vendd.DeliveryPoint.Messages.ResetStoreSuccess, wrapper, function (envelope) {\n //Reset Delivery Point\n Vendd.MessageBus.publish(wrapper, new Vendd.DeliveryPoint.Messages.ResetDeliveryPoint());\n //Remove cookie for Delivery Postal Code\n var deliveryPostalCode = Cookies.get('DeliveryPostalCode');\n if (deliveryPostalCode && deliveryPostalCode !== 'undefined') {\n Cookies.remove('DeliveryPostalCode');\n }\n //Remove Lazy Load Availability\n $('.x-product-details .lazyload-availability-container > span').remove();\n \n //reset model\n model = {};\n //update wrapper\n wrapper.update(); \n });\n\n wrapper.showLoader();\n Vendd.MessageBus.publish(wrapper, new Vendd.DeliveryPoint.Messages.GetModel());\n\n});","Vendd.Scripts.load(function () {\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'product-details-quantity-selector', function (envelope) {\n\n var $context = envelope.message.data.context,\n $control = $('.x-product-details-quantity-selector', $context);\n\n if ($control.length < 1)\n return;\n\n var intRegex = /^[0-9]*$/;\n var decRegex = /^[0-9]*(\\.[0-9]+)$/;\n\n var $field = $('.js-selector', $control);\n\n var $first = $control.first();\n var unitType = $first.data('unit-type') ? $first.data('unit-type') : 'int';\n var quanta = $first.data('quanta') ? $first.data('quanta') : 1;\n var minQty = $first.data('min') === '' ? ($first.data('quanta') ? $first.data('quanta') : 1) : $first.data('min');\n var maxQty = $first.data('max') === '' ? null : $first.data('max');\n\n //Icremental Selector\n if ($field.hasClass('free-text') || ($field.hasClass('incremental') && !$field.attr('readonly'))) {\n\n $field.on('keyup change', function (e) {\n var $this = $(this);\n var qty = $this.val();\n\n if (qty >= minQty && (qty <= maxQty || !maxQty)) {\n if (unitType === 'int') {\n qty = parseInt(qty);\n if (quanta) {\n if (qty >= quanta) {\n qty = Math.round(qty / quanta) * quanta;\n } else {\n qty = quanta;\n }\n }\n $field.val(qty);\n }\n else if (unitType === 'decimal') {\n qty = parseFloat(qty);\n if (quanta) {\n if (qty >= quanta) {\n qty = Math.round(qty / quanta) * quanta;\n } else {\n qty = quanta;\n }\n }\n $field.val(qty.toFixed(2));\n }\n } else {\n if (maxQty && $this.val() > maxQty) {\n qty = maxQty;\n $field.val(qty);\n } else { \n if (minQty) {\n qty = minQty;\n if (e.type === \"change\") $field.val(qty);\n } else if (quanta) {\n qty = quanta;\n if (e.type === \"change\") $field.val(qty);\n } else {\n qty = 1;\n if (e.type === \"change\") $field.val(1);\n } \n }\n }\n\n Vendd.MessageBus.publishAsync($control, new Vendd.Product.Messages.SetQuantity(qty));\n });\n\n }\n\n //Icremental Selector\n if ($field.hasClass('incremental')) {\n\n $control.on('click', '.js-minus', function (event) {\n\n if ($control.hasClass('disabled'))\n return;\n\n var $this = $(this), qty;\n\n if (intRegex.test(quanta)) {\n qty = parseInt($field.val()) - parseInt(quanta);\n } else if (decRegex.test(quanta)) {\n qty = parseFloat($field.val()) - parseFloat(quanta);\n qty = qty.toFixed(2);\n }\n\n if (qty >= minQty) {\n $field.val(qty);\n Vendd.MessageBus.publishAsync($control, new Vendd.Product.Messages.SetQuantity(qty));\n }\n });\n\n $control.on('click', '.js-plus', function (event) {\n\n if ($control.hasClass('disabled'))\n return;\n\n var $this = $(this), qty;\n\n if (intRegex.test(quanta)) {\n qty = parseInt($field.val()) + parseInt(quanta);\n } else if (decRegex.test(quanta)) {\n qty = parseFloat($field.val()) + parseFloat(quanta);\n qty = qty.toFixed(2);\n }\n\n if ((maxQty && qty <= maxQty) || !maxQty) {\n $field.val(qty);\n Vendd.MessageBus.publishAsync($control, new Vendd.Product.Messages.SetQuantity(qty));\n }\n\n });\n }\n\n //Dropdown Selector\n if ($field.hasClass('dropdown')) {\n if (!isTouch()) {\n $field.sSelect().change(function () {\n\n var $this = $(this);\n var qty = $this.val();\n $field.val(qty);\n\n Vendd.MessageBus.publishAsync($control, new Vendd.Product.Messages.SetQuantity(qty));\n });\n } else {\n $field.on('change', function () {\n\n var $this = $(this);\n var qty = $this.val();\n $field.val(qty);\n\n Vendd.MessageBus.publishAsync($control, new Vendd.Product.Messages.SetQuantity(qty));\n });\n }\n }\n\n var skuQuanta = ($control.data('quanta') ? stringToNumber($control.data('quanta')) : null) || 0;\n skuQuanta = Vendd.Helpers.isInteger(parseFloat(skuQuanta)) ? parseInt(skuQuanta) : parseFloat(skuQuanta);\n Vendd.MessageBus.publishAsync($control, new Vendd.Product.Messages.SetQuanta(skuQuanta));\n\n });\n\n});","Vendd.Scripts.load(function () {\n\n\t$.extend($.fn, {\n\t\tpdControlDisabled: function (toggleValue) {\n\t\t\tif (toggleValue === undefined) {\n\t\t\t\treturn this.prop('disabled') || this.hasClass('disabled');\n\t\t\t}\n\t\t\tthis.toggleClass('disabled', toggleValue).prop('disabled', toggleValue);\n\t\t\treturn this;\n\t\t},\n\n\t\tpdQuantitySelector: function (options) {\n\t\t\toptions = $.extend({\n\t\t\t\tmin: 0,\n\t\t\t\tmax: undefined,\n\t\t\t\tstep: 1,\n\t\t\t\tvalue: 0\n\t\t\t}, options);\n\n\t\t\tvar useFloats = isFloat(options.min) || isFloat(options.max) || isFloat(options.step);\n\n\t\t\tfunction isFloat(value) {\n\t\t\t\treturn value && parseFloat(value).toFixed(2) !== parseInt(value).toFixed(2);\n\t\t\t}\n\n\t\t\tthis.each(function (i, control) {\n\t\t\t\tvar $control = $(control);\n\t\t\t\tvar $decr = $('.js-qty-decr', $control);\n\t\t\t\tvar $incr = $('.js-qty-incr', $control);\n\t\t\t\tvar $input = $('.js-qty-input', $control);\n\t\t\t\tvar $select = $('.js-qty-select', $control);\n\n\t\t\t\tvar step = clipNumber(parseNumber(options.step) || 1, 1, 99999);\n\t\t\t\tvar min = roundNumber(parseNumber(options.min) || 0, step);\n\t\t\t\tvar max = roundNumber(parseNumber(options.max) || 99999, step); // A really \"large\" number.\n\t\t\t\tvar value = updateValue(parseNumber(options.value));\n\n\t\t\t\tif (!isTouch()) {\n\t\t\t\t\t// NOTE: Might require additional styling.\n\t\t\t\t\t// $select.sSelect();\n\t\t\t\t}\n\n\t\t\t\t// Methods\n\n\t\t\t\tcontrol.quantity = function () {\n\t\t\t\t\treturn value;\n\t\t\t\t};\n\n\t\t\t\t// Bindings\n\n\t\t\t\t$decr.on('click', function () {\n\t\t\t\t\tif (!$decr.pdControlDisabled()) {\n\t\t\t\t\t\tupdateValue(getValue() - step);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$incr.on('click', function () {\n\t\t\t\t\tif (!$incr.pdControlDisabled()) {\n\t\t\t\t\t\tupdateValue(getValue() + step);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$input.on('focusout', function () {\n\t\t\t\t\tupdateValue(getValue() || value);\n\t\t\t\t});\n\n\t\t\t\t$input.on('keyup', function (e) {\n\t\t\t\t\tif (e.keyCode === 13) {\n\t\t\t\t\t\tupdateValue(getValue());\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$select.on('change', function (e) {\n\t\t\t\t\tupdateValue(getValue());\n\t\t\t\t});\n\n\t\t\t\t// Private methods (helpers)\n\n\t\t\t\tfunction isReadOnly() {\n\t\t\t\t\treturn $input.prop('readonly') || $select.prop('readonly');\n\t\t\t\t}\n\n\t\t\t\tfunction updateValue(newValue) {\n\t\t\t\t\tnewValue = setValue(newValue);\n\n\t\t\t\t\tif (value !== newValue) {\n\t\t\t\t\t\tvar oldValue = value;\n\t\t\t\t\t\tvalue = newValue;\n\n\t\t\t\t\t\t$decr.pdControlDisabled(isReadOnly() || value <= min);\n\t\t\t\t\t\t$incr.pdControlDisabled(isReadOnly() || max <= value);\n\n\t\t\t\t\t\tif (oldValue !== undefined) {\n\t\t\t\t\t\t\t$control.trigger('product:change');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn newValue;\n\t\t\t\t}\n\n\t\t\t\tfunction getValue() {\n\t\t\t\t\treturn parseNumber($input.val() || $select.val());\n\t\t\t\t}\n\n\t\t\t\tfunction setValue(value) {\n\t\t\t\t\tvalue = parseNumber(value) || min;\n\t\t\t\t\tvalue = roundNumber(value, step);\n\t\t\t\t\tvalue = clipNumber(value, min, max);\n\t\t\t\t\t$input.val(formatNumber(value));\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\n\t\t\t\tfunction roundNumber(value, step) {\n\t\t\t\t\treturn Math.round(value / step) * step;\n\t\t\t\t}\n\n\t\t\t\tfunction clipNumber(value, minValue, maxValue) {\n\t\t\t\t\treturn Math.min(Math.max(minValue, value), maxValue);\n\t\t\t\t}\n\n\t\t\t\tfunction parseNumber(value) {\n\t\t\t\t\treturn useFloats ? parseFloat(value) : parseInt(value);\n\t\t\t\t}\n\n\t\t\t\tfunction formatNumber(value) {\n\t\t\t\t\treturn useFloats ? value.toFixed(2) : value;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn this;\n\t\t}\n\t});\n});\n\n\n","Vendd.Scripts.load(function () {\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'product-details-version-selector', function (envelope) {\n\n var $context = envelope.message.data.context,\n $control = $('.x-product-details-version-selector', $context);\n\n if ($control.length < 1)\n return;\n\n $.each($control, function (i, control) {\n var $item = $(control);\n\n if ($item.data('type') === 'list') {\n\n $item.on('click', '.js-selector', function (e) {\n\n var $this = $(this);\n\n if ($this.hasClass('selected'))\n return;\n\n $this.addClass('selected');\n\n var id = $this.data('value');\n\n deleteSpinnerInstances();\n\n Vendd.MessageBus.publishAsync(control, new Vendd.Product.Messages.SetSelected({ id: id, visitorInitiated: true }));\n\n if ($(this).closest('.x-product-details-version-selector').hasClass('color'))\n reInitLazyProductLists($this.data('version-id'));\n });\n };\n\n if ($item.data('type') === 'dropdown') {\n\n $item.on('change', '.js-selector', function (e) {\n\n var $this = $(this);\n\n var id = $this.val();\n\n $item.addClass('x-loading');\n\n deleteSpinnerInstances();\n\n Vendd.MessageBus.publishAsync(control, new Vendd.Product.Messages.SetSelected({ id: id, visitorInitiated: true }));\n\n if ($(this).closest('.x-product-details-version-selector').hasClass('color'))\n reInitLazyProductLists($this.data('version-id'));\n });\n\n if (!isTouch()) {\n $('.js-selector', $item).sSelect().change(function () {\n var $this = $(this);\n\n var id = $this.val();\n\n $item.addClass('x-loading');\n\n deleteSpinnerInstances();\n\n Vendd.MessageBus.publishAsync(control, new Vendd.Product.Messages.SetSelected({ id: id, visitorInitiated: true }));\n\n if ($(this).closest('.x-product-details-version-selector').hasClass('color'))\n reInitLazyProductLists($this.data('version-id'));\n });\n }\n };\n\t \n\t if ($item.data('type') === 'sku-table') {\n \n var $tableSkus = $('.js-sku-quantity-selector', $item);\n\n $tableSkus.each(function (index, tableSku) {\n var $tableSku, $box, $addToCartBtn, $incr,\n $decr, $qty, quanta, max, min;\n\n $tableSku = $(tableSku),\n $box = $tableSku.closest(\".sku-product-box\"),\n quanta = $tableSku.data('quanta') || 1,\n max = $tableSku.data('max') || 100000,\n min = $tableSku.data('min') || 1,\n\n \n $qty = $('.js-qty-input', $box),\n $incr = $('.js-qty-incr', $tableSku),\n $decr = $('.js-qty-decr', $tableSku);\n \n if ($tableSku.hasClass('disabled')) return;\n\n $incr.on('click', function () {\n var quantity = stringToNumber($qty.val());\n \n if ($incr.hasClass('disabled')) return;\n\n if (Vendd.Helpers.isInteger(parseFloat(quanta))) {\n quantity = parseInt(quantity) + parseInt(quanta);\n }\n else {\n quantity = parseFloat(quantity) + parseFloat(quanta);\n quantity = parseFloat(quantity).toFixed(2);\n }\n\n updateQuantitiesControl($tableSku, $qty, $incr, $decr, quantity, min, max);\n });\n\n $decr.on('click', function () {\n var quantity = stringToNumber($qty.val());\n\n if ($decr.hasClass('disabled')) return;\n\n if (Vendd.Helpers.isInteger(parseFloat(quanta))) {\n quantity = parseInt(quantity) - parseInt(quanta);\n }\n else {\n quantity = parseFloat(quantity) - parseFloat(quanta);\n quantity = parseFloat(quantity).toFixed(2);\n }\n\n updateQuantitiesControl($tableSku, $qty, $incr, $decr, quantity, min, max);\n });\n\n $qty.on('focusout', function () {\n var quantity = stringToNumber($qty.val());\n\n quantity = Math.round(quantity / quanta) * quanta; //round to nearest quanta\n updateQuantitiesControl($tableSku, $qty, $incr, $decr, quantity, min, max);\n });\n\n\n $qty.on('keyup', function (e) {\n // press enter\n if (e.keyCode == 13) {\n\n var quantity = stringToNumber($qty.val());\n\n quantity = Math.round(quantity / quanta) * quanta; //round to nearest quanta\n updateQuantitiesControl($tableSku, $qty, $incr, $decr, quantity, min, max);\n }\n });\n });\n };\n\t \n function updateQuantitiesControl($wrapper, $qty, $incr, $decr, value, min, max) {\n value = (isNaN(value)) ? min : value;\n\n var $container = $wrapper.closest('.sku-product-box'),\n $addToCartBtn = $('.js-add-sku-to-cart', $container);\n\n if (!$container.length > 0)\n return;\n\n var $price = $('.js-unit-price', $container).html(),\n $targetPrice = $('.js-total-price', $container),\n total, text;\n \n if (parseFloat(value) >= parseFloat(max)) {\n value = parseInt(max);\n $incr.addClass('disabled');\n } else {\n $incr.removeClass('disabled');\n }\n\n if (parseFloat(value) <= parseFloat(min)) {\n value = min;\n $decr.addClass('disabled');\n } else {\n $decr.removeClass('disabled');\n }\n\n\n if (value == 0) {\n // deactivate add to cart button\n $addToCartBtn.addClass('inactive');\n } else {\n //activate add to cart button\n $addToCartBtn.removeClass('inactive').prev().removeClass('visible');\n }\n\n\n \n total = parseFloat(value * stringToNumber($price)).toFixed(2),\n text = numberToString(total, true);\n\n $targetPrice.html(text);\n\n $qty.val(numberToString(value, false, true));\n $qty.change();\n }\n\n });\n });\n});\n","Vendd.Scripts.load(function () {\n\n\tVendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'product-details-version-selector-sku-table', function (envelope) {\n\n\t\tvar $context = envelope.message.data.context,\n\t\t\t$controls = $('.x-product-details-version-selector.sku-table', $context);\n\n\t\tif ($controls.length < 1)\n\t\t\treturn;\n\n\t\t$.each($controls, function (i, control) {\n\t\t\tvar $control = $(control);\n\n\t\t\t// Properties\n\n\t\t\tcontrol.loading = function (loading) {\n\t\t\t\tif (loading === undefined) {\n\t\t\t\t\treturn $control.hasClass('x-loading');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$control.toggleClass('x-loading', loading);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t// Methods\n\n\t\t\tcontrol.init = function () {\n\t\t\t\tvar $productBoxes = $('.x-product-variant-box', $control);\n\n\t\t\t\t$productBoxes.each(function (j, productBox) {\n\t\t\t\t\tvar $productBox = $(productBox);\n\t\t\t\t\tvar $quantitySelector = $('.js-quantity-selector', $productBox).first();\n\t\t\t\t\tvar $unitPriceContainer = $('.js-unit-price', $productBox);\n\t\t\t\t\tvar $unitPriceValue = $('.js-unit-price-value', $unitPriceContainer);\n\t\t\t\t\tvar $totalPriceContainer = $('.js-total-price', $productBox);\n\t\t\t\t\tvar $totalPriceValue = $('.js-total-price-value', $totalPriceContainer);\n\t\t\t\t\tvar $addToCartButton = $('.js-add-to-cart', $productBox);\n\n\t\t\t\t\tvar unitPriceLiteral = $productBox.data('unit-price');\n\t\t\t\t\tvar unitPriceValue = NumberFormatter.parsePrice(unitPriceLiteral);\n\n\t\t\t\t\t// Properties\n\n\t\t\t\t\tproductBox.isEnabled = function () {\n\t\t\t\t\t\treturn (unitPriceValue !== undefined);\n\t\t\t\t\t};\n\n\t\t\t\t\tproductBox.selectedQuantity = function () {\n\t\t\t\t\t\treturn productBox.isEnabled() ? $quantitySelector.get(0).quantity() : undefined;\n\t\t\t\t\t};\n\n\t\t\t\t\tproductBox.unitPrice = function () {\n\t\t\t\t\t\treturn unitPriceValue; // NOTE: Might be undefined\n\t\t\t\t\t};\n\n\t\t\t\t\tproductBox.totalPrice = function () {\n\t\t\t\t\t\treturn productBox.unitPrice() * productBox.selectedQuantity(); // NOTE: Might be undefined\n\t\t\t\t\t};\n\n\t\t\t\t\t// Methods\n\n\t\t\t\t\tproductBox.init = function () {\n\t\t\t\t\t\t$quantitySelector.pdQuantitySelector({\n\t\t\t\t\t\t\tmin: 0, // NOTE: Ignore 'min-quantity'; should always be zero (0).\n\t\t\t\t\t\t\tmax: NumberFormatter.parse($productBox.data('max-quantity')),\n\t\t\t\t\t\t\tstep: NumberFormatter.parse($productBox.data('quanta')),\n\t\t\t\t\t\t\tvalue: 0\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tproductBox.updateQuantitySelector();\n\t\t\t\t\t\tproductBox.updateUnitPrice();\n\t\t\t\t\t\tproductBox.updateTotalPrice();\n\t\t\t\t\t\tproductBox.updateButtonState();\n\t\t\t\t\t};\n\n\t\t\t\t\tproductBox.addToCart = function () {\n\t\t\t\t\t\tif (control.loading()) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcontrol.loading(true);\n\n\t\t\t\t\t\tvar data = {\n\t\t\t\t\t\t\tid: $productBox.data('productid'),\n\t\t\t\t\t\t\tskuId: $productBox.data('variantid'),\n\t\t\t\t\t\t\tpath: $productBox.data('path'),\n\t\t\t\t\t\t\tqty: productBox.selectedQuantity(),\n\t\t\t\t\t\t\textraAttributes: [],\n\t\t\t\t\t\t\tbundleItems: [],\n\t\t\t\t\t\t\titemInfo: {\n\t\t\t\t\t\t\t\tminQuantity: $productBox.data('min-quantity'),\n\t\t\t\t\t\t\t\tmaxQuantity: $productBox.data('max-quantity'),\n\t\t\t\t\t\t\t\tquanta: $productBox.data('quanta')\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t\tVendd.MessageBus.publishAsync(productBox, new Vendd.Cart.Messages.Add(data.id, data.skuId, data.path, data.qty, data.extraAttributes, data.bundleItems, data.itemInfo));\n\t\t\t\t\t\t//Vendd.MessageBus.publishAsync(productBox, new Vendd.Widget.Messages.OpenWidget(Vendd.Widget.CartWidget, false));\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t};\n\n\t\t\t\t\tproductBox.updateQuantitySelector = function () {\n\t\t\t\t\t\t$quantitySelector.pdControlDisabled(productBox.unitPrice() === undefined);\n\t\t\t\t\t};\n\n\t\t\t\t\tproductBox.updateUnitPrice = function () {\n\t\t\t\t\t\tvar value = productBox.unitPrice();\n\t\t\t\t\t\tvar valueLiteral = NumberFormatter.formatPrice(value);\n\t\t\t\t\t\t$unitPriceValue.text(valueLiteral);\n\t\t\t\t\t\t$unitPriceContainer.toggleClass('unit-price-visible', 0 < valueLiteral.length);\n\t\t\t\t\t};\n\n\t\t\t\t\tproductBox.updateTotalPrice = function () {\n\t\t\t\t\t\tvar value = productBox.totalPrice();\n\t\t\t\t\t\tvar valueLiteral = NumberFormatter.formatPrice(value);\n\t\t\t\t\t\t$totalPriceValue.text(valueLiteral);\n\t\t\t\t\t\t$totalPriceContainer.toggleClass('total-price-visible', 0 < valueLiteral.length);\n\t\t\t\t\t};\n\n\t\t\t\t\tproductBox.updateButtonState = function () {\n\t\t\t\t\t\t$addToCartButton.pdControlDisabled(productBox.unitPrice() === undefined || productBox.selectedQuantity() === 0 || control.loading());\n\t\t\t\t\t};\n\n\t\t\t\t\t// Events\n\n\t\t\t\t\t$quantitySelector.on('product:change', function (e) {\n\t\t\t\t\t\te.preventDefault();\n\n\t\t\t\t\t\tproductBox.updateTotalPrice();\n\t\t\t\t\t\tproductBox.updateButtonState();\n\t\t\t\t\t});\n\n\t\t\t\t\t$addToCartButton.on('click', function (e) {\n\t\t\t\t\t\te.preventDefault();\n\n\t\t\t\t\t\tif ($addToCartButton.pdControlDisabled()) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($('.x-warehouse-selector-widget').trigger('addtocart').hasClass('opening')) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tproductBox.addToCart();\n\t\t\t\t\t\tproductBox.updateButtonState();\n\t\t\t\t\t});\n\n\t\t\t\t\tVendd.MessageBus.subscribe(Vendd.Cart.Messages.AddCompleted, productBox, function (envelope) {\n\t\t\t\t\t\tcontrol.loading(false);\n\t\t\t\t\t\tproductBox.updateButtonState();\n\t\t\t\t\t});\n\n\t\t\t\t\tVendd.MessageBus.subscribe(Vendd.Cart.Messages.Failed, productBox, function (envelope) {\n\t\t\t\t\t\t// NOTE: The 'Vendd.Cart.Messages.AddCompleted' seems to be triggered even \n\t\t\t\t\t\t// in the case of error, so updating the state of the button doesn't seem\n\t\t\t\t\t\t// to be necessary.\n\t\t\t\t\t\tcontrol.loading(false);\n\t\t\t\t\t\tproductBox.updateButtonState();\n\t\t\t\t\t});\n\n\t\t\t\t\t// Initialization\n\n\t\t\t\t\tproductBox.init();\n\t\t\t\t});\n\t\t\t};\n\n\n\t\t\t// Initialization\n\n\t\t\tcontrol.init();\n\t\t});\n\t});\n});\n","Vendd.Scripts.load(function () {\n\n\tVendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'product-details-version-selector-sku-grid', function (envelope) {\n\n\t\tvar $context = envelope.message.data.context,\n\t\t\t$controls = $('.x-product-details-version-selector.sku-grid', $context);\n\n\t\tif ($controls.length < 1)\n\t\t\treturn;\n\n\t\t$.each($controls, function (i, control) {\n\t\t\tvar $control = $(control);\n\t\t\tvar $productGroups = $('.x-product-variant-group', $control);\n\t\t\tvar $productBoxes = $('.x-product-variant-box', $control);\n\t\t\tvar $totalPriceContainer = $('.js-total-price', $control);\n\t\t\tvar $totalPriceValue = $('.js-total-price-value', $totalPriceContainer);\n\t\t\tvar $totalQuantityContainer = $('.js-total-quantity', $control);\n\t\t\tvar $totalQuantityValue = $('.js-total-quantity-value', $totalQuantityContainer);\n\t\t\tvar $addToCartButton = $('.js-add-to-cart-multiple', $control);\n\n\t\t\t// Properties\n\n\t\t\tcontrol.loading = function (loading) {\n\t\t\t\tif (loading === undefined) {\n\t\t\t\t\treturn $control.hasClass('x-loading');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$control.toggleClass('x-loading', loading);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tcontrol.totalPrice = function () {\n\t\t\t\tvar value;\n\n\t\t\t\t$productGroups.each(function (i, productGroup) {\n\t\t\t\t\tvar groupValue = productGroup.subtotalPrice();\n\t\t\t\t\tif (groupValue !== undefined) {\n\t\t\t\t\t\tvalue = (value || 0) + groupValue;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn value;\n\t\t\t};\n\n\t\t\tcontrol.totalQuantity = function () {\n\t\t\t\tvar value;\n\n\t\t\t\t$productGroups.each(function (i, productGroup) {\n\t\t\t\t\tvar groupValue = productGroup.subtotalQuantity();\n\t\t\t\t\tif (groupValue !== undefined) {\n\t\t\t\t\t\tvalue = (value || 0) + groupValue;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn value;\n\t\t\t};\n\n\t\t\t// Methods\n\n\t\t\tcontrol.addToCart = function () {\n\t\t\t\tif (control.loading()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tvar data = [];\n\n\t\t\t\t$productBoxes.each(function (i, productBox) {\n\t\t\t\t\tif (productBox.isEnabled() && productBox.selectedQuantity()) {\n\t\t\t\t\t\tvar $productBox = $(productBox);\n\t\t\t\t\t\tdata.push({\n\t\t\t\t\t\t\tid: $productBox.data('productid'),\n\t\t\t\t\t\t\tskuId: $productBox.data('variantid'),\n\t\t\t\t\t\t\tpath: $productBox.data('path'),\n\t\t\t\t\t\t\tqty: productBox.selectedQuantity()\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tif (!data || !data.length) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tconsole.log(JSON.stringify(data));\n\n\t\t\t\tcontrol.loading(true);\n\n\t\t\t\tVendd.MessageBus.publishAsync(control, new Vendd.Cart.Messages.MultipleAdd(data));\n\t\t\t\t//Vendd.MessageBus.publishAsync(productBox, new Vendd.Widget.Messages.OpenWidget(Vendd.Widget.CartWidget, false));\n\n\t\t\t\treturn true;\n\t\t\t};\n\n\t\t\tcontrol.updateTotalPrice = function () {\n\t\t\t\tvar value = control.totalPrice();\n\t\t\t\tvar valueLiteral = NumberFormatter.formatPrice(value);\n\t\t\t\t$totalPriceValue.text(valueLiteral);\n\t\t\t\t$totalPriceContainer.toggleClass('total-price-visible', 0 < valueLiteral.length);\n\t\t\t};\n\n\t\t\tcontrol.updateTotalQuantity = function () {\n\t\t\t\tvar value = control.totalQuantity();\n\t\t\t\tvar valueLiteral = NumberFormatter.formatInt(value);\n\t\t\t\t$totalQuantityValue.text(valueLiteral);\n\t\t\t\t$totalQuantityContainer.toggleClass('total-quantity-visible', 0 < valueLiteral.length);\n\t\t\t};\n\n\t\t\tcontrol.updateButtonState = function () {\n\t\t\t\t$addToCartButton.pdControlDisabled(control.totalPrice() === undefined || control.totalQuantity() === 0 || control.loading());\n\t\t\t};\n\n\t\t\tcontrol.init = function () {\n\t\t\t\t$productGroups.each(function (j, productGroup) {\n\t\t\t\t\tvar $productGroup = $(productGroup);\n\t\t\t\t\tvar $productBoxes = $('.x-product-variant-box', $productGroup);\n\t\t\t\t\tvar $subtotalPriceContainer = $('.js-subtotal-price', $productGroup);\n\t\t\t\t\tvar $subtotalPriceValue = $('.js-subtotal-price-value', $subtotalPriceContainer);\n\t\t\t\t\tvar $subtotalQuantityContainer = $('.js-subtotal-quantity', $productGroup);\n\t\t\t\t\tvar $subtotalQuantityValue = $('.js-subtotal-quantity-value', $subtotalQuantityContainer);\n\n\t\t\t\t\tproductGroup.subtotalPrice = function () {\n\t\t\t\t\t\tvar value;\n\n\t\t\t\t\t\t$productBoxes.each(function (i, productBox) {\n\t\t\t\t\t\t\tvar itemValue = productBox.totalPrice();\n\t\t\t\t\t\t\tif (itemValue !== undefined) {\n\t\t\t\t\t\t\t\tvalue = (value || 0) + itemValue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn value;\n\t\t\t\t\t};\n\n\t\t\t\t\tproductGroup.subtotalQuantity = function () {\n\t\t\t\t\t\tvar value;\n\n\t\t\t\t\t\t$productBoxes.each(function (i, productBox) {\n\t\t\t\t\t\t\tvar itemValue = productBox.selectedQuantity();\n\t\t\t\t\t\t\tif (itemValue !== undefined) {\n\t\t\t\t\t\t\t\tvalue = (value || 0) + itemValue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn value;\n\t\t\t\t\t};\n\n\t\t\t\t\tproductGroup.init = function () {\n\n\t\t\t\t\t\t$productBoxes.each(function (k, productBox) {\n\t\t\t\t\t\t\tvar $productBox = $(productBox);\n\t\t\t\t\t\t\tvar $quantitySelector = $('.js-quantity-selector', $productBox).first();\n\n\t\t\t\t\t\t\tvar unitPriceLiteral = $productBox.data('unit-price');\n\t\t\t\t\t\t\tvar unitPriceValue = NumberFormatter.parsePrice(unitPriceLiteral);\n\n\t\t\t\t\t\t\t// Properties\n\n\t\t\t\t\t\t\tproductBox.isEnabled = function () {\n\t\t\t\t\t\t\t\treturn (unitPriceValue !== undefined);\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tproductBox.selectedQuantity = function () {\n\t\t\t\t\t\t\t\treturn productBox.isEnabled() ? $quantitySelector.get(0).quantity() : undefined;\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tproductBox.unitPrice = function () {\n\t\t\t\t\t\t\t\treturn unitPriceValue; // NOTE: Might be undefined\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tproductBox.totalPrice = function () {\n\t\t\t\t\t\t\t\treturn productBox.unitPrice() * productBox.selectedQuantity(); // NOTE: Might be undefined\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t// Methods\n\n\t\t\t\t\t\t\tproductBox.init = function () {\n\t\t\t\t\t\t\t\t$quantitySelector.pdQuantitySelector({\n\t\t\t\t\t\t\t\t\tmin: 0, // NOTE: Ignore 'min-quantity'; should always be zero (0).\n\t\t\t\t\t\t\t\t\tmax: NumberFormatter.parse($productBox.data('max-quantity')),\n\t\t\t\t\t\t\t\t\tstep: NumberFormatter.parse($productBox.data('quanta')),\n\t\t\t\t\t\t\t\t\tvalue: 0\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tproductBox.updateQuantitySelector();\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tproductBox.updateQuantitySelector = function () {\n\t\t\t\t\t\t\t\t$quantitySelector.pdControlDisabled(productBox.unitPrice() === undefined);\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t// Events\n\n\t\t\t\t\t\t\t$quantitySelector.on('product:change', function (e) {\n\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t// Initialization\n\n\t\t\t\t\t\t\tproductBox.init();\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tproductGroup.updateSubtotalPrice();\n\t\t\t\t\t\tproductGroup.updateSubtotalQuantity();\n\t\t\t\t\t};\n\n\t\t\t\t\tproductGroup.updateSubtotalPrice = function () {\n\t\t\t\t\t\tvar value = productGroup.subtotalPrice();\n\t\t\t\t\t\tvar valueLiteral = NumberFormatter.formatPrice(value);\n\t\t\t\t\t\t$subtotalPriceValue.text(valueLiteral);\n\t\t\t\t\t\t$subtotalPriceContainer.toggleClass('subtotal-price-visible', 0 < valueLiteral.length);\n\t\t\t\t\t};\n\n\t\t\t\t\tproductGroup.updateSubtotalQuantity = function () {\n\t\t\t\t\t\tvar value = productGroup.subtotalQuantity();\n\t\t\t\t\t\tvar valueLiteral = NumberFormatter.formatInt(value);\n\t\t\t\t\t\t$subtotalQuantityValue.text(valueLiteral);\n\t\t\t\t\t\t$subtotalQuantityContainer.toggleClass('subtotal-quantity-visible', 0 < valueLiteral.length);\n\t\t\t\t\t};\n\n\t\t\t\t\t// Events\n\n\t\t\t\t\t$productBoxes.on('product:change', function (e) {\n\t\t\t\t\t\te.preventDefault();\n\n\t\t\t\t\t\tproductGroup.updateSubtotalPrice();\n\t\t\t\t\t\tproductGroup.updateSubtotalQuantity();\n\t\t\t\t\t});\n\n\t\t\t\t\t// Initialization\n\n\t\t\t\t\tproductGroup.init();\n\t\t\t\t});\n\n\t\t\t\tcontrol.updateTotalPrice();\n\t\t\t\tcontrol.updateTotalQuantity();\n\t\t\t\tcontrol.updateButtonState();\n\t\t\t};\n\n\t\t\t// Events\n\n\t\t\t$productGroups.on('product:change', function (e) {\n\t\t\t\te.preventDefault();\n\n\t\t\t\tcontrol.updateTotalPrice();\n\t\t\t\tcontrol.updateTotalQuantity();\n\t\t\t\tcontrol.updateButtonState();\n\t\t\t});\n\n\t\t\t$addToCartButton.on('click', function (e) {\n\t\t\t\te.preventDefault();\n\n\t\t\t\tif ($addToCartButton.pdControlDisabled()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif ($('.x-warehouse-selector-widget').trigger('addtocart').hasClass('opening')) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tcontrol.addToCart();\n\t\t\t\tcontrol.updateButtonState();\n\t\t\t});\n\n\t\t\tVendd.MessageBus.subscribe(Vendd.Cart.Messages.MultipleAddSuccess, control, function (envelope) {\n\t\t\t\tcontrol.loading(false);\n\t\t\t\tcontrol.updateButtonState();\n\t\t\t});\n\n\t\t\tVendd.MessageBus.subscribe(Vendd.Cart.Messages.Failed, control, function (envelope) {\n\t\t\t\tcontrol.loading(false);\n\t\t\t\tcontrol.updateButtonState();\n\t\t\t});\n\n\t\t\t// Initialization\n\n\t\t\tcontrol.init();\n\t\t});\n\t});\n});\n","Vendd.Scripts.load(function () {\n 'use strict';\n\n if ($('.x-product-compare-list, .product-details-quick-view, .product-details-popup').length == 0) return;\n\n /* fixes popup iframe horizontal scrolling */\n $(\".site-container\").css(\"min-width\", \"initial\");\n $(\".site-container\").css(\"min-width\", \"auto\");\n});","Vendd.Scripts.load(function () {\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'product-details-warehouse-search', function (envelope) {\n\n var $context = envelope.message.data.context,\n $control = $('.x-product-details-warehouse-search', $context),\n $content = $('.search-warehouse-wrapper', $control);\n\n if ($control.length < 1)\n return;\n\n var control = $control.get(0);\n control.HasGoogleMapsInitialized = ((window.google || {}).maps != undefined) && !($content.data(\"force-not-use-google-map\"));\n control.EnableTrackingLocation = ($content.data(\"enable-tracking-location\"));\n control.myLocation = { latitude: 0, longitude: 0 };\n\n control.skuId = $content.data(\"skuid\");\n control.skuCode = $content.data(\"skucode\");\n var ignoreAvailability = $content.data(\"ignore-availability\");\n control.ignoreAvailability = ignoreAvailability || ignoreAvailability === \"True\" ? true : false;\n var lazyloadAvailabilities = $content.data(\"lazyload-availabilities\");\n control.lazyloadAvailabilities = lazyloadAvailabilities === \"True\" ? true : false;\n var geoLocationWithZipCode = $content.data(\"use-zipcode\");\n control.geoLocationWithZipCode = geoLocationWithZipCode || geoLocationWithZipCode === \"True\" ? true : false;\n control.topAvailableWarehouse = $content.data(\"top-warehouses\") || 0;\n control.groupBy = $content.data(\"group-by\") || \"\";\n control.latestLocation = { latitude: 0, longitude: 0 };\n control.productAddedService;\n control.setStoreService;\n control.setDeliveryPointService;\n\n var sSelect = null, selectedWarehouse, selectedWarehouseAvailability;\n\n $content.on('keyup', 'input', function (e) {\n if (e.keyCode === 13) {\n e.preventDefault();\n e.stopPropagation();\n $('.js-submit', $content).trigger('click');\n return;\n }\n });\n\n $content.on('click', '.js-submit', function (e) {\n\n e.preventDefault();\n e.stopPropagation();\n if ($(this).hasClass(\"disabled\")) return;\n if ($content.hasClass('x-loading')) return;\n $content.addClass('x-loading');\n\n var searchTerm = $('.js-search-term', $content).val();\n var maxDistance = Math.min(parseInt($('.js-distance-range', $content).val() || 0), 9999999);\n var hasGeolocation = $(this).hasClass(\"near-my-location\") && control.myLocation.latitude > 0 && control.myLocation.longitude > 0 && control.EnableTrackingLocation;\n if (\n ((!hasGeolocation && control.searchTerm == searchTerm) || hasGeolocation) &&\n control.maxDistance == maxDistance &&\n control.hasGeolocation == hasGeolocation &&\n ((hasGeolocation && control.myLocation.latitude == control.latestLocation.latitude && control.myLocation.longitude == control.latestLocation.longitude) || !hasGeolocation)\n ) {\n $content.removeClass('x-loading');\n return;\n }\n\n var location = hasGeolocation ? control.myLocation : null;\n control.latestLocation = hasGeolocation ? _.clone(location) : control.latestLocation;\n control.searchTerm = searchTerm;\n control.maxDistance = maxDistance;\n control.hasGeolocation = hasGeolocation;\n\n var vendd = getParentOrSelfVendd();\n var state = Cookies.get('VisitorState'), countryCode = \"\";\n if (state) {\n var parameters = state.split(\"&\");\n if (state.indexOf(\"countryCode\") >= 0) {\n for (var i = 0; i < parameters.length; i++) {\n var pair = parameters[i].split(\"=\");\n if (pair[0] == \"countryCode\") {\n countryCode = pair[1];\n }\n }\n }\n }\n\n vendd.MessageBus.publishAsync(control, new vendd.Product.Messages.GetAvailableWarehouses(control.skuId, control.skuCode, countryCode, control.searchTerm, maxDistance, control.ignoreAvailability, control.geoLocationWithZipCode, control.topAvailableWarehouse, control.groupBy, location));\n });\n\n $('.js-show-warehouses-search', $control).fancybox({\n padding: 0,\n width: 450,\n touch: false,\n beforeShow: function () {\n if ($content.hasClass('has-warehouse-grouping')) {\n $('.js-get-warehouses .js-submit').trigger('click');\n }\n },\n afterShow: function () {\n if (!sSelect) sSelect = $('.form-row select', $content).sSelect();\n\n if (navigator.geolocation && control.EnableTrackingLocation) {\n navigator.geolocation.getCurrentPosition(\n function (position) {\n $('.js-submit.near-my-location', $content).toggleClass(\"disabled\", false);\n control.myLocation.latitude = position.coords.latitude;\n control.myLocation.longitude = position.coords.longitude;\n\n var options = {\n enableHighAccuracy: false,\n //timeout: 5000,\n maximumAge: 0\n };\n var id = navigator.geolocation.watchPosition(\n function (position) {\n $('.js-submit.near-my-location', $content).toggleClass(\"disabled\", false);\n control.myLocation.latitude = position.coords.latitude;\n control.myLocation.longitude = position.coords.longitude;\n }, function (error) {\n $('.js-submit.near-my-location', $content).toggleClass(\"disabled\", true);\n control.myLocation = { latitude: 0, longitude: 0 };\n }, options);\n },\n function () {\n $('.js-submit.near-my-location', $content).toggleClass(\"disabled\", true);\n control.myLocation = { latitude: 0, longitude: 0 };\n });\n } else {\n $('.js-submit.near-my-location', $content).toggleClass(\"disabled\", true);\n control.myLocation = { latitude: 0, longitude: 0 };\n }\n }\n });\n\n control.bindWarehouses = function (model) {\n if (control.HasGoogleMapsInitialized && model.WarehousesGrouped.length > 0) {\n var vendd = getParentOrSelfVendd();\n var searchTerm = control.hasGeolocation && control.myLocation.latitude > 0 && control.myLocation.longitude > 0 ? control.myLocation.latitude + \",\" + control.myLocation.longitude : control.searchTerm;\n vendd.MessageBus.publishAsync(control, new vendd.Store.Messages.CalculateDistances(model.WarehousesGrouped, searchTerm, control.maxDistance));\n }\n else {\n control.bind(model);\n }\n };\n\n control.bindAvailabilities = function (model) {\n //set Array with product info\n var variantArray = [];\n var variant = {\n VariantId: control.skuId,\n Quantity: $('.qty-spinner-input').val() || 1\n };\n variantArray.push(variant);\n\n //call service for availabilities\n Vendd.MessageBus.publishAsync(control, new Vendd.Product.Messages.GetPickUpAvailability(variantArray, null, false));\n\n //merge models on service success\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.GetPickUpAvailabilitySuccess, control, function (envelope) {\n var data = envelope.message.data;\n\n var pickUpAvailabilities = _.each(model.WarehousesGrouped, function (group) {\n _.each(group.Items, function (warehouse) {\n var selectedWarehouse = _.find(data.PickupAvailabilities[0].Shops, function (x) { return warehouse.PartnerId === x.PartnerId })\n if (selectedWarehouse) {\n if (selectedWarehouse.Days == null) {\n warehouse.AvailabilityActionId = 1;\n } else {\n warehouse.AvailabilityActionId = 3;\n } \n warehouse.AvailabilityActionName = selectedWarehouse.Message;\n } \n });\n });\n _.extend(model.WarehousesGrouped, pickUpAvailabilities);\n\n control.bindWarehouses(control.warehousesModel);\n\n Vendd.MessageBus.unsubscribe(Vendd.Product.Messages.GetPickUpAvailabilitySuccess, control);\n });\n\n };\n\n control.evaluateDistances = function (model) {\n\n var data = control.distanceData,\n top = parseInt($content.data('top-warehouses')),\n showOffRangeWareHouses = true;\n model.ErrorCalculatingDistances = false;\n\n if (data && data.DistanceMeasured) {\n if (model.WarehousesGrouped.length == 0) return model;\n var warehousesGroups = _.sortBy(data.array, function (group) { return (_.min(group.Items, function (item) { return item.Distance; }) || {}).Distance || 0; });\n for (var group = 0; group < warehousesGroups.length; group++) {\n var warehouses = warehousesGroups[group].Items || [];\n warehouses = _.sortBy(warehouses, function (item) { return item.Distance; });\n var hasWareHouses = false;\n for (var i = 0; i < warehouses.length; i++) {\n if (data.TotalFindInRange > 0) {\n warehouses[i].Show = warehouses[i].IsWithinRange;\n } else if (showOffRangeWareHouses) {\n warehouses[i].Show = (i < top);\n }\n hasWareHouses = hasWareHouses || warehouses[i].Show;\n warehouses[i].AvailabilityCustomText = LhApp.Text[\"Common:AvailabilityWarehouse_\" + warehouses[i].AvailabilityId];\n }\n warehousesGroups[group].Items = warehouses;\n warehousesGroups[group].HasWareHouses = hasWareHouses;\n }\n model.WarehousesGrouped = warehousesGroups;\n model.HasWareHouses = data.TotalFindInRange > 0 || (showOffRangeWareHouses && model.Warehouses.length > 0);\n } else if (model.WarehousesGrouped && model.WarehousesGrouped.length) {\n for (var group = 0; group < model.WarehousesGrouped.length; group++) {\n for (var i = 0; i < model.WarehousesGrouped[group].Items.length; i++) {\n model.WarehousesGrouped[group].Items[i].Show = true;\n model.WarehousesGrouped[group].Items[i].AvailabilityCustomText = LhApp.Text[\"Common:AvailabilityWarehouse_\" + model.WarehousesGrouped[group].Items[i].AvailabilityId];\n }\n model.WarehousesGrouped[group].HasWareHouses = true;\n }\n model.ErrorCalculatingDistances = true;\n model.HasWareHouses = true;\n }\n return model;\n };\n\n control.hideForm = function () {\n $('.js-warehouse-search-form', $content).hide();\n $('.form-msg .js-error', $content).show();\n };\n\n control.bind = function (model) {\n model = control.evaluateDistances(model);\n //set warehouse as disabled if product is unavailable\n _.each(model.WarehousesGrouped, function (group, i) {\n _.each(group.Items, function (warehouse, j) {\n if (warehouse.AvailabilityActionId == 1) {\n warehouse.isDisabled = true;\n }\n });\n });\n\n /*if ( model.ErrorCalculatingDistances ) control.hideForm();*/\n if (!model.NoWarehouseFound) model.NoWarehouseFound = LhApp.Function.getText('Common:Master_SomeError');\n var html = Vendd.Handlebars.parse(\"pdWarehouseSearchResults_A\", model);\n\n var $container = $('.x-search-warehouses', $content);\n\n $container.html(html);\n $container.removeClass('empty');\n\n $(\".content\", $container).mCustomScrollbar({\n scrollbarPosition: \"inside\",\n scrollInertia: 400,\n theme: \"grey\",\n mouseWheel: { preventDefault: true }\n });\n $content.removeClass('x-loading');\n\n $container.on('click', '.js-toggle-group', function (e) {\n\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n var tab = $this.data('tab');\n\n if ($this.hasClass('active')) {\n return;\n } else {\n $('.js-toggle-group', $container).removeClass('active');\n $('.warehouse-list', $container).removeClass('active');\n $this.addClass('active');\n $('.warehouse-list:eq(' + tab + ')', $container).addClass('active');\n }\n\n });\n\n $('input[name=\"warehouse\"]', $container).on('click', function () {\n selectedWarehouse = $(this).val();\n selectedWarehouseAvailablity = $(this).siblings('.warehouse-info').find('.availability');\n if (selectedWarehouse > 0) {\n $('.js-proceed-to-checkout', $content).removeClass('disabled');\n $('.js-continue-shopping', $content).removeClass('disabled');\n }\n });\n\n };\n\n $content.on('click', '.js-proceed-to-checkout, .js-continue-shopping', function (e) {\n\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n var cartRedirect = false;\n var deliveryPointId = 2;\n //Set the three services\n control.productAddedService = $.Deferred();\n control.setStoreService = $.Deferred();\n control.setDeliveryPointService = $.Deferred();\n\n //If all three services run successful, proceed to final action\n $.when(control.productAddedService, control.setStoreService, control.setDeliveryPointService)\n .done(function (productAddedResponse, setStoreResponse, setDeliveryPointResolve) {\n\n if (control.lazyloadAvailabilities) {\n //Remove cookie for Delivery Postal Code\n var deliveryPostalCode = Cookies.get('DeliveryPostalCode');\n if (deliveryPostalCode && deliveryPostalCode !== 'undefined') {\n Cookies.remove('DeliveryPostalCode');\n }\n\n //Show Pick Up Availability \n $('.x-product-details .lazyload-availability-container > span').remove();\n $('.x-product-details .lazyload-availability-container').append(selectedWarehouseAvailablity);\n }\n \n //get model of delivery point\n if ($('.x-deliverypoint-widget-a').length > 0) {\n Vendd.MessageBus.publish($('.x-deliverypoint-widget-a'), new Vendd.DeliveryPoint.Messages.GetModel());\n }\n \n if (cartRedirect) {\n //Redirect user to Cart page\n document.location = LhApp.Url.Page.Cart;\n } else {\n //Close fancybox\n $('[data-fancybox-close]', $content).trigger('click');\n }\n });\n\n //If proceed to checkout -> redirect true\n if ($this.hasClass('js-proceed-to-checkout')) cartRedirect = true; \n\n //trigger add to cart button in order to add sku in cart \n $('.x-product-details-ajax-buttons.desktop .js-add-to-cart').trigger('click');\n //If product added successfully -> Resolve\n Vendd.MessageBus.subscribe(Vendd.Cart.Messages.ProductAdded, 'x-product-details', function (envelope) { control.productAddedService.resolve(envelope); });\n //if product failed to added -> Reject\n Vendd.MessageBus.subscribe(Vendd.Cart.Messages.Failed, 'x-product-details', function (envelope) { control.productAddedService.reject(); });\n\n //Function for SetStore Service ajax call\n setStore(cartRedirect, selectedWarehouse);\n\n //Function for setDeliveryPoint Service ajax call\n setDeliveryPoint(cartRedirect, deliveryPointId);\n });\n\n //SetStore Service ajax call\n function setStore(cartRedirect, selectedWarehouse) {\n $.ajax({\n // async: false,\n type: 'POST',\n dataType: 'json',\n contentType: 'application/json; charset=UTF-8',\n ContentType: 'application/json; charset=UTF-8',\n url: LhApp.Function.Url.getServiceEndpoint('checkoutservice.svc/SetStore?lang=el'),\n data: JSON.stringify({\n data: \"\",\n arguments: JSON.stringify({\n \"Id\": selectedWarehouse\n })\n }),\n success: function (response) {\n //Resolve\n control.setStoreService.resolve(response);\n },\n error: function (ex) {\n control.setStoreService.reject();\n console.log(\"error\");\n }\n });\n }\n\n //setDeliveryPoint Service ajax call\n function setDeliveryPoint(cartRedirect, deliveryPointId) {\n $.ajax({\n type: \"post\",\n url: \"/Services/api/DeliveryPoint/SetDeliveryPoint\",\n data: {\n deliveryPointId: deliveryPointId\n },\n dataType: \"json\",\n statusCode: {\n 200: function (response) {\n //Resolve\n control.setDeliveryPointService.resolve(response);\n },\n 404: function (response) {\n control.setDeliveryPointService.reject();\n console.log(\"error\");\n },\n 500: function (response) {\n control.setDeliveryPointService.reject();\n console.log(\"error\");\n }\n }\n });\n }\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.GetAvailableWarehousesSuccess, control, function (envelope) {\n var data = envelope.message.data;\n control.warehousesModel = envelope.message.data;\n\n if (control.lazyloadAvailabilities) {\n control.bindAvailabilities(control.warehousesModel); \n } else {\n control.bindWarehouses(control.warehousesModel); \n }\n \n });\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.GetAvailableWarehousesFailure, control, function (envelope) {\n control.warehousesModel = {};\n control.bindWarehouses(control.warehousesModel);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Store.Messages.CalculateDistancesSuccess, control, function (envelope) {\n\n var sender = envelope.message.data.sender;\n if (control && sender && control == sender) {\n control.distanceData = envelope.message.data.model;\n control.bind(control.warehousesModel);\n }\n });\n\n });\n\n});","Vendd.Scripts.load(function () {\n\n $('.x-control.x-product-reviews[data-type=\"reviews\"]').each(function (i, wrapper) {\n\n var $wrapper = $(wrapper);\n\n var sortKey = '';\n\n var isAjax = $wrapper.data('ajax');\n var sessionIsAuthenticated = $wrapper.data('session-is-authenticated');\n\n if ($wrapper.find('> input[type=\"hidden\"][data-member=\"isauthenticated\"]').length > 0)\n sessionIsAuthenticated = $wrapper.find('> input[type=\"hidden\"][data-member=\"isauthenticated\"]').val() === 'true';\n\n var isReviewed = $wrapper.data('product-reviewed-by-current-user');\n if ($wrapper.find('> input[type=\"hidden\"][data-member=\"isreviewed\"]').length > 0)\n isReviewed = $wrapper.find('> input[type=\"hidden\"][data-member=\"isreviewed\"]').val() === 'true';\n\n var $orderByLtestLink = $('*[data-click=\"order-by-latest\"]', $wrapper);\n var $orderByHelpfullnessLink = $('*[data-click=\"order-by-helpfullness\"]', $wrapper);\n\n $orderByLtestLink.click(function (e) {\n if (isAjax) {\n if (!$orderByLtestLink.hasClass('x-selected')) {\n $orderByHelpfullnessLink.removeClass('x-selected');\n $orderByLtestLink.addClass('x-selected');\n\n sortKey = 'latest';\n }\n } else {\n\n var url = document.location.href;\n if (document.location.search.indexOf('page=') > 0) {\n\n url = LhApp.Function.Url.setParameterValueOnUrl(url, 'page', '1');\n }\n\n document.location = LhApp.Function.Url.setParameterValueOnUrl(url, 'sort-by', 'latest');\n }\n });\n\n $orderByHelpfullnessLink.click(function (e) {\n if (isAjax) {\n if (!$orderByHelpfullnessLink.hasClass('x-selected')) {\n $orderByLtestLink.removeClass('x-selected');\n $orderByHelpfullnessLink.addClass('x-selected');\n\n sortKey = 'helpfullness';\n }\n } else {\n\n var url = document.location.href;\n if (document.location.search.indexOf('page=') > 0) {\n url = LhApp.Function.Url.setParameterValueOnUrl(url, 'page', '1');\n }\n\n document.location = LhApp.Function.Url.setParameterValueOnUrl(url, 'sort-by', 'helpfullness');\n }\n });\n\n var $productReviewForm = $('.x-control.x-form.x-product-review-form[data-control=\"form\"]', $wrapper);\n if ($productReviewForm.length == 1) {\n\n var $openFormLink = $('.form-show-hide[data-click=\"open-product-review-form\"]', $wrapper);\n var $closeFormLink = $('.form-show-hide[data-click=\"close-product-review-form\"]', $productReviewForm);\n\n $openFormLink.click(function (e) {\n if ($openFormLink.hasClass('x-closed')) {\n $openFormLink.removeClass('x-closed').addClass('x-opened');\n $closeFormLink.removeClass('x-closed').addClass('x-opened');\n $productReviewForm.removeClass('x-collapsed').removeClass('x-closed').addClass('x-opened');\n $productReviewForm.show();\n }\n });\n\n $closeFormLink.click(function (e) {\n if ($closeFormLink.hasClass('x-opened')) {\n $openFormLink.removeClass('x-opened').addClass('x-closed');\n $closeFormLink.removeClass('x-opened').addClass('x-closed');\n $productReviewForm.removeClass('x-opened').addClass('x-closed');\n $productReviewForm.hide();\n }\n });\n\n };\n\n var $loginPopup = $('div[data-type=\"review-login-popup\"]', $wrapper);\n if (!sessionIsAuthenticated) {\n\n var $showLoginMessageLink = $('*[data-click=\"show-login-message\"]', $wrapper);\n $showLoginMessageLink.click(function (e) {\n $loginPopup.show();\n });\n\n var $loginLink = $('*[data-click=\"login\"]', $loginPopup);\n var $registerLink = $('*[data-click=\"register\"]', $loginPopup);\n var $closeBtn = $('*[data-click=\"close-popup\"]', $loginPopup);\n\n var $loginWidget = $('.x-control.x-widget.x-login-widget').first();\n var redirectUrl = LhApp.Function.Url.setParameterValue('mode', 'add-review');\n\n $loginLink.click(function (e) {\n $loginPopup.hide(); \n\n if ($loginWidget.length > 0) {\n if ($(window).width() > 960 || !isTouch()) {\n $('html, body').animate({ scrollTop: 0 }, 1);\n }\n\n var $loginForm = $('.x-login-form .login-form', $loginWidget);\n $loginForm.attr('data-redirect', redirectUrl);\n\n setTimeout(function () { $('.js-widget-trigger', $loginWidget).click(); }, 100);\n } else {\n document.location = LhApp.Function.Url.setParameterValueOnUrl(LhApp.Url.Page.Login, 'ReturnUrl', encodeURIComponent(redirectUrl));\n };\n });\n\n $registerLink.click(function (e) {\n document.location = LhApp.Function.Url.setParameterValueOnUrl(LhApp.Url.Page.Register, 'ReturnUrl', encodeURIComponent(redirectUrl));\n });\n\n $closeBtn.click(function (e) {\n $loginPopup.hide();\n });\n\n } else {\n $loginPopup.remove();\n }\n\n });\n\n});","Vendd.Scripts.load(function () {\n\n $('.x-control.x-product-review-form[data-control=\"form\"][data-ajax=\"true\"]').each(function (i, form) {\n\n var onSuccessFn = form.onSuccess;\n form.onSuccess = function (request, response) {\n onSuccessFn(request, response);\n\n var $productRerviewControl = $('.x-control.x-product-reviews[data-type=\"reviews\"]:first');\n\n if ($productRerviewControl.length == 0)\n throw new Error('Product rerview control does not exist.');\n\n $productRerviewControl.find('.critics.form-show-hide').remove();\n $productRerviewControl.find('.already-reviewed-status').show();\n // $productRerviewControl.find('.critics.review-status').show();\n };\n\n form.submit = function (config) {\n if (form.isLoading())\n return;\n\n form.showLoader();\n\n var state = Vendd.Product.Controller.getState();\n var id = state.parentId;\n\n Vendd.MessageBus.publishAsync(form,\n new Vendd.Product.Messages.Review(config.title, config.description, config.rating, id));\n };\n\n function successFn (envelope) {\n form.hideLoader();\n\n var responseData = envelope.message.data;\n\n if (responseData.Success) responseData.success = responseData.Success;\n if (responseData.Code) responseData.code = responseData.Code;\n if (responseData.data) responseData.data = responseData.Data;\n if (responseData.time) responseData.time = responseData.Time;\n\n if (!responseData.success && responseData.code == 'GenericError') {\n if (typeof (responseData.Data) == 'string') {\n try {\n responseData.Data = jQuery.parseJSON(responseData.Data);\n } catch (e) {\n\n }\n };\n };\n\n if (responseData.success && typeof (form.onSuccess) === 'function') {\n\n form.onSuccess(envelope.message.config, responseData);\n } else {\n if (!responseData.success && typeof (form.onFailure) === 'function') {\n\n form.onFailure(envelope.message.config, responseData);\n };\n };\n };\n\n function failureFn (ex) {\n form.hideLoader();\n\n var response = {\n code: 'GenericError',\n success: false,\n time: 0\n };\n\n if (ex.responseText) {\n response.data = jQuery.parseJSON(ex.responseText)\n } else {\n response.data = ex;\n };\n\n if (typeof (form.onFailure) === 'function') {\n form.onFailure(config, response);\n };\n };\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.ReviewSuccess, form, successFn);\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.ReviewFailure, form, failureFn);\n });\n});\n\n","Vendd.Scripts.load(function () {\n\n $('.x-control.x-box.x-product-review-box[data-control=\"box\"][data-type=\"review\"]').each(function(i, wrapper) {\n\n var $box = $(wrapper);\n\n var reviewId = $box.data('reviewid');\n var sessionIsAuthenticated = $box.data('session-is-authenticated');\n if ($box.find('> input[type=\"hidden\"][data-member=\"isauthenticated\"]').length > 0)\n sessionIsAuthenticated = $box.find('> input[type=\"hidden\"][data-member=\"isauthenticated\"]').val() === 'true';\n\n var currentUserVotedForHelpfullness = $box.data('current-user-voted-for-helpfullness');\n if ($box.find('> input[type=\"hidden\"][data-member=\"helpfullness\"]').length > 0)\n currentUserVotedForHelpfullness = $box.find('> input[type=\"hidden\"][data-member=\"helpfullness\"]').val() === 'true';\n\n var $loginPopup = $('div[data-type=\"helpfullness-login-popup\"]', $box);\n if ($loginPopup.length == 0) throw new Error(\"login popUp does not exist on product review box\");\n\n var $btnVote = $box.find('.vote-btn');\n\n var $btnVoteYes = $box.find('*:enabled[data-click=\"vote-yes\"]');\n var $voteYesInputWrapper = $btnVoteYes.parent();\n\n var $btnVoteNo = $box.find('*:enabled[data-click=\"vote-no\"]');\n var $voteNoInputWrapper = $btnVoteNo.parent();\n\n var $totalYesVotes = $box.find('*[data-input=\"helpfullness-yes-total\"]');\n var $totalNoVotes = $box.find('*[data-input=\"helpfullness-no-total\"]');\n\n var $userVotedMessage = $box.find('.user-voted');\n var $voteError = $box.find('.vote-msg-error');\n\n function yesVoteSuccess(response) {\n if (response.success) {\n $totalYesVotes.val(parseInt($totalYesVotes.val()) + 1);\n $btnVoteYes.prop('disabled', true);\n $voteYesInputWrapper.addClass('x-disabled');\n $btnVoteNo.prop('disabled', true);\n $voteNoInputWrapper.addClass('x-disabled');\n $userVotedMessage.show();\n\n } else {\n $voteError.html(LhApp.Function.getText('Validation:' + response.code));\n $voteError.show();\n };\n };\n\n function noVoteSuccess (response) {\n if (response.success) {\n $totalNoVotes.val(parseInt($totalNoVotes.val()) + 1);\n $btnVoteYes.prop('disabled', true);\n $voteYesInputWrapper.addClass('x-disabled');\n $btnVoteNo.prop('disabled', true);\n $voteNoInputWrapper.addClass('x-disabled');\n $userVotedMessage.show();\n\n } else {\n $voteError.html(LhApp.Function.getText('Validation:' + response.code));\n $voteError.show();\n };\n };\n\n function voteFailure (response) {\n $voteError.html(LhApp.Function.getText('Validation:' + response.code));\n $voteError.show();\n };\n\n\n $btnVote.click(function (e) {\n if (sessionIsAuthenticated) {\n if (!currentUserVotedForHelpfullness) {\n $voteError.hide();\n if ($(this).hasClass('vote-btn-yes')) {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Product.Messages.ReviewVote(reviewId, true));\n } else if ($(this).hasClass('vote-btn-no')) {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Product.Messages.ReviewVote(reviewId, false));\n }\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.ReviewVoteSuccess, wrapper, function (envelope) {\n if (envelope.message.data.vote === true) {\n yesVoteSuccess(envelope.message.data.response)\n } else {\n noVoteSuccess(envelope.message.data.response)\n };\n Vendd.MessageBus.unsubscribe(Vendd.Product.Messages.ReviewVoteSuccess, wrapper);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.ReviewVoteFailure, wrapper, function (envelope) {\n voteFailure(envelope.message.data.response);\n Vendd.MessageBus.unsubscribe(Vendd.Product.Messages.ReviewVoteFailure, wrapper);\n });\n\n };\n } else {\n $loginPopup.show();\n };\n });\n\n\n if (!sessionIsAuthenticated) {\n\n var $loginLink = $('*[data-click=\"login\"]', $loginPopup);\n var $registerLink = $('*[data-click=\"register\"]', $loginPopup);\n var $closeBtn = $('*[data-click=\"close-popup\"]', $loginPopup);\n\n var $loginWidget = $('.x-control.x-widget.x-login-widget').first();\n var redirectUrl = LhApp.Function.Url.setParameterValue('mode', 'view-reviews');\n\n $loginLink.click(function(e) {\n $loginPopup.hide();\n\n if ($loginWidget.length > 0) {\n if ($(window).width() > 960 || !isTouch()) {\n $('html, body').animate({ scrollTop: 0 }, 1);\n }\n\n var $loginForm = $('.x-login-form .login-form', $loginWidget);\n $loginForm.attr('data-redirect', redirectUrl);\n\n setTimeout(function () { $('.js-widget-trigger', $loginWidget).click(); }, 100);\n } else {\n document.location = LhApp.Function.Url.setParameterValueOnUrl(LhApp.Url.Page.Login, 'ReturnUrl', encodeURIComponent(redirectUrl));\n };\n });\n\n $registerLink.click(function(e) {\n\n document.location = LhApp.Function.Url.setParameterValueOnUrl(LhApp.Url.Page.Register, 'ReturnUrl', encodeURIComponent(redirectUrl));\n });\n\n $closeBtn.click(function (e) {\n $loginPopup.hide();\n });\n } else {\n $loginPopup.remove();\n }\n });\n});","Vendd.Scripts.load(function () {\n\n $('.x-control.x-order.x-orderchangeform').each(function (i, wrapper) {\n var $wrapper = $(wrapper);\n var $orderItems = $('[data-container=\"orderItem\"]', $wrapper);\n var $submitButton = $('button[type=\"button\"][data-click=\"submit\"]', $wrapper);\n var cash = $wrapper.data('cash');\n\n wrapper.items = [];\n\n $orderItems.each(function (i, item) {\n var $orderItem = $(item);\n var oid = $orderItem.data('id');\n\n var $checkboxAction = $('.option-action-checkbox', $orderItem);\n var $changeOrderForms = $('.change-order-form', $orderItem);\n\n var replaceValOpts = {\n replaceWith: {\n required: 'replaceWith-required'\n },\n returnReason: {\n required: 'returnReason-required'\n }\n };\n\n var refundValOpts = {\n refundReason: {\n required: 'refundReason-required'\n }\n };\n\n if (cash) {\n refundValOpts['cardnumber'] = {\n required: 'cardnumber-required'\n };\n refundValOpts['bankName'] = {\n required: 'bankName-required'\n };\n refundValOpts['ccname'] = {\n required: 'ccname-required'\n };\n }\n\n $orderItem.validationEngine({});\n\n item.validateInit = function () {\n $orderItem.data('validationEngine').destroy();\n if ($checkboxAction.filter(\":checked\").val() == \"replace\") {\n $orderItem.validationEngine(replaceValOpts);\n } else if ($checkboxAction.filter(\":checked\").val() == \"refund\") {\n $orderItem.validationEngine(refundValOpts);\n } else if ($checkboxAction.filter(\":checked\").val() == \"credit-balance\") {\n $orderItem.validationEngine({});\n }\n };\n\n $checkboxAction.off(\"change\").on(\"change\", function () {\n var targetedForm = $(this).data('target');\n\n $orderItem.data('validationEngine').reset();\n\n if ($(this).is(':checked')) {\n $checkboxAction.filter('[data-target!=' + targetedForm + ']').prop(\"checked\", false);\n\n $changeOrderForms.removeClass(\"shown\");\n $changeOrderForms.filter('[data-target=' + targetedForm + ']').addClass(\"shown\");\n\n item.validateInit();\n } else {\n $changeOrderForms.filter('[data-target=' + targetedForm + ']', $orderItem).removeClass(\"shown\");\n $orderItem.validationEngine({});\n }\n $submitButton.prop(\"disabled\", $(\".option-action-checkbox:checked\", $wrapper).length <= 0);\n });\n\n $('select[data-member=\"returnReason\"], select[data-member=\"refundReason\"]', $orderItem).off(\"change\").on(\"change\", function () {\n var textareaName;\n\n if ($(this).val() === 'other') {\n if ($checkboxAction.filter(\":checked\").val() == \"replace\") {\n textareaName = $('textarea[data-member=\"returnNote\"]', $orderItem).attr('name');\n replaceValOpts[textareaName] = {\n required: textareaName + '-required'\n };\n } else if ($checkboxAction.filter(\":checked\").val() == \"refund\") {\n textareaName = $('textarea[data-member=\"refundNote\"]', $orderItem).attr('name');\n refundValOpts[textareaName] = {\n required: textareaName + '-required'\n };\n }\n } else {\n if ($checkboxAction.filter(\":checked\").val() == \"replace\") {\n textareaName = $('textarea[data-member=\"returnNote\"]', $orderItem).attr('name');\n replaceValOpts = _.omit(replaceValOpts, textareaName);\n } else if ($checkboxAction.filter(\":checked\").val() == \"refund\") {\n textareaName = $('textarea[data-member=\"refundNote\"]', $orderItem).attr('name');\n refundValOpts = _.omit(refundValOpts, textareaName);\n }\n }\n\n });\n\n $orderItem.on('keyup', 'input[name], textarea[name]', function (e) {\n var fieldName = $(this).attr('name');\n var rfTemp = $orderItem.data('validationEngine');\n\n rfTemp.validate(fieldName);\n });\n\n $orderItem.on('change', 'select[name]', function (e) {\n var fieldName = $(this).attr('name');\n var rfTemp = $orderItem.data('validationEngine');\n\n rfTemp.validate(fieldName);\n });\n\n item.getValue = function () {\n\n var defaultOpts = {\n id: oid,\n action: undefined,\n note: undefined,\n returnReason: undefined,\n replaceProductItemId: undefined,\n bankName: undefined,\n bankHolder: undefined,\n bankIban: undefined\n };\n\n if ($checkboxAction.filter(\":checked\").val() == \"replace\") {\n defaultOpts.action = 'replace';\n defaultOpts.replaceProductItemId = $('[data-member=\"replaceWith\"]', $changeOrderForms).val();\n\n defaultOpts.returnReason = $('[data-member=\"returnReason\"]', $changeOrderForms).val();\n defaultOpts.note = $('[data-member=\"returnNote\"]', $changeOrderForms).val();\n } else if ($checkboxAction.filter(\":checked\").val() == \"refund\") {\n defaultOpts.action = 'refund';\n\n defaultOpts.returnReason = $('[data-member=\"refundReason\"]', $changeOrderForms).val();\n defaultOpts.note = $('[data-member=\"refundNote\"]', $changeOrderForms).val();\n\n defaultOpts.bankName = $('[data-member=\"bankName\"]', $changeOrderForms).val();\n defaultOpts.bankHolder = $('[data-member=\"ccname\"]', $changeOrderForms).val();\n defaultOpts.bankIban = $('[data-member=\"cardnumber\"]', $changeOrderForms).val();\n }\n else if ($checkboxAction.filter(\":checked\").val() == \"credit-balance\") {\n defaultOpts.action = 'credit-balance';\n }\n\n\n return defaultOpts;\n };\n });\n\n $submitButton.off(\"click\").on(\"click\", function () {\n wrapper.items = [];\n var validate = true;\n\n $orderItems.each(function (i, orderItem) {\n var $orderItem = $(orderItem);\n if ($('.option-action-checkbox', $orderItem).filter(\":checked\").length > 0) {\n var replaceProductItemId = $(\".replaceWithSearchText\", $orderItem).attr(\"data-variantid\");\n $(\"[name='replaceWith']\", $orderItem).val(replaceProductItemId);\n var rf = $orderItem.data('validationEngine');\n var val = rf.validate();\n if (val) {\n validate = validate && true;\n } else {\n validate = false;\n }\n wrapper.items.push(orderItem.getValue());\n }\n });\n\n if (wrapper.items.length > 0 && validate) {\n $('.order-items', $wrapper).addClass('x-loading');\n wrapper.submit();\n } else {\n $('html, body').animate({\n scrollTop: $('.form-row.with-error', $wrapper).first().closest('.change-order-form').offset().top - 50\n }, 600);\n }\n });\n\n wrapper.submit = function () {\n\n var resultData = {\n id: $wrapper.data('id'),\n items: wrapper.items\n };\n\n Vendd.Service.call({\n url: 'EcomService.svc/ChangeOrder',\n data: {\n data: resultData\n },\n onSuccess: function (res) {\n if (res.success) {\n $('[data-section=\"content\"]', $wrapper).hide();\n $('.js-success', $wrapper).show();\n $('.js-error', $wrapper).hide();\n } else {\n $('.js-success', $wrapper).hide();\n $('.js-error', $wrapper).show();\n $('html, body').animate({\n scrollTop: $('.js-error', $wrapper).offset().top - 50\n }, 600);\n }\n $('.order-items', $wrapper).removeClass('x-loading');\n }\n });\n };\n });\n\n\n});","Vendd.Scripts.load(function () {\n 'use strict';\n\n var $wrappers = $('.x-cart-searchbox');\n\n $wrappers.each(function (i, wrapper) {\n var $wrapper = $(wrapper);\n\n var $list = $('.x-product-suggestive-results-list', $wrapper);\n if ($wrapper.length < 1 || $list.length < 1)\n return;\n\n var resultsPerPage = ($wrapper.data('page-size') || 12), pdPageNum = 1, isProductSelected = false,\n isLookupCompleted = false, maxResults = resultsPerPage,\n list = $list.get(0),\n $searchInput = $('.js-keyword', $wrapper), $qtyInput = $('.js-quantity', $wrapper),\n $increaseQtyInput = $('.js-incr-quantity', $wrapper), $decreaseQtyInput = $('.js-decr-quantity', $wrapper),\n $submitButton = $('.js-add-to-cart', $wrapper), minLength = $wrapper.data('min-search-length'),\n lazy = $list.data(\"lazy-load-init\"), model = null,\n topResult = ($wrapper.data('top-results') || 100),\n isElastic = ($wrapper.data(\"is-elastic\") || \"false\").toLowerCase() == \"true\",\n HasInfiniteScroll = ($wrapper.data(\"has-infinite-scroll\") || \"false\").toLowerCase() == \"true\",\n infiniteScrollIsLoading = false;\n\n wrapper.loading = function loading(loading) {\n isLookupCompleted = !loading;\n if (loading) {\n $wrapper.addClass('x-loading').addClass('x-disabled');\n } else {\n $wrapper.removeClass('x-loading').removeClass('x-disabled');\n }\n infiniteScrollIsLoading = false;\n };\n\n wrapper.enableInput = function enableInput(enable, $input) {\n if (enable) {\n $input.removeAttr('disabled').prop('disabled', false);\n } else {\n $input.attr('disabled', 'disabled').prop('disabled', true);\n }\n };\n\n wrapper.enableInputs = function enableInputs(enable) {\n wrapper.enableInput(false, $decreaseQtyInput);\n wrapper.enableInput(enable, $increaseQtyInput);\n wrapper.enableInput(enable, $qtyInput);\n wrapper.enableInput(enable, $submitButton);\n };\n\n list.update = function update() {\n wrapper.loading(true);\n\n var html = Vendd.Handlebars.parse(\"suggestiveResultProductList_A\", model);\n var $html = $(html);\n var $newProducts = $('.product-results', $html);\n var $products = $('.product-results', $list).last();\n if ($products.length > 0)\n $newProducts.insertAfter($products);\n else\n $html.appendTo($list);\n if (!model.MoreProducts) {\n $('.js-more-results', $list).hide();\n }\n\n wrapper.loading(false);\n };\n\n list.clear = function clear() {\n $list.html(\"\");\n };\n\n list.show = function show(show) {\n if (show) {\n $list.addClass(\"js-visible\");\n } else {\n $list.removeClass(\"js-visible\");\n }\n };\n\n wrapper.checkSearchTerm = function (searchTerm) {\n return /[a-zα-ωάέήίόύώϊϋΐΰςа-я0-9]{0,}/i.test(searchTerm);\n };\n\n wrapper.setSelectedProduct = function setSelectedProduct(data) {\n var productId = (data) ? data.productId : '',\n variantId = (data) ? data.variantId : '',\n path = (data) ? data.path : '',\n availabilityActionId = (data) ? data.availabilityActionId : '',\n name = (data) ? data.name : '',\n stock = (data) ? data.stock : 0,\n minQuantity = (data) ? data.minQuantity : 0,\n maxQuantity = (data) ? data.maxQuantity : 0,\n quanta = (data) ? data.quanta : 0,\n color = (data) ? data.color : \"\",\n size = (data) ? data.size : \"\",\n list = (data) ? data.list : \"\";\n\n $searchInput.attr('data-productid', productId);\n $searchInput.attr('data-variantid', variantId);\n $searchInput.attr('data-path', path);\n $searchInput.attr('data-availability-action-id', availabilityActionId);\n $searchInput.attr('data-min-quantity', minQuantity);\n $searchInput.attr('data-max-quantity', maxQuantity);\n $searchInput.attr('data-quanta', quanta);\n $searchInput.attr('data-color', color);\n $searchInput.attr('data-size', size);\n $searchInput.attr('data-list', list);\n if (name != \"\") $searchInput.val(name);\n $qtyInput.attr('data-stock', stock);\n\n var quantity = stock > minQuantity ? minQuantity : 1;\n if (quantity > 0 && quanta > 0 && quantity % quanta !== 0) {\n quantity = quanta;\n }\n\n $qtyInput.val(numberToString(quantity));\n\n wrapper.enableInputs(stock > 0);\n isProductSelected = (data) ? true : false;\n };\n\n $list.on('click', '.js-list-item', function () {\n var $item = $(this);\n var data = {\n productId: $item.data('productid').toString(),\n variantId: $item.data('variantid').toString(),\n path: $item.data('path').toString(),\n availabilityActionId: $item.data('availability-action-id').toString(),\n name: $item.data('name'),\n stock: parseInt($item.data('stock')),\n minQuantity: parseFloat(($item.data('min-quantity') ? stringToNumber($item.data('min-quantity')) : null) || 1),\n maxQuantity: parseFloat(($item.data('max-quantity') ? stringToNumber($item.data('max-quantity')) : null) || 0),\n quanta: parseFloat(($item.data('quanta') ? stringToNumber($item.data('quanta')) : null) || 1),\n color: $item.data('color') ? $item.data('color') : \"\",\n size: $item.data('size') ? $item.data('size') : \"\",\n list: $item.data('list') ? $item.data('list') : \"\"\n };\n\n wrapper.setSelectedProduct(data);\n list.show(false);\n\n if ($('.x-orderchangeform').length > 0) {\n $item.closest('[data-container=\"orderItem\"]').find(\"[name='replaceWith']\").val(data.variantId);\n $item.closest('[data-container=\"orderItem\"]').data('validationEngine').validate('replaceWith');\n }\n\n });\n\n $list.on('click', '.js-more-results', function () {\n var searchTerm = $searchInput.val();\n if ($searchInput.val().length >= minLength && !isProductSelected) {\n //maxResults = maxResults + resultsPerPage;\n //maxResults = Math.min(maxResults, topResult);\n pdPageNum++;\n if (isElastic) {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Search.Messages.GetProductSuggestiveElasticResults(searchTerm, pdPageNum, maxResults));\n }\n else {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Search.Messages.GetProductSuggestiveResults(searchTerm, 10000, pdPageNum, maxResults));\n }\n } else {\n list.show(false);\n };\n });\n\n $wrapper.on('click', '.js-incr-quantity', function () {\n var $this = $(this);\n if ($this.hasClass('x-disabled') || $this.is(':disabled'))\n return;\n\n var stock = parseInt($qtyInput.data('stock'));\n\n var quanta = parseFloat(($searchInput.data('quanta') ? stringToNumber($searchInput.data('quanta')) : null) || 1);\n var minQuantity = parseFloat(($searchInput.data('min-quantity') ? stringToNumber($searchInput.data('min-quantity')) : null) || 1);\n var maxQuantity = parseFloat(($searchInput.data('max-quantity') ? stringToNumber($searchInput.data('max-quantity')) : null) || stock);\n\n var tempQuantity = parseFloat(stringToNumber($qtyInput.val()));\n\n if (tempQuantity >= 0) {\n tempQuantity = tempQuantity + quanta;\n if (tempQuantity <= maxQuantity) {\n wrapper.enableInput(tempQuantity !== maxQuantity, $increaseQtyInput);\n $qtyInput.val(numberToString(tempQuantity));\n } else\n wrapper.enableInput(false, $increaseQtyInput);\n\n if (tempQuantity > minQuantity) wrapper.enableInput(true, $decreaseQtyInput);\n }\n\n var enableSubmitButton = (parseFloat(stringToNumber($qtyInput.val())) > 0 && isProductSelected);\n wrapper.enableInput(enableSubmitButton, $submitButton);\n });\n\n $wrapper.on('click', '.js-decr-quantity', function () {\n var $this = $(this);\n if ($this.hasClass('x-disabled') || $this.is(':disabled'))\n return;\n\n var stock = parseInt($qtyInput.data('stock'));\n var tempQuantity = parseFloat(stringToNumber($qtyInput.val()));\n var quanta = parseFloat(($searchInput.data('quanta') ? stringToNumber($searchInput.data('quanta')) : null) || 1);\n var minQuantity = parseFloat(($searchInput.data('min-quantity') ? stringToNumber($searchInput.data('min-quantity')) : null) || 1);\n var maxQuantity = parseFloat(($searchInput.data('max-quantity') ? stringToNumber($searchInput.data('max-quantity')) : null) || stock);\n\n if (tempQuantity !== minQuantity && tempQuantity > 0) {\n tempQuantity = tempQuantity - quanta;\n $qtyInput.val(numberToString(tempQuantity));\n wrapper.enableInput(true, $increaseQtyInput);\n }\n\n if (tempQuantity <= minQuantity)\n wrapper.enableInput(false, $decreaseQtyInput);\n\n var enableSubmitButton = (parseFloat(stringToNumber($qtyInput.val())) > 0 && isProductSelected);\n wrapper.enableInput(enableSubmitButton, $submitButton);\n });\n\n if (HasInfiniteScroll) {\n $list.on('scroll', function (e) {\n var $viewItem = $(\".js-more-results\", $list);\n if (!$viewItem.is(\":visible\") && infiniteScrollIsLoading) return;\n var scrollTop = $list.scrollTop();\n var innerHeight = $list.innerHeight();\n var scrollHeight = list.scrollHeight;\n var innerHeight_v = $viewItem.innerHeight();\n var infiniteScrollPadding = 20;\n console.log(\"innerHeight_v , \" + innerHeight_v + \" | outerHeight_v\" + $viewItem.outerHeight(true));\n var isVisible = (scrollHeight - (scrollTop + innerHeight + infiniteScrollPadding)) < innerHeight_v;\n if (isVisible && !infiniteScrollIsLoading) {\n infiniteScrollIsLoading = true;\n $viewItem.trigger('click');\n }\n });\n }\n\n $wrapper.on('keyup', '.js-quantity', function () {\n var $this = $(this);\n if ($this.hasClass('x-disabled') || $this.is(':disabled'))\n return;\n\n var stock = parseInt($qtyInput.data('stock'));\n\n var tempQuantity = parseFloat(stringToNumber($qtyInput.val()));\n var quanta = parseFloat(($searchInput.data('quanta') ? stringToNumber($searchInput.data('quanta')) : null) || 1);\n var minQuantity = parseFloat(($searchInput.data('min-quantity') ? stringToNumber($searchInput.data('min-quantity')) : null) || 1);\n var maxQuantity = parseFloat(($searchInput.data('max-quantity') ? stringToNumber($searchInput.data('max-quantity')) : null) || stock);\n\n var selectedQuantity = tempQuantity;\n\n if (quanta > 1 && tempQuantity % quanta !== 0) {\n tempQuantity = tempQuantity - (tempQuantity % quanta);\n }\n\n if (tempQuantity < maxQuantity && tempQuantity > minQuantity) {\n selectedQuantity = tempQuantity;\n } else if (tempQuantity >= maxQuantity) {\n selectedQuantity = quanta > 1 && maxQuantity % quanta !== 0 ? maxQuantity - (maxQuantity % quanta) : maxQuantity;\n } else if (tempQuantity <= minQuantity) {\n selectedQuantity = quanta > 1 && minQuantity % quanta !== 0 ? minQuantity - (minQuantity % quanta) : minQuantity;\n }\n\n $qtyInput.val(numberToString(selectedQuantity));\n\n var enableIncreaseQtyInput = (tempQuantity < maxQuantity),\n enableDecreaseQtyInput = (tempQuantity > minQuantity),\n enableSubmitButton = (selectedQuantity > minQuantity && selectedQuantity > maxQuantity && isProductSelected);\n\n wrapper.enableInput(enableIncreaseQtyInput, $increaseQtyInput);\n wrapper.enableInput(enableDecreaseQtyInput, $decreaseQtyInput);\n wrapper.enableInput(enableSubmitButton, $submitButton);\n });\n\n $wrapper.on('click', '.js-add-to-cart', function (e) {\n if ($searchInput.val().length >= minLength && isLookupCompleted && isProductSelected) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this);\n\n if ($this.hasClass('x-disabled') || $this.is(':disabled'))\n return;\n if ($('.x-warehouse-selector-widget').trigger('addtocart').hasClass('opening'))\n return;\n\n var id = $searchInput.data('productid');\n var skuId = $searchInput.data('variantid');\n var path = $searchInput.data('path');\n var qty = parseFloat(stringToNumber($qtyInput.val())) || 1;\n var extraAttributes = [];\n var bundleItems = [];\n var recipeItems = [];\n var comboItems = [];\n var itemInfo = {\n minQuantity: parseFloat(($searchInput.data('min-quantity') ? stringToNumber($searchInput.data('min-quantity')) : null) || 0),\n maxQuantity: parseFloat(($searchInput.data('max-quantity') ? stringToNumber($searchInput.data('max-quantity')) : null) || 0),\n quanta: parseFloat(($searchInput.data('quanta') ? stringToNumber($searchInput.data('quanta')) : null) || 0),\n };\n\n //enhanced info\n var color = $searchInput.data('color');\n var size = $searchInput.data('size');\n var list = $searchInput.data('list');\n\n var enhancedInfo = { color: color, size: size, list: list };\n //enhanced info\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Cart.Messages.Add(id, skuId, path, qty, extraAttributes, bundleItems, recipeItems, comboItems, itemInfo, enhancedInfo));\n };\n });\n\n $wrapper.on('keyup', '.js-keyword', $.debounce(850, function () {\n var searchTerm = $searchInput.val();\n if (isProductSelected) {\n wrapper.setSelectedProduct(null);\n }\n list.clear();\n pdPageNum = 1;\n if (searchTerm.length >= minLength && wrapper.checkSearchTerm(searchTerm)) {\n wrapper.loading(true);\n //maxResults = resultsPerPage;\n //maxResults = Math.min(maxResults, topResult);\n if (isElastic) {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Search.Messages.GetProductSuggestiveElasticResults(searchTerm, pdPageNum, maxResults));\n }\n else {\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Search.Messages.GetProductSuggestiveResults(searchTerm, maxResults, pdPageNum, maxResults));\n }\n } else {\n list.show(false);\n }\n }));\n\n $wrapper.on('click', '.js-keyword', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $searchInput.select();\n });\n\n $wrapper.on('focus', '.js-keyword', function () {\n var show = ($searchInput.val().length >= minLength && isLookupCompleted && !isProductSelected);\n list.show(show);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Search.Messages.GetProductSuggestiveResultsFailed, wrapper, function (envelope) {\n list.show(false);\n wrapper.loading(false);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Search.Messages.GetProductSuggestiveResultsSuccess, wrapper, function (envelope) {\n model = envelope.message.data.model;\n if (model.sender != wrapper) {\n list.show(false);\n wrapper.loading(false);\n return;\n }\n model.MoreProducts = (model.ProductsCount || 0) > (maxResults * pdPageNum);\n if (pdPageNum > 1) model.PageNumber = pdPageNum;\n list.update();\n list.show(true);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Search.Messages.GetProductSuggestiveResultsElasticFailed, wrapper, function (envelope) {\n list.show(false);\n wrapper.loading(false);\n });\n\n Vendd.MessageBus.subscribe(Vendd.Search.Messages.GetProductSuggestiveResultsElasticSuccess, wrapper, function (envelope) {\n model = envelope.message.data.model;\n model.IsElastic = isElastic;\n model.HasLazyLoadPrices = HasLazyLoadPrices;\n model.HasInfiniteScroll = HasInfiniteScroll;\n model.MoreProducts = ((((model || {}).hits || {}).total || {}).value || 0) > (maxResults * pdPageNum);\n if (pdPageNum > 1) model.PageNumber = pdPageNum;\n\n if (model.HasLazyLoadPrices && model.hits.hits.length > 0) {\n var items = _.pluck(_.pluck(model.hits.hits, '_source'), 'VariantId');\n var obj = {\n itemIds: items,\n fetchPrices: true,\n fetchAvailabilities: false,\n fetchStock: false\n };\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.ScrollList.Messages.GetClientProductListData(obj));\n\n Vendd.MessageBus.subscribe(Vendd.ScrollList.Messages.GetClientProductListDataSuccess, wrapper, function (envelope) {\n var result = JSON && JSON.parse(envelope.message.data) || $.parseJSON(envelope.message.data);\n var modelWithPrices = _.each(model.hits.hits, function (obj) {\n var selectedProduct = _.find(result.Products, function (x) { return obj._source.VariantId === x.VariantId; });\n if (selectedProduct) _.extend(obj._source, selectedProduct.Prices);\n });\n _.extend(model.hits.hits, modelWithPrices);\n\n list.update();\n list.show(true);\n Vendd.MessageBus.unsubscribe(Vendd.ScrollList.Messages.GetClientProductListDataSuccess, wrapper);\n });\n } else {\n list.update();\n list.show(true);\n }\n });\n\n Vendd.MessageBus.subscribe(Vendd.Cart.Messages.Changed, wrapper, function (envelope) {\n if (!isProductSelected)\n return;\n\n wrapper.setSelectedProduct(null);\n });\n\n $(document).mouseup(function (e) {\n if (!$wrapper.is(e.target) && $wrapper.has(e.target).length === 0) {\n list.show(false);\n }\n });\n\n });\n});","Vendd.Scripts.load(function () {\n\n var $wrapper = $('.x-product-details'),\n wrapper;\n var model = null, firstLoad = true, lazyLoadSender = false,\n wishlistModel, compareModel;\n\n if ($wrapper.length < 1)\n return;\n\n wrapper = $wrapper.get(0);\n\n //example: bundleItems: [{bundleProductId:'testValue', parentProductId:'testValue', productId:'testValue', quantity: 'testValue'}]\n var bundleItems = [];\n\n var $bundleItems = $('.js-bundle-item-list .js-bundle-item', $wrapper);\n $.each($bundleItems, function (i, control) {\n var $control = $(control);\n var isDynamic = $control.data('is-dynamic').toLowerCase() === 'true';\n var bundleProductId = parseInt($control.data('bundle-id'));\n var parentProductId = $control.data('parent-id');\n var productId = $control.data('selected-id');\n\n var $qty = $('.js-quantity', $control);\n\n if (isDynamic) {\n bundleItems.push({\n bundleProductId: bundleProductId,\n parentProductId: parentProductId,\n productId: productId,\n quantity: parseInt($qty.val())\n });\n }\n });\n\n var recipeItems = [];\n var comboItems = [];\n var minQuantity = ($wrapper.data('min-quantity') ? stringToNumber($wrapper.data('min-quantity')) : null) || 0;\n var maxQuantity = ($wrapper.data('max-quantity') ? stringToNumber($wrapper.data('max-quantity')) : null) || 0;\n var quanta = ($wrapper.data('quanta') ? stringToNumber($wrapper.data('quanta')) : null) || 0;\n var qty;\n if (quanta) {\n qty = Vendd.Helpers.isInteger(parseFloat(quanta)) ? parseInt(minQuantity) || parseInt(quanta) : parseFloat(minQuantity) || parseFloat(quanta);\n } else {\n qty = 1;\n }\n Vendd.Product.Controller.initState({\n serviceConfiguration: $('.configuration', $wrapper).text(),\n parentId: $wrapper.data('parent-id'),\n selectedId: $wrapper.data('selected-id'),\n selectedColorId: $wrapper.data('selected-color-id'),\n path: $wrapper.data('path'),\n languageId: $wrapper.data('language-id'),\n qty: qty > 0 ? qty : 1,\n minQuantity: Vendd.Helpers.isInteger(parseFloat(quanta)) ? parseInt(minQuantity) : parseFloat(minQuantity),\n maxQuantity: Vendd.Helpers.isInteger(parseFloat(quanta)) ? parseInt(maxQuantity) : parseFloat(maxQuantity),\n quanta: Vendd.Helpers.isInteger(parseFloat(quanta)) ? parseInt(quanta) : parseFloat(quanta),\n bundleItems: bundleItems,\n recipeItems: recipeItems,\n comboItems: comboItems\n });\n\n $('.configuration', $wrapper).remove();\n\n wrapper.loading = function (loading) {\n if (loading) {\n $wrapper.addClass('x-loading');\n } else {\n $wrapper.removeClass('x-loading');\n }\n };\n\n var merchantPopUp = function (model) {\n\n var html = Vendd.Handlebars.parse(\"merchantBox_B\", model);\n\n $.fancybox.open(html, {\n type: 'iframe',\n maxWidth: 1040,\n fitToView: false,\n autoSize: false,\n closeClick: false,\n openEffect: 'none',\n closeEffect: 'none',\n padding: 0\n });\n\n };\n\n wrapper.bind = function () {\n\n if ($wrapper.hasClass('x-product-details-popup')) {\n\n Vendd.MessageBus.publish(wrapper, new Vendd.Widget.Messages.BindControl($('.x-product-details-ajax-buttons', $wrapper)));\n\n } else {\n\n var scrollOffset;\n if ($('.js-go-to-size-guide').length > 0) {\n\n $('.js-go-to-size-guide', $wrapper).click(function () {\n scrollOffset = $(window).width() > 960 ? 100 : 50;\n $('.product-details-region .x-pd-tab-panel .tab-title.size-guide').trigger('click');\n $('html, body').animate({ scrollTop: $('.product-details-region .x-pd-tab-panel .tab-content.size-guide').offset().top - scrollOffset }, 1);\n });\n }\n\n if ($('.js-scroll-to-reviews').length > 0) {\n\n $('.js-scroll-to-reviews', $wrapper).click(function () {\n scrollOffset = $(window).width() > 960 ? 100 : 50;\n $('.product-details-region .x-pd-tab-panel .tab-title.reviews').trigger('click');\n $('html, body').animate({ scrollTop: $('.product-details-region .x-pd-tab-panel .tab-content.reviews').offset().top - scrollOffset }, 1);\n });\n }\n\n if ($('.js-scroll-to-review-form').length > 0) {\n\n $('.js-scroll-to-review-form', $wrapper).click(function () {\n scrollOffset = $(window).width() > 960 ? 100 : 50;\n $('.product-details-region .x-pd-tab-panel .tab-title.reviews').trigger('click');\n $('html, body').animate({ scrollTop: $('.product-details-region .x-pd-tab-panel .tab-content.reviews').offset().top - scrollOffset }, 1);\n $('[data-click=\"open-product-review-form\"]').trigger('click');\n });\n }\n\n Vendd.MessageBus.publish(wrapper, new Vendd.Widget.Messages.BindControl($('.x-product-list', $wrapper)));\n }\n\n InitStickyBar();\n initTooltips();\n\n /* enable add to wishlist, when the version's selectors are selected */\n var $merchantSelector = $('.x-product-details-version-selector.merchant ul .dim-item.li', $wrapper);\n\n $.each($merchantSelector, function (i, control) {\n var $control = $(control);\n\n if ($('.js-popup', $control).length > 0) {\n Vendd.MessageBus.unsubscribe(Vendd.Product.Messages.Changed, wrapper);\n Vendd.MessageBus.subscribe(Vendd.Merchant.Messages.GetModelSuccess, wrapper, function (envelope) {\n model = envelope.message.data.model;\n merchantPopUp(model);\n });\n var $dimItem = $(this).closest(\".dim-item\");\n var merchantId = $dimItem.data(\"version-id\");\n Vendd.MessageBus.publish(wrapper, new Vendd.Merchant.Messages.GetModel($wrapper, merchantId));\n\n }\n });\n\n //productReviews();\n //productReviewBox();\n\n //productReviewAjaxForm();\n //productReviewsSummary();\n Vendd.MessageBus.publish(wrapper, new Vendd.Widget.Messages.BindControl($('.x-recipe-ingredients-wrapper', $wrapper)));\n Vendd.MessageBus.publish(wrapper, new Vendd.Product.Messages.BindControl($wrapper));\n formatPrices($wrapper);\n allowOnlyNumbersInput($wrapper);\n\n initAlreadyInCart();\n\n //Init plugin for sticky \n initStickyColumn();\n };\n\n wrapper.update = function () {\n wrapper.loading(true);\n\n firstLoad = false;\n\n /* Already in wishlist and compare start */\n if (wishlistModel) {\n _.each(wishlistModel.Items, function (item) {\n if (item.VariantId == model.SelectedProductId) {\n model.AlreadyInWishlist = true;\n return;\n }\n });\n }\n if (compareModel) {\n _.each(compareModel.Items, function (item) {\n if (item.Id == model.ParentProductId) {\n model.AlreadyInCompare = true;\n return;\n }\n });\n }\n\n /* Already in wishlist and compare end */\n\n if (typeof canonicalBreadcrumb !== 'undefined') {\n model = $.extend({}, canonicalBreadcrumb, model);\n }\n\n if (model.Dimensions.length >= 2) {\n\n /* Dropdown Selectors - On Color Change, Hide the Colors Photogallery */\n //var colorSelector = $('.x-product-details-version-selector select.dim-0-select');\n //if (colorSelector.length > 0) {\n // _.each(model.Dimensions[0].Versions, function (ver) {\n // if (ver.Selected) {\n // model.HideColorsGallery = true;\n // return;\n // }\n // });\n //}\n //var colorSelector = $('.x-product-details-version-selector select.dim-0-select');\n //if (colorSelector.length > 0) {\n // if (colorSelector.val() == 0) {\n // _.each(model.Dimensions[0].Versions, function (ver) { ver.Selected = false; });\n // model.Dimensions[0].DefaultSkuLoaded = true;\n // model.DefaultSkuLoaded = true;\n // if (!model.Buttons.CartEnabled) {\n // var quantitySelector = $('.x-product-details-quantity-selector .js-selector');\n // $('option', quantitySelector).each(function () {\n // var quantityElement = {};\n // quantityElement.Value = $(this).attr('value');\n // quantityElement.Selected = $(this).attr('selected') !== undefined;\n // model.Quantities.push(quantityElement);\n // });\n // model.Buttons.CartEnabled = true;\n // }\n // model.Buttons.HasAddToCart = false;\n // model.Buttons.HasAddToProductCompare = false;\n // model.Buttons.HasAddToWishlist = false;\n // model.AvailabilityNoticationForm.Visible = false;\n // }\n //}\n\n //var sizeSelector = $('.x-product-details-version-selector select.dim-1-select');\n //if (sizeSelector.length > 0) {\n // if (sizeSelector.val() == 0) {\n // _.each(model.Dimensions[1].Versions, function (ver) { ver.Selected = false; });\n // model.Dimensions[1].DefaultSkuLoaded = true;\n // if (!model.Buttons.CartEnabled) {\n // var quantitySelector = $('.x-product-details-quantity-selector .js-selector');\n // $('option', quantitySelector).each(function () {\n // var quantityElement = {};\n // quantityElement.Value = $(this).attr('value');\n // quantityElement.Selected = $(this).attr('selected') !== undefined;\n // model.Quantities.push(quantityElement);\n // });\n // model.Buttons.CartEnabled = true;\n // }\n // //model.Quantities[0] = { Value: 1, Selected: true };\n // model.DefaultSkuLoaded = true;\n // model.Buttons.HasAddToCart = false;\n // model.Buttons.HasAddToProductCompare = false;\n // model.Buttons.HasAddToWishlist = false;\n // model.AvailabilityNoticationForm.Visible = false;\n // }\n //}\n /* Dropdown Selectors */\n\n\n /* List Selectors */\n var colorSelector = $('.x-product-details-version-selector ul.dim-0-list'),\n sizeSelector = $('.x-product-details-version-selector ul.dim-1-list');\n\n model.colorIsSelected = false;\n model.sizeIsSelected = false;\n\n if (colorSelector.length > 0 && $('> li.selected', colorSelector).length > 0) {\n model.colorIsSelected = true;\n }\n\n if (sizeSelector.length > 0 && $('> li.selected', sizeSelector).length > 0) {\n model.sizeIsSelected = true;\n }\n\n if (colorSelector.length > 0) {\n _.each(model.Dimensions[0].Versions, function (ver) {\n if (ver.Selected) {\n model.ColorIsSelected = true;\n return;\n }\n });\n if ($('> li.selected', colorSelector).length == 0) {\n _.each(model.Dimensions[0].Versions, function (ver) { ver.Selected = false; });\n if (!model.Buttons.CartEnabled) {\n var quantitySelector = $('.x-product-details-quantity-selector .js-selector');\n $('option', quantitySelector).each(function () {\n var quantityElement = {};\n quantityElement.Value = $(this).attr('value');\n quantityElement.Selected = $(this).attr('selected') !== undefined;\n model.Quantities.push(quantityElement);\n });\n model.Buttons.CartEnabled = true;\n }\n model.ColorIsSelected = false;\n model.Buttons.HasAddToCart = false;\n model.Buttons.HasAddToProductCompare = false;\n model.Buttons.HasAddToWishlist = false;\n model.AvailabilityNoticationForm.Visible = false;\n } else {\n if (!model.sizeIsSelected) {\n _.each(model.Dimensions[0].Versions, function (ver) {\n ver.Disabled = false;\n });\n }\n }\n }\n\n if (sizeSelector.length > 0) {\n if ($('> li.selected', sizeSelector).length == 0) {\n //if (sizeSelector.val() == 0) {\n _.each(model.Dimensions[1].Versions, function (ver) {\n ver.Selected = false;\n });\n if (!model.Buttons.CartEnabled) {\n var quantitySelector = $('.x-product-details-quantity-selector .js-selector');\n $('option', quantitySelector).each(function () {\n var quantityElement = {};\n quantityElement.Value = $(this).attr('value');\n quantityElement.Selected = $(this).attr('selected') !== undefined;\n model.Quantities.push(quantityElement);\n\n });\n model.Buttons.CartEnabled = true;\n }\n //model.Quantities[0] = { Value: 1, Selected: true };\n model.Buttons.HasAddToCart = false;\n model.Buttons.HasAddToProductCompare = false;\n model.Buttons.HasAddToWishlist = false;\n model.AvailabilityNoticationForm.Visible = false;\n } else {\n if (!model.colorIsSelected) {\n _.each(model.Dimensions[1].Versions, function (ver) {\n ver.Disabled = false;\n });\n }\n }\n }\n /* List Selectors */\n }\n\n var html;\n if ($wrapper.hasClass('x-product-details-popup')) {\n model.IsPopUp = true;\n //model.ProductControllerData.ProductReviews.Stars.IsPopup = true;\n //model.ProductControllerData.ProductReviews.Stars.Url = model.Url;\n html = Vendd.Handlebars.parse(\"productDetailsPopup_A\", model);\n $wrapper.attr('data-parent-id', model.ParentProductId);\n $wrapper.attr('data-selected-id', model.SelectedProductId);\n $wrapper.attr('data-path', model.PathChecksum);\n } else {\n var state = Vendd.Product.Controller.getState();\n state.selectedColorId = model.SelectedProductColorId;\n html = Vendd.Handlebars.parse(\"productDetails_B\", model);\n }\n\n //Get Bakc to List url\n var backToList = $('.back-to-list', $wrapper);\n // Get Usps Html\n var uspsHtml = $('.pd-usps', $wrapper);\n //Get Promo Menu\n var promoMenu = $('.pd-promo-menu', $wrapper);\n\n // Get replacedBy Html\n var replacedBy = $('.x-replaced-products', $wrapper);\n\n var inCartCounter = $('.in-details.in-cart-wrapper', $wrapper);\n\n $wrapper.html(html);\n\n //update addthis toolbox\n //addthis.toolbox('.addthis_toolbox ');\n\n // Add Back To List url to the wrapper\n $('.pd-inner-area-one', $wrapper).prepend(backToList);\n // Add Usps Html to the wrapper\n $('.pd-inner-area-three', $wrapper).append(uspsHtml);\n // Add Promo Menu to the wrapper\n $('.pd-box-six', $wrapper).append(promoMenu);\n\n if (inCartCounter.length > 0) $('.in-details.in-cart-wrapper', $wrapper).replaceWith(inCartCounter);\n\n if (typeof replacedBy !== 'undefined') {\n\n $('.pd-box-four', $wrapper).append(replacedBy);\n\n $('.js-show-replaced-products').fancybox({\n baseTpl:\n '
    ' +\n '
    ' +\n '
    ' +\n '
     / 
    ' +\n '
    {{buttons}}
    ' +\n '
    {{arrows}}
    ' +\n '
    ' +\n '
    ' +\n '
    ' +\n '
    '\n });\n\n $(\".scroll-container\", replacedBy).mCustomScrollbar({\n scrollbarPosition: \"inside\",\n scrollInertia: 400,\n mouseWheel: { preventDefault: true }\n });\n }\n\n if (typeof addthis == 'object') {\n addthis.toolbox('.addthis_sharing_toolbox');\n } else {\n $('.addthis_sharing_toolbox').hide();\n }\n\n $wrapper.find('.availability-container').addClass('visible');\n\n onYouTubeIframeAPIReady();\n\n $('.x-control.x-review-stars[data-type=\"stars\"]').each(function (i, wrapper) {\n\n var $wrapper = $(wrapper);\n\n var isRateMode = $wrapper.data('is-rate-mode');\n var ratingSummaryData = $wrapper.data('rating-summary');\n var ratingSummary = 0.00;\n\n if (typeof ratingSummaryData === 'string') {\n ratingSummary = parseFloat(ratingSummaryData.replace(\",\", \".\"));\n } else if (typeof ratingSummaryData === 'number') {\n ratingSummary = parseFloat(ratingSummaryData);\n }\n\n initStars(isRateMode, ratingSummary, $wrapper);\n });\n\n wrapper.bind();\n\n wrapper.loading(false);\n };\n\n wrapper.updatePrices = function () {\n //update prices\n var $pricesCont = $('.prices-container', $wrapper);\n if (model.Prices.ShowPriceWithoutVat) {\n $('.current-price-container .current-price', $pricesCont).text(model.Prices.UnitPriceWithoutVat);\n $('.deleted-price .value', $pricesCont).text(model.Prices.DeletedPriceWithoutVat);\n $('.points-gain-container .points-gain', $pricesCont).text(model.Prices.TotalPointsGain);\n } else {\n $('.current-price-container .current-price', $pricesCont).text(model.Prices.UnitPrice);\n $('.deleted-price .value', $pricesCont).text(model.Prices.DeletedPrice);\n $('.points-gain-container .points-gain', $pricesCont).text(model.Prices.TotalPointsGain);\n }\n $pricesCont.removeClass('hidden');\n\n //update availability\n var $availabilityCont = $('.availability-container', $wrapper);\n $availabilityCont.empty().append('

    ' + model.AvailabilityName + '');\n };\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.Changed, wrapper, function (envelope) {\n model = envelope.message.data.model;\n\n if (lazyLoadSender) { \n wrapper.updatePrices();\n lazyLoadSender = false;\n } else {\n wrapper.update();\n } \n });\n\n //show in cart message\n Vendd.MessageBus.subscribe(Vendd.Cart.Messages.Changed, 'x-product-details', function (envelope) {\n var data = envelope.message.data.Cart.Items;\n var id = $wrapper.data('parent-id');\n var quantityInCart = 0, idsInCart = [], inCart = false;\n\n $wrapper.find('.js-remove-from-cart').attr('disabled', 'disabled').parent().addClass('disabled');\n\n for (var j = 0; j < data.length; j++) {\n if (id == data[j].ProductId) {\n quantityInCart += data[j].Quantity;\n idsInCart.push(data[j].Id);\n inCart = true;\n }\n }\n\n var decRegex = /^[0-9]*(\\.[0-9]+)$/;\n if (decRegex.test(quantityInCart)) {\n quantityInCart = quantityInCart.toFixed(2);\n }\n\n if (inCart) {\n $wrapper.prop('data-cartproductid', idsInCart);\n $wrapper.find('.js-remove-from-cart').removeAttr('disabled').parent().removeClass('disabled');\n $wrapper.find('.js-cart-quantity').text(\"(\" + quantityInCart + \")\");\n }\n });\n\n Vendd.MessageBus.subscribe(Vendd.Wishlist.Messages.Changed, wrapper, function (envelope) {\n wishlistModel = envelope.message.data;\n var state = Vendd.Product.Controller.getState();\n var skuId = state.selectedId;\n\n if (wishlistModel) {\n var productInWishlist = _.find(wishlistModel.Items, function (x) { return skuId === x.VariantId });\n var $wishlistButton = $('.x-product-details-ajax-buttons .wishlist-button', $wrapper);\n\n if (productInWishlist) {\n $wishlistButton.addClass('already-in-wishlist');\n $('.js-add-to-wishlist', $wishlistButton).addClass('disabled');\n $('.js-remove-from-wishlist', $wishlistButton).removeClass('disabled');\n } else {\n $wishlistButton.removeClass('already-in-wishlist');\n $('.js-add-to-wishlist', $wishlistButton).removeClass('disabled');\n $('.js-remove-from-wishlist', $wishlistButton).addClass('disabled');\n }\n }\n });\n\n Vendd.MessageBus.subscribe(Vendd.ProductCompare.Messages.GetWidgetModelSuccess, wrapper, function (envelope) {\n compareModel = envelope.message.data.model;\n var state = Vendd.Product.Controller.getState();\n var parentId = state.parentId;\n\n if (compareModel) {\n var productInCompare = _.find(compareModel.Items, function (x) { return parentId === x.Id });\n var $compareButton = $('.x-product-details-ajax-buttons .compare-button', $wrapper);\n\n if (productInCompare) {\n $compareButton.addClass('already-in-compare');\n $('.js-add-to-compare', $compareButton).addClass('disabled');\n $('.js-remove-from-compare', $compareButton).removeClass('disabled');\n } else {\n $compareButton.removeClass('already-in-compare');\n $('.js-add-to-compare', $compareButton).removeClass('disabled');\n $('.js-remove-from-compare', $compareButton).addClass('disabled');\n }\n }\n });\n\n lazyLoadPrices();\n\n lazyLoadAvailabilities();\n\n wrapper.bind();\n\n var funcCookiesEnabled = true;\n if (window.ConsentsManager) {\n funcCookiesEnabled = window.ConsentsManager.cookiesStatus.functionalityCookies;\n }\n\n if (LhApp.Context.LastViewedProducts != undefined && funcCookiesEnabled) {\n if (LhApp.Context.LastViewedProducts.LastViewedProductsIsActive) {\n var expirationDays = LhApp.Context.LastViewedProducts.LastViewedProductsExpirationDays;\n var productNumber = LhApp.Context.LastViewedProducts.LastViewedProductsNumber;\n var productId = LhApp.Context.Item.Id;\n\n var products = Cookies.get(\"LastViewedProducts\") || \"\";\n var productsArray = _.reject(products.split(\",\"), function (el) { return el == productId || el == \"\"; });\n productsArray.unshift(productId);\n var cookieValue = (_.first(productsArray, productNumber)).join(\",\");\n var expireDate = new Date();\n expireDate.setTime(expireDate.getTime() + expirationDays * 24 * 60 * 60 * 1000);\n Cookies.set(\"LastViewedProducts\", cookieValue, { secure: LhApp.Context.Request.IsSecure, expires: expireDate, samesite: 'Lax' });\n }\n }\n\n function initAlreadyInCart() {\n if ($('.in-details .js-remove-from-cart', $wrapper).length < 1)\n return;\n\n var removeCartBtn = $('.in-details .js-remove-from-cart', $wrapper);\n\n removeCartBtn.on('click', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n var $this = $(this), cartIds;\n\n cartIds = $wrapper.prop('data-cartproductid');\n\n Vendd.MessageBus.publishAsync($wrapper.get(0), new Vendd.Cart.Messages.MultipleRemove(cartIds));\n\n Vendd.MessageBus.subscribe(Vendd.Cart.Messages.MultipleRemoveSuccess, $wrapper, function (envelope) {\n $this.attr('disabled', 'disabled').parent().addClass('disabled');\n toastr.success(envelope.message.data.data.SuccessMessage, \"\", { timeOut: 1200, showDuration: 1000, hideDuration: 700 });\n Vendd.MessageBus.unsubscribe(Vendd.Cart.Messages.MultipleRemoveSuccess, $wrapper);\n });\n });\n }\n\n function initStickyColumn() {\n if ($('.sticky-column').length < 1) return;\n\n var sidebar = new StickySidebar('.sticky-column', {\n topSpacing: 50,\n bottomSpacing: 0,\n containerSelector: '.sticky-full',\n innerWrapperSelector: '.inner-sticky-column',\n resizeSensor: true,\n minWidth: 960\n\n });\n\n $(window).resize($.debounce(700, function (e) {\n if (!isTouch() || (isTouch() && $(window).width() > 959)) {\n $(\"html, body\").animate({ scrollTop: 0 }, 1);\n } \n }));\n\n setInterval(function () {\n if (!isTouch() || (isTouch() && $(window).width() > 959)) {\n $('.x-product-details-photo-gallery .main-gallery > ul').slick('setPosition');\n sidebar.updateSticky();\n } \n }, 500);\n }\n\n function lazyLoadPrices() {\n\n var b2bEnabled = $('.b2b', $wrapper).text().toLowerCase().trim() === \"true\";\n var lazyLoadPrices = $('.lazy-load-prices', $wrapper).text().toLowerCase().trim() === \"true\" || b2bEnabled;\n\n if (lazyLoadPrices) {\n Vendd.MessageBus.subscribe(Vendd.User.Messages.GetUserViewModelSuccess, wrapper, function (envelope) {\n //if lazy load enabled run this after user profile has been loaded since we need \n var skuId = parseInt($('.x-control.x-product-details[data-selected-id]').attr('data-selected-id'));\n //variable for run only updatePrices\n lazyLoadSender = $wrapper.data('default-sku-loaded').toLowerCase().trim() == \"true\" ? true : false;\n\n deleteSpinnerInstances();\n\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Product.Messages.SetSelected({ id: skuId, visitorInitiated: false }));\n });\n }\n }\n\n function lazyLoadAvailabilities() {\n\n var b2bEnabled = $('.b2b', $wrapper).text().toLowerCase().trim() === \"true\";\n var lazyLoadAvailabilities = $('.lazy-load-availabilities', $wrapper).text().toLowerCase().trim() === \"true\" || b2bEnabled;\n \n if (lazyLoadAvailabilities) {\n\n var deliveryPointModel = JSON.parse(localStorage.getItem(\"CurrentDeliveryPointModel\"));\n if (deliveryPointModel) if (deliveryPointModel.data.HasDeliveryPoint) var deliveryPointId = deliveryPointModel.data.DeliveryPoint.Id;\n var deliveryPostalCode = Cookies.get('DeliveryPostalCode');\n\n if (deliveryPointId == 1 && deliveryPostalCode && deliveryPostalCode !== 'undefined') {\n //set variant id\n var skuId = parseInt($('.x-control.x-product-details[data-selected-id]').attr('data-selected-id'));\n //set variant array\n var variantArray = [];\n var variant = {\n VariantId: skuId,\n Quantity: '1'\n };\n variantArray.push(variant);\n\n //call service for delivery availabilities\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Product.Messages.GetDeliveryAvailability(variantArray, deliveryPostalCode, null, true));\n\n } else if (deliveryPointId == 2) {\n //set variant id\n var skuId = parseInt($('.x-control.x-product-details[data-selected-id]').attr('data-selected-id'));\n //set selected shop id\n var partnerId = deliveryPointModel.data.Store.Id\n //set variant array\n var variantArray = [];\n var variant = {\n VariantId: skuId,\n Quantity: '1'\n };\n variantArray.push(variant);\n\n //call service for pick up availabilities\n Vendd.MessageBus.publishAsync(wrapper, new Vendd.Product.Messages.GetPickUpAvailability(variantArray, partnerId, true));\n\n Vendd.MessageBus.subscribe(Vendd.Product.Messages.GetPickUpAvailabilitySuccess, wrapper, function (envelope) {\n var data = envelope.message.data;\n\n //Set Pick Up Availability ID\n var availability = data.PickupAvailabilities[0].Shops[0].Message;\n var availabilityId;\n if (data.PickupAvailabilities[0].Shops[0].Days == null) {\n availabilityId = 1;\n } else {\n availabilityId = 3;\n }\n\n //Show Delivery Availability\n $('.x-product-details .lazyload-availability-container > span').remove();\n $('.x-product-details .lazyload-availability-container').append('' + availability + '');\n\n Vendd.MessageBus.unsubscribe(Vendd.Product.Messages.GetPickUpAvailabilitySuccess, wrapper);\n });\n }\n }\n }\n});\n\n\n","Vendd.Scripts.load(function () {\n\n var $wrapper = $('.x-pd-tab-panel');\n\n if ($wrapper.length < 1) return;\n\n //Check attributes tab\n updateAttributesTab();\n\n if ($wrapper.hasClass('anchor-tabs')) {\n //Scroll to each section\n scrollToSection();\n //Sticky anchors\n stickyAnchors();\n $(window).scroll(_.throttle(stickyAnchors, 100));\n //Anchors behaviour on scroll\n initTabAnchors();\n\n //Show/Hide tabs in mobile\n if (isTouch()) initTabsAccordion();\n } else {\n scrollHorizontalTabs();\n initTabsAccordion();\n }\n\n function updateAttributesTab() {\n\n var $box = $('.js-attributes'),\n $container = $('.js-attributes-container'),\n visible = false;\n\n if ($box.length > 0 || $container.length > 0) {\n $('[class*=\"ItemAttributes_\"]', $box).each(function () {\n if (!$(this).hasClass('ItemAttributes_IsTest') && !$(this).hasClass('ItemAttributes_Gender') && !$(this).hasClass('ItemAttributes_OverWeight')) {\n visible = true;\n }\n });\n\n if (($('[class*=\"ItemAttributes_\"]', $box).length > 0) && visible) {\n $container.removeAttr('style');\n $('.product-details-region .x-tab-panel .tabs-content > ul > li:eq(1) .mb-title').removeAttr('style');\n $container.each(function () { $(this).removeClass('hidden'); });\n } else {\n $container.each(function () { $(this).remove(); });\n }\n }\n }\n\n function initTabsAccordion() {\n\n var $wrapper = $('.x-pd-tab-panel');\n\n if ($wrapper.hasClass('horizontal-tabs')) {\n $('.tabs-title > ul > li:first-child', $wrapper).addClass('active');\n $('.tabs-content > ul > li:first-child', $wrapper).addClass('active');\n\n $('.tabs-content > ul > li:eq(0)', $wrapper).children('.mb-title').addClass('icon-minus').removeClass('icon-plus');\n }\n\n $('.mb-title', $wrapper).click(function () {\n\n if ($wrapper.hasClass('anchor-tabs') && $(window).width() > 959) return;\n\n var index = $(this).parent().index();\n if ($(this).parent().hasClass('active')) {\n $('.tabs-title > ul > li:eq(' + index + ')', $wrapper).removeClass('active');\n $('.tabs-content > ul > li:eq(' + index + ')', $wrapper).removeClass('active');\n $('.tabs-content > ul > li:eq(' + index + ')', $wrapper).children('.mb-title').addClass('icon-plus').removeClass('icon-minus');\n } else {\n $('.tabs-title > ul > li:eq(' + index + ')', $wrapper).addClass('active').siblings('.active').removeClass('active');\n $('.tabs-content > ul > li:eq(' + index + ')', $wrapper).addClass('active').siblings('.active').removeClass('active').children('.mb-title').addClass('icon-plus').removeClass('icon-minus');\n $('.tabs-content > ul > li:eq(' + index + ')', $wrapper).children('.mb-title').addClass('icon-minus').removeClass('icon-plus');\n }\n });\n\n }\n\n function scrollHorizontalTabs() {\n var $wrapper = $(\".tab-title\");\n var $anchor = $(\".anchor\", $wrapper);\n\n $wrapper.click(function (e) {\n var idx = $(e.target).parent().index();\n\n var anchorOffset = $anchor.eq(idx).offset();\n var extraOffset = (isTouch() && $(window).width() < 768) ? 60 : 90;\n $(\"html, body\").animate({ scrollTop: anchorOffset.top - extraOffset }, 400);\n });\n }\n\n function scrollToSection() {\n\n var $wrapper = $('.x-pd-tab-panel');\n var $container = $('.tabs-title', $wrapper);\n var $anchor = $('.anchor', $container);\n var $stickyBarHeight = $('.sticky-header-region').height();\n var $stickyAnchorsHeight = $container.height();\n\n $anchor.click(function () {\n var $thisAnchor = $(this);\n var $tabIndex = $thisAnchor.closest('li').index();\n var $sectionToScroll = $('.tab-content:eq(' + $tabIndex + ')');\n\n if (!$thisAnchor.hasClass('selected')) {\n $anchor.removeClass('selected');\n $thisAnchor.addClass('selected');\n }\n var scrollTopAmount;\n\n if ((!isTouch() && $(window).width() < 1200) || isTouch()) {\n scrollTopAmount = $sectionToScroll.offset().top - $stickyAnchorsHeight;\n }\n else {\n scrollTopAmount = $sectionToScroll.offset().top - ($stickyBarHeight + $stickyAnchorsHeight);\n }\n\n $('html, body').animate({ scrollTop: scrollTopAmount }, 400);\n });\n\n }\n\n function initTabAnchors() {\n\n if ($(window).width() < 960) return;\n\n var $wrapper = $('.x-pd-tab-panel');\n var $container = $('.tabs-title', $wrapper);\n var $anchor = $('.anchor', $container);\n var $contentContainer = $('.tabs-content', $wrapper);\n var $content = $('.tab-content', $contentContainer);\n var $stickyBarHeight = $('.sticky-header-region').height();\n var $stickyAnchorsHeight = $container.height();\n var offsetArray = [];\n var isLastElement = false;\n var firstScroll = true; \n\n $(window).scroll(_.throttle(function () {\n\n if (firstScroll) {\n //Add offsets to an Array\n _.each($content, function (content, index) {\n offsetArray.push($(content).offset().top - ($stickyBarHeight + $stickyAnchorsHeight + 1));\n }); \n }\n\n //Enable every anchor when scroll is in appropriate height\n _.each(offsetArray, function (offset, index) {\n\n if (index == offsetArray.length - 1) {\n isLastElement = true;\n } else {\n isLastElement = false;\n }\n \n if (isLastElement) {\n if ($(window).scrollTop() >= offsetArray[index]) {\n $anchor.removeClass('selected');\n $('li.tab-title:eq(' + index + ')').find($anchor).addClass('selected');\n }\n } else {\n if ($(window).scrollTop() >= offsetArray[index] && $(window).scrollTop() < offsetArray[index + 1]) {\n $anchor.removeClass('selected');\n $('li.tab-title:eq(' + index + ')').find($anchor).addClass('selected');\n }\n }\n });\n\n //Init anchors when scroll on top\n if ($(window).scrollTop() == 0) {\n $anchor.removeClass('selected');\n }\n\n firstScroll = false;\n }, 100));\n \n } \n\n function stickyAnchors() {\n\n if ($(window).width() < 960) return;\n\n var $wrapper = $('.x-pd-tab-panel');\n var $container = $('.tabs-title', $wrapper);\n var $offsetTop = $container.offset().top;\n var $stickyBarHeight = $('.sticky-header-region').height();\n\n if ($(window).scrollTop() < $offsetTop - $stickyBarHeight) {\n $container.removeClass('sticky');\n } else {\n $container.addClass('sticky');\n }\n\n }\n\n});\n\n\n\n\n\n\n\n","Vendd.Scripts.load(function () {\n\n\tVendd.MessageBus.subscribe(Vendd.Product.Messages.BindControl, 'x-product-details-login', function (envelope) {\n\n\t\tvar $context = envelope.message.data.context,\n\t\t\t$controls = $('.x-product-details-login', $context);\n\n\t\tif ($controls.length < 1)\n\t\t\treturn;\n\n\t\t$.each($controls, function (i, control) {\n\t\t\tvar $control = $(control);\n\t\t\tvar $buttons = $('.js-open-login', $control);\n\n\t\t\tcontrol.openLogin = function () {\n\t\t\t\tvar $loginWidget = $('.x-login-widget').first();\n\t\t\t\tvar $loginButton = $('.js-widget-trigger', $loginWidget).first();\n\t\t\t\t$loginButton.trigger('click');\n\t\t\t};\n\n\t\t\tcontrol.scrollToTop = function (complete) {\n\t\t\t\tvar isComplete = false;\n\t\t\t\t$('html,body').animate({ scrollTop: 0 }, 400, 'swing', function () {\n\t\t\t\t\tif (!isComplete) {\n\t\t\t\t\t\tisComplete = true;\n\t\t\t\t\t\tif (typeof complete === 'function') {\n\t\t\t\t\t\t\tcomplete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t};\n\n\t\t\t$buttons.on('click', function (e) {\n\t\t\t\te.preventDefault();\n\n\t\t\t\tcontrol.scrollToTop(function () {\n\t\t\t\t\tcontrol.openLogin();\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t});\n});\n","Vendd.Scripts.load(function () {\n \n var $boxes = $('.x-category-detailed-box');\n \n if ($boxes.length <= 0)\n return;\n\n if (isTouch()) {\n initListToggle();\n }\n\n var iconOpen = $boxes.first().data('open-icon');\n var iconClose = $boxes.first().data('close-icon');\n\n if($boxes.closest('.x-category-banners').length > 0){\n $boxes.each(function(){\n if ($('.subcategory-list > li', $(this)).length > 8){\n $('.subcategory-list > li.view-all', $(this)).addClass('show');\n }\n });\n }\n\n function initListToggle() {\n $(\".js-toggle\", $boxes).click(function () {\n var hiddenCont = $(this).siblings('.js-content-accord');\n $(this).toggleClass(iconOpen + \" \" + iconClose);\n if (hiddenCont.hasClass('opened')) {\n hiddenCont.removeClass('opened');\n } else {\n $boxes.find('.opened').removeClass('opened').siblings('.js-toggle').toggleClass(iconOpen + \" \" + iconClose);\n hiddenCont.addClass('opened');\n }\n });\n \n var accordion = false;\n \n if ($(window).width() <= 767) {\n accordion = true;\n }\n \n $(window).resize(function () {\n if ($(window).width() > 767) {\n if (accordion) {\n $('.js-content-accord', $boxes).removeClass('opened');\n accordion = false;\n }\n }\n else {\n if (!accordion) {\n $('.js-content-accord', $boxes).siblings('.js-toggle').toggleClass(iconOpen + \" \" + iconClose);\n accordion = true;\n }\n }\n });\n }\n\n});","Vendd.Scripts.load(function () {\n \n var $wrapper = $('.x-main-category-list');\n var resize = false;\n var ww = $(window).width();\n var masonryState = false;\n \n if ($wrapper.length <= 0)\n return;\n \n var $masonryTarget = $('.js-init-masonry', $wrapper);\n\n checkToInit($masonryTarget)\n\n $( window ).on('resize', function() {\n ww = $(window).width();\n resize = true;\n })\n\n setInterval(function(){\n if(resize){\n checkToInit($masonryTarget)\n resize = false;\n }\n }, 500)\n\n \n function checkToInit($container){\n if(ww > 768 && !masonryState) {\n initMasonryContainer($container)\n } else if(ww <=768 && masonryState) {\n $container.masonry('destroy');\n $container.removeData('masonry');\n masonryState = false;\n }\n }\n\n\n function initMasonryContainer($masonryTarget) {\n $masonryTarget.masonry({\n itemSelector: '.category-item',\n columnWidth: '.masonry-grid-sizer',\n gutter: '.masonry-gutter-size'\n });\n $('>.category-item', $masonryTarget).addClass('shown');\n masonryState = true;\n }\n});","Vendd.Scripts.load(function () {\n\n var $wrapper = $('.x-category-list-menu');\n\n if ($wrapper.length < 1)\n return;\n\n var wrapper = $wrapper.get(0);\n\n var iconOpen = $wrapper.data('open-icon');\n var iconClose = $wrapper.data('close-icon');\n\n var stickyCatMenu = function () {\n var catMenu = $('.x-category-list-menu');\n var catMenuHeight = catMenu.height();\n var spacer = $('.cat-menu-spacer');\n \n var lastScrollTop = 0;\n var delta = 5;\n var stickyNavTop = $('.x-category-list-menu').offset().top;\n $(window).scroll(_.throttle(initSticky, 100));\n\n function initSticky() {\n var st = $(this).scrollTop();\n // Make sure they scroll more than delta\n if (Math.abs(lastScrollTop - st) <= delta)\n return;\n\n if($(window).width() >= 1200){\n if ($(window).scrollTop() <= stickyNavTop) {\n catMenu.removeClass('sticky-menu');\n spacer.height(0);\n\n // $('.header-template-one').show();\n } else {\n catMenu.addClass('sticky-menu');\n spacer.height(catMenuHeight);\n // $('.header-template-one').hide();\n }\n } else{\n catMenu.removeClass('sticky-menu');\n spacer.height(0);\n if(!isTouch()){\n // $('.header-template-one').show();\n }\n }\n\n lastScrollTop = st;\n }\n }\n\n var initStickyBtn = function () {\n $(window).scroll(function(){\n if($(window).width() < 1200){\n if($(this).scrollTop() > $wrapper.offset().top + $wrapper.height()) {\n $('.sticky-menu-btn').addClass('scrolled');\n // $('.header-template-one').hide();\n } else {\n $('.sticky-menu-btn').removeClass('scrolled');\n // $('.header-template-one').show();\n }\n } else {\n $('.sticky-menu-btn').removeClass('scrolled');\n }\n });\n\n $('.sticky-menu-btn').on('click', function(){\n $('html, body').animate({scrollTop: $wrapper.offset().top - $('.header-spacer').height()}, 1);\n wrapper.open(); \n })\n }\n\n stickyCatMenu();\n\n if(isTouch()){\n initStickyBtn();\n }\n \n $wrapper.on('click', '.mobile-title', function (e) {\n e.preventDefault();\n\n var $this = $(this);\n\n if ($this.hasClass('active')) {\n wrapper.close();\n } else {\n wrapper.open();\n }\n });\n\n wrapper.open = function () {\n $('.mobile-title', $wrapper).addClass('active');\n $('.mobile-title > .title', $wrapper).toggleClass(iconOpen + \" \" + iconClose);\n $('.nav-1', $wrapper).addClass('active');\n };\n\n wrapper.close = function () {\n $('.mobile-title', $wrapper).removeClass('active');\n $('.mobile-title > .title', $wrapper).toggleClass(iconOpen + \" \" + iconClose);\n $('.nav-1', $wrapper).removeClass('active');\n };\n\n $(\"[class^='category-']\", $wrapper).on('click', function(e){\n var id ='#' + $(this).data('anchor');\n var anchor = $(id);\n \n if(!$(this).hasClass('selected')) {\n $(\"[class^='category-']\", $wrapper).removeClass(\"selected\");\n $(this).addClass('selected');\n\n } \n\n $('html, body').animate({\n scrollTop: anchor.offset().top - 70\n }, 1000);\n }); \n});\n\n","Vendd.Scripts.load(function () {\n var $wrapper = $('.x-control.x-page-mode');\n\n if ($wrapper.length < 1)\n return;\n\n var plMode = Cookies.get('plMode');\n\n if (plMode == \"grid\") {\n $('.page-mode-btn', $wrapper).removeClass('selected');\n $('.page-mode-btn.grid', $wrapper).addClass('selected');\n $('.x-main-product-list .x-product-list').removeClass('horizontal-products').addClass('vertical-products');\n } else if (plMode == \"list\") {\n $('.page-mode-btn', $wrapper).removeClass('selected');\n $('.page-mode-btn.list', $wrapper).addClass('selected');\n $('.x-main-product-list .x-product-list').removeClass('vertical-products').addClass('horizontal-products');\n }\n\n $('.x-control.x-page-mode').each(function (i, wrapper) {\n var $wrapper = $(wrapper);\n var $pageModeBtn = $('.page-mode-btn', $wrapper);\n\n $wrapper.on('click', '.page-mode-btn', function (e) {\n $pageModeBtn.removeClass('selected');\n $(this).addClass('selected');\n if ($(this).hasClass('grid')) {\n $('.x-main-product-list .x-product-list').removeClass('horizontal-products').addClass('vertical-products');\n Cookies.set(\"plMode\", \"grid\", { expires: 10, samesite: 'Lax' });\n } else if ($(this).hasClass('list')) {\n $('.x-main-product-list .x-product-list').removeClass('vertical-products').addClass('horizontal-products');\n Cookies.set(\"plMode\", \"list\", { expires: 10, samesite: 'Lax' });\n }\n });\n\n });\n\n});\n\n"]}