{"version":3,"sources":["webpack:///webpack/bootstrap 5985d799d8859f628af0","webpack:///./node_modules/babel-runtime/helpers/classCallCheck.js","webpack:///./node_modules/babel-runtime/helpers/createClass.js","webpack:///./_frontend/public/utils.js","webpack:///./node_modules/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./node_modules/babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./node_modules/babel-runtime/helpers/inherits.js","webpack:///./node_modules/babel-runtime/helpers/get.js","webpack:///./node_modules/core-js/library/modules/_core.js","webpack:///./node_modules/babel-runtime/core-js/json/stringify.js","webpack:///./_frontend/public/modules/configurator/elements/element.js","webpack:///./node_modules/core-js/library/fn/json/stringify.js","webpack:///./_frontend/common/utils.js","webpack:///./_frontend/public/modules/configurator/elements/fields/field.js","webpack:///./node_modules/core-js/library/modules/_global.js","webpack:///./node_modules/core-js/library/modules/_descriptors.js","webpack:///./node_modules/core-js/library/modules/_to-iobject.js","webpack:///./_frontend/public/modules/configurator/elements/button/button.js","webpack:///./node_modules/core-js/library/modules/_has.js","webpack:///./node_modules/core-js/library/modules/_export.js","webpack:///./node_modules/core-js/library/modules/_object-dp.js","webpack:///./node_modules/core-js/library/modules/_hide.js","webpack:///./node_modules/core-js/library/modules/_is-object.js","webpack:///./node_modules/core-js/library/modules/_wks.js","webpack:///./node_modules/core-js/library/modules/_an-object.js","webpack:///./node_modules/core-js/library/modules/_fails.js","webpack:///./node_modules/babel-runtime/helpers/typeof.js","webpack:///./node_modules/core-js/library/modules/_object-keys.js","webpack:///./node_modules/core-js/library/modules/_to-object.js","webpack:///./node_modules/core-js/library/modules/_library.js","webpack:///./node_modules/core-js/library/modules/_uid.js","webpack:///./node_modules/core-js/library/modules/_property-desc.js","webpack:///./node_modules/core-js/library/modules/_object-pie.js","webpack:///./node_modules/core-js/library/modules/_defined.js","webpack:///./node_modules/core-js/library/modules/_shared-key.js","webpack:///./node_modules/core-js/library/modules/_shared.js","webpack:///./node_modules/core-js/library/modules/_object-sap.js","webpack:///./node_modules/core-js/library/modules/_to-primitive.js","webpack:///./node_modules/core-js/library/modules/_to-integer.js","webpack:///./node_modules/core-js/library/modules/_iterators.js","webpack:///./node_modules/core-js/library/modules/_object-create.js","webpack:///./node_modules/core-js/library/modules/_enum-bug-keys.js","webpack:///./node_modules/core-js/library/modules/_set-to-string-tag.js","webpack:///./node_modules/core-js/library/modules/_wks-ext.js","webpack:///./node_modules/core-js/library/modules/_wks-define.js","webpack:///./node_modules/core-js/library/modules/_object-gopd.js","webpack:///./_frontend/public/modules/configurator/configurator.js","webpack:///./node_modules/babel-runtime/core-js/object/keys.js","webpack:///./node_modules/babel-runtime/core-js/object/values.js","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options.js","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option.js","webpack:///./_frontend/public/modules/configurator/elements/sticky-panel/sticky-panel.js","webpack:///./_frontend/public/modules/configurator/elements/cart/cart.js","webpack:///./node_modules/core-js/library/modules/_object-gpo.js","webpack:///./node_modules/core-js/library/modules/_ctx.js","webpack:///./node_modules/core-js/library/modules/_ie8-dom-define.js","webpack:///./node_modules/core-js/library/modules/_dom-create.js","webpack:///./node_modules/core-js/library/modules/_iter-define.js","webpack:///./node_modules/core-js/library/modules/_redefine.js","webpack:///./node_modules/core-js/library/modules/_object-keys-internal.js","webpack:///./node_modules/core-js/library/modules/_cof.js","webpack:///./node_modules/core-js/library/modules/_object-gops.js","webpack:///./node_modules/core-js/library/modules/_object-gopn.js","webpack:///./_frontend/public/modules/configurator/elements/common.js","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-switch.js","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option-switch.js","webpack:///./_frontend/public/modules/configurator/elements/info-box/info-box.js","webpack:///./_frontend/public/modules/configurator/elements/cart/cart-item-complex.js","webpack:///./_frontend/public/modules/configurator/elements/cart/cart-item.scss?c1c1","webpack:///./_frontend/public/modules/configurator/price-display/price-display.js","webpack:///./_frontend/public/modules/configurator/elements/cart/cart-item.js","webpack:///./node_modules/core-js/library/fn/object/get-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.get-prototype-of.js","webpack:///./node_modules/core-js/library/modules/_a-function.js","webpack:///./node_modules/babel-runtime/core-js/object/define-property.js","webpack:///./node_modules/core-js/library/fn/object/define-property.js","webpack:///./node_modules/core-js/library/modules/es6.object.define-property.js","webpack:///./node_modules/babel-runtime/core-js/symbol/iterator.js","webpack:///./node_modules/core-js/library/fn/symbol/iterator.js","webpack:///./node_modules/core-js/library/modules/es6.string.iterator.js","webpack:///./node_modules/core-js/library/modules/_string-at.js","webpack:///./node_modules/core-js/library/modules/_iter-create.js","webpack:///./node_modules/core-js/library/modules/_object-dps.js","webpack:///./node_modules/core-js/library/modules/_iobject.js","webpack:///./node_modules/core-js/library/modules/_array-includes.js","webpack:///./node_modules/core-js/library/modules/_to-length.js","webpack:///./node_modules/core-js/library/modules/_to-absolute-index.js","webpack:///./node_modules/core-js/library/modules/_html.js","webpack:///./node_modules/core-js/library/modules/web.dom.iterable.js","webpack:///./node_modules/core-js/library/modules/es6.array.iterator.js","webpack:///./node_modules/core-js/library/modules/_add-to-unscopables.js","webpack:///./node_modules/core-js/library/modules/_iter-step.js","webpack:///./node_modules/babel-runtime/core-js/symbol.js","webpack:///./node_modules/core-js/library/fn/symbol/index.js","webpack:///./node_modules/core-js/library/modules/es6.symbol.js","webpack:///./node_modules/core-js/library/modules/_meta.js","webpack:///./node_modules/core-js/library/modules/_enum-keys.js","webpack:///./node_modules/core-js/library/modules/_is-array.js","webpack:///./node_modules/core-js/library/modules/_object-gopn-ext.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.async-iterator.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.observable.js","webpack:///./node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js","webpack:///./node_modules/core-js/library/fn/object/get-own-property-descriptor.js","webpack:///./node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js","webpack:///./node_modules/babel-runtime/core-js/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/fn/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/_set-proto.js","webpack:///./node_modules/babel-runtime/core-js/object/create.js","webpack:///./node_modules/core-js/library/fn/object/create.js","webpack:///./node_modules/core-js/library/modules/es6.object.create.js","webpack:///./node_modules/core-js/library/fn/object/keys.js","webpack:///./node_modules/core-js/library/modules/es6.object.keys.js","webpack:///./node_modules/core-js/library/fn/object/values.js","webpack:///./node_modules/core-js/library/modules/es7.object.values.js","webpack:///./node_modules/core-js/library/modules/_object-to-array.js","webpack:///./_frontend/public/modules/configurator/configurator.scss?a575","webpack:///./_frontend/public/modules/configurator/tooltip/tooltip.js","webpack:///./_frontend/public/modules/configurator/tooltip/tooltip.scss?02ed","webpack:///./_frontend/public/modules/popup/popup.js","webpack:///./_frontend/public/modules/popup/popup.scss?4f64","webpack:///./_frontend/public/modules/configurator/restrictions.js","webpack:///./_frontend/public/modules/configurator/steps-manager.js","webpack:///./_frontend/public/modules/configurator/summary.js","webpack:///./_frontend/public/modules/configurator/watchdog.js","webpack:///./_frontend/public/modules/configurator/elements/fields/slider-range/slider-range.js","webpack:///./_frontend/public/modules/configurator/elements/fields/slider-range/slider-range.scss?6236","webpack:///./_frontend/public/modules/configurator/elements/fields/field.scss?03ca","webpack:///./_frontend/public/modules/configurator/tooltip/tooltip-trigger.js","webpack:///./_frontend/public/modules/configurator/tooltip/tooltip-trigger.scss?16fe","webpack:///./_frontend/public/modules/configurator/elements/fields/checkbox/checkbox.js","webpack:///./_frontend/public/modules/configurator/elements/fields/checkbox/checkbox.scss?fe53","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-custom.js","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options.scss?27b0","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option-custom.js","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-switch.scss?7c88","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-switch-compact.js","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-switch-compact.scss?f713","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option-switch-compact.js","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-classic.js","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-classic.scss?34cf","webpack:///./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option-classic.js","webpack:///./_frontend/public/modules/configurator/elements/fields/dropdown/dropdown.js","webpack:///./_frontend/public/modules/configurator/elements/fields/dropdown/dropdown.scss","webpack:///./_frontend/public/modules/configurator/elements/fields/text-input/text-input.js","webpack:///./_frontend/public/modules/configurator/elements/fields/text-input/text-input.scss?b8df","webpack:///./_frontend/public/modules/configurator/elements/fields/calendly/calendly.js","webpack:///./_frontend/public/modules/configurator/elements/fields/calendly/calendly.scss","webpack:///./_frontend/public/modules/configurator/elements/fields/textarea/textarea.js","webpack:///./_frontend/public/modules/configurator/elements/fields/textarea/textarea.scss","webpack:///./_frontend/public/modules/configurator/elements/fields/uploader/uploader.js","webpack:///./_frontend/public/modules/configurator/elements/fields/uploader/uploader.scss?b954","webpack:///./_frontend/public/modules/configurator/elements/button/button.scss?4362","webpack:///./_frontend/public/modules/icons/icons.scss?442d","webpack:///./_frontend/public/modules/configurator/elements/element.scss?c21b","webpack:///./_frontend/public/modules/configurator/elements/fields/parent/parent.js","webpack:///./_frontend/public/modules/configurator/elements/accordion/accordion.js","webpack:///./_frontend/public/modules/configurator/elements/accordion/accordion.scss?0e38","webpack:///./_frontend/public/modules/configurator/elements/accordion/accordionSection.js","webpack:///./_frontend/public/modules/configurator/elements/row/row.js","webpack:///./_frontend/public/modules/grid/grid.scss?1e46","webpack:///./_frontend/public/modules/configurator/elements/column/column.js","webpack:///./_frontend/public/modules/configurator/elements/column/column.scss?fbbb","webpack:///./_frontend/public/modules/configurator/elements/html/html.js","webpack:///./_frontend/public/modules/configurator/elements/html/html.scss","webpack:///./_frontend/public/modules/configurator/elements/error-box/error-box.js","webpack:///./_frontend/public/modules/configurator/elements/info-box/info-box.scss?6396","webpack:///./_frontend/public/modules/configurator/elements/notice-box/notice-box.js","webpack:///./_frontend/public/modules/configurator/elements/link-button/link-button.js","webpack:///./_frontend/public/modules/configurator/elements/popup-button/popup-button.js","webpack:///./_frontend/public/modules/configurator/elements/previous-step-button/previous-step-button.js","webpack:///./_frontend/public/modules/configurator/elements/instantiate-button/instantiate-button.js","webpack:///./_frontend/public/modules/configurator/elements/submit-button/submit-button.js","webpack:///./_frontend/public/modules/configurator/elements/next-step-button/next-step-button.js","webpack:///./_frontend/public/modules/configurator/elements/steps-progress/steps-progress.js","webpack:///./_frontend/public/modules/configurator/elements/steps-progress/steps-progress.scss?e412","webpack:///./_frontend/public/modules/configurator/elements/step-item/step-item.js","webpack:///./_frontend/public/modules/configurator/elements/step-item/steps-item.scss?e87d","webpack:///./_frontend/public/modules/configurator/elements/instantiator/instantiator.js","webpack:///./_frontend/public/modules/configurator/elements/product-frame/product-frame.js","webpack:///./_frontend/public/modules/configurator/elements/right-sticky-panel/right-sticky-panel.js","webpack:///./_frontend/public/modules/configurator/elements/right-sticky-panel/right-sticky-panel.scss?2407","webpack:///./_frontend/public/modules/configurator/elements/sticky-panel/sticky-panel.scss?58e2","webpack:///./_frontend/public/modules/configurator/elements/left-sticky-panel/left-sticky-panel.js","webpack:///./_frontend/public/modules/configurator/elements/left-sticky-panel/left-sticky-panel.scss?7c7e","webpack:///./_frontend/public/modules/configurator/elements/bottom-sticky-panel/bottom-sticky-panel.js","webpack:///./_frontend/public/modules/configurator/elements/bottom-sticky-panel/bottom-sticky-panel.scss?9000","webpack:///./_frontend/public/modules/configurator/elements/cart/summary/summary-cart.js","webpack:///./_frontend/public/modules/configurator/elements/cart/summary/summary-cart.scss?2b63","webpack:///./_frontend/public/modules/configurator/elements/cart/cart.scss?b9d2","webpack:///./_frontend/public/modules/configurator/elements/cart/summary/summary-cart-item.js","webpack:///./_frontend/public/modules/configurator/elements/cart/summary/summary-cart-item.scss?7ff3","webpack:///./_frontend/public/modules/quantity-input/quantity-input.js","webpack:///./_frontend/public/modules/quantity-input/quantity-input.scss?f5ba","webpack:///./_frontend/public/modules/configurator/price-display/price-display.scss?1369","webpack:///./_frontend/public/modules/configurator/elements/cart/holder/holder-cart.js","webpack:///./_frontend/public/modules/configurator/elements/cart/holder/holder-cart.scss?0ea3","webpack:///./_frontend/public/modules/configurator/elements/cart/holder/holder-cart-item.js","webpack:///./_frontend/public/modules/configurator/elements/cart/holder/holder-cart-item.scss?7e54","webpack:///./_frontend/public/modules/configurator/elements/product-summary/product-summary.js","webpack:///./_frontend/public/modules/configurator/elements/product-summary/product-summary.scss?1dfe","webpack:///./_frontend/public/modules/configurator/elements/screen/screen.js","webpack:///./_frontend/public/modules/configurator/elements/screen/screen.scss?b15b","webpack:///./_frontend/public/modules/configurator/elements/extractor/extractor.js","webpack:///./_frontend/public/modules/configurator/elements/extractor/extractor.scss?c843","webpack:///./_frontend/public/modules/configurator/elements/mailchimp/mailchimp.js"],"names":["utils","require","isLogged","$","document","body","hasClass","isValidStr","str","length","ucfirst","toUpperCase","slice","lcfirst","toLowerCase","rest","type","endpoint","data","success","error","ajax","url","json","currentLanguage","window","mb2ls","phpVars","current_language","dataType","beforeSend","request","nonce","setRequestHeader","e","statusText","message","responseJSON","nl2br","alert","stripTags","formatMoney","amount","currency","price","nf","Intl","NumberFormat","style","format","replace","plugin_root_url","split","delimiter","items","key","trim","setArray","value","array","push","isDesktop","usingUserAgent","mobile_client","width","waitForStableHeight","stabilized","$body","prevHeight","height","stableCounter","interval","setInterval","newHeight","clearInterval","clearTimeout","timeout","setTimeout","getFixedElementsHeight","maybeInitCache","cache","getFixedElements","$headerStickyMenu","undefined","$wpAdminBar","css","scrollY","offset","scroll","args","$target","scrollCache","scrolledByUser","documentElement","$window","onScrolledByUser","onScrolledByUserEvents","on","top","scrollTop","outerHeight","animate","off","getBlankImageSrc","getTransparentPixel","isHtml","a","createElement","innerHTML","c","childNodes","i","nodeType","getUrlQuery","params","coerce","location","search","substr","obj","coerce_types","JSON","parse","forEach","v","param","decodeURIComponent","val","cur","keys","keys_last","test","shift","concat","isNaN","Object","prototype","toString","call","hasOwnProperty","deepRemove","$elements","each","$element","add","remove","module","exports","Common","Element","recipe","$destination","configurator","arguments","that","attributes","restrItems","parent","relatedGalleryItemScaleTimeout","hasRelatedGalleryItem","$root","maybeInitRelatedGalleryItem","$document","gallery","console","warn","triggeredRelatedGalleryItem","relatedGalleryItem","setActiveItem","relatedGalleryScale","setScale","eId","proxy","onScroll","class","addClass","attr","getTemplateId","isDebugMode","newVisible","visible","forceVisible","$parent","parentElement","constructor","name","onUpdateChildVisibility","allowed","toggleClass","itemName","sprintf","deparam","serializeObject","queryString","eq","filter","serialize","find","ajaxRequest","action","cb","ajaxurl","done","fail","jqXHR","textStatus","isImageFine","img","complete","naturalWidth","generateId","namespace","prefix","uniqueIdIndex","generateEventId","createRegExpObj","string","match","RegExp","is_xhtml","breakTag","parseInt","cookie","TooltipTrigger","Field","field","fieldContent","templateItemRecipe","restrictions","getStyle","postfix","linkedWcField","WC_Linked_WC_Field_Name__c","wcCustomer","wc_customer","getName","getDirection","getSize","$title","$titleText","$content","insideInstantiator","html","uiName","appendTo","WC_UI_Name__c","tooltipTrigger","text","isEnabledValidator","enableValidator","loadDefaultValue","WC_Template_ID__c","jsonKey","isLabelLinkedToInput","onLoginFormLoggedIn","summary","createItem","source","response","wc_custmer","getWcCustomerValue","setValue","$input","hiddenForPublicSummary","hiddenSummaryValue","validatorErrors","validatorAjaxErrors","$validatorMessage","$globalValidatorErrors","$globalValidatorErrorsTitle","$globalValidatorErrorsContainer","enabledValidator","WC_Field_Size__c","getUiKey","isValid","setErrorBoxesMessage","fc","options","WC_Validation_Min_Length__c","WC_Validation_Max_Length__c","WC_Validation_Min_Number__c","WC_Validation_Max_Number__c","WC_Validation_RegExp__c","some","option","isAdmin","WC_Validation_Non_Required_For_Admin__c","WC_Validation_Required__c","getValue","newErrors","getNewVisible","isRequired","WC_Validation_RegExp_Failed_Message__c","join","changed","updateGlobalValidatorErrors","trigger","indexOf","billing","defaultValue","WC_Default_Value__c","defaults","Json__c__a","getKey","raw","cartItemHidden","$description","rawValue","uiValue","getUiValue","templateId","priceAdditionObjects","getPriceAdditionObjects","mailchimpName","forceUsingForPriceApi","Button","getType","getIconPosition","setTitle","buttonText","icon","getIcon","$icon","click","onClick","afterRootInit","title","iconPosition","TooltipManager","Popup","Restrictions","StepsManager","Summary","Watchdog","fields","WC_Slider_Range","WC_Checkbox","WC_Radio_Options","WC_Radio_Switch","WC_Radio_Switch_Compact","WC_Radio_Checkbox","WC_Dropdown","WC_Text_Input","WC_Calendly","WC_Textarea","WC_Uploader","WC_Parent","elements","Accordion","AccordionSection","Row","Column","Html","ErrorBox","NoticeBox","LinkButton","PopupButton","PreviousStepButton","InstantiateButton","SubmitButton","NextStepButton","StepsProgress","StepItem","Instantiator","ProductFrame","RightStickyPanel","LeftStickyPanel","BottomStickyPanel","SummaryCart","HolderCart","ProductSummary","Screen","Extractor","Mailchimp","Configurator","insertedToDom","calledMaybeUpdateCriticalHtml","debug","id","hasError","processedRestrictionsTimeout","updateCriticalHtmlXhr","onSubmit","error_message","hiddenAttributes","prepareHiddenAttributes","product","Hidden_Attributes_JSON__c","templatesData","isProduct","WC_Product_Id__c","post","noticesBoxes","errorsBoxes","unsortedElements","$loading","updatingVisibility","templatesDataReserved","popup","tooltipManager","$container","manualOpen","renderElements","template","Accordion_Items_JSON__c__a","stepsManager","stepsItems","stepsProgress","submitButtons","nextStepButtons","previousStepButtons","submitButton","addElements","watchdog","one","maybeUpdateCriticalHtml","postId","device","criticalHtml","getCriticalHtml","getCriticalHtmlArguments","$newRoot","$clonnedContent","clone","removeClass","$subItem","removeAttr","get","outerHTML","removeCriticalHtml","humanSize","humanToMediaSize","human_to_media_size_relations","blankImage","media","mediaItems","srcset","sort","b","mediaItem","src","includes","cartsManager","detouchFieldsByFields","abort","destroy","element","parentField","onChange","onChangeField","$errors","valid","Array","isArray","getTemplateContentField","publicElementsSingle","publicElementsMultiple","stepItem","noticeBoxes","errorBox","previousStepButton","nextStepButton","instantiateButton","summaryCart","holderCart","productSummary","keyName","content","skipProductFrameProductSelector","updateTemplatesData","updateHtmlElementsTemplates","updateVisibility","productFrameProductSelector","getData","productFrame","setProduct","processing","quantity","$quantityInput","fields_content","WC_Product__c","Id","WC_Product_Field__c","Name","fieldObj","templateFields","getTemplateFields","extend","onChangedField","templateData","fieldKey","silent","watchdogCounter","prevFieldsDataJson","getFieldsData","hasChanges","wasUserInputRecently","toggleNewVisibility","restrictionKey","restriction","sourceValue","Source_Accourdion_Element_Name__c","Active_for_role__c","Active_for_products__c","sourceFieldData","getTemplateData","Source_Element_Value_s__c","sinkTemplatesIds","Sink_Accordion_Element_Name_s__c","sinkTemplateIdKey","sinkTemplateId","getFieldByTemplateId","enqueueRestriction","getElementByTemplateId","processRestrictions","cleanRestrictions","renderVisibility","newFieldsDataJson","onUpdateVisibilityHasChanges","errorBoxes","getErrorsBoxes","setText","setNoticeBoxesMessage","getNoticeBoxes","noticeBox","inArray","cleanUnreservedTemplatesData","onUpdatedTemplatesData","inputValue","keyParts","index","getTemplateValue","htmls","htmlElement","newHtml","keyExpr","formatTemplateOutput","set","fieldsData","additionalObjectsArray","fieldData","fieldsDataNew","complexData","summaryItems","getUiItems","instantiator","collectInstanceData","getInstancesData","mailchimp","getAudienceName","tags","getTags","audienceName","getComplexData","productName","sfProductId","Product__c","pricebookId","Price_Book__c","pricebookEntryId","PricebookEntryId__c","hiddenAttributesJson","depandencies","productDependency","product2Id","uniZwoProductId","skipInsideInstantiator","isForcedUsingForPriceApi","toggleActionsOpportunity","RadioOptions","optionsValues","WC_Variation_Values__c","optionsUiValues","WC_Variation_UI_Values__c","multiple","WC_Multiple__c","maxSelection","WC_Radio_Options_Max_Selection__c","restrictedOptionsValues","getSinkPossibleValuesBySinkTemplate","$options","createNewOption","WC_Object_Name__c","resetValue","noChoiceDefault","getFirstVisibleOption","setActive","getActiveOptions","getDepName","values","force","getOption","simulatingNonAdmin","enabledOptionsValues","allowedOptionsValues","disabledOptionsValues","possibleValues","Sink_Possible_Value_s__c","Sink_Action__c","restrictedOptionValue","RadioOption","optionsTooltipsEnabled","depOption","templateFieldKey","Price_Addition_Object_Names__c","toggle","getActiveClass","active","Image_URL_Wordpress__c","Default_Images__c","StickyPanel","getPosition","Cart","$footer","defaultHidden","defaultHiddenExceptAdmin","group","log","groupEnd","RatioOptions","RadioOptionSwitch","RatioOptionsSwitch","props","getClass","afterConstructorsInit","getTitle","InfoBox","toggleForceVisibility","QuantityInput","PriceDisplay","CartItem","CartItemComplex","quantityInput","cartsManagerItem","onChangeQuantity","$heading","$img","$details","$actions","$removeBtn","$couponInput","priceable","priceDisplay","onRemove","onChangeCoupon","$editBtn","toggleEditBtnVisibility","legalPriceInfo","$oldPrice","$actualPrice","$legalPriceInfo","closest","regular","sale","priceFilter","filteredPrices","hasDiscount","cart","earlierToggleActive","TooltipSlider","$nextBtn","$prevBtn","$imagesContainer","$subtitle","$imageReference","$firstImage","buzy","currentSlideIndex","setSlide","initial","slides","currentSlide","nextSlide","prevSlide","slide","$image","Tooltip","margin","topBarHeight","bottomBarHeight","destroyOnMouseOut","$tooltip","$closeBtn","updatePositionInterval","slider","enabled","images","max","titles","tooltipSlider","heading","getOffset","above","left","outerWidth","updatePosition","isAbove","windowTop","removeData","latestId","hasOpened","mouseenterTimeout","destroyAll","tooltip","onDestroyed","hasMouse","matchMedia","matches","open","$eventSource","target","targetDataContent","mouseenter","currentTarget","onOpen","inited","$dialog","$header","$headerTitle","$closeBtnTop","$closeBtnFooter","init","elementorFrontend","elementsHandler","runReadyTrigger","result","getRestrictionsBySinkTemplate","currentIndex","addItem","setIndex","getStepItem","forIndex","shortTitle","getShortTitle","SummaryItem","hiddenAttribute","uiItems","wasAdmin","item","uiItem","getHiddenSummaryValue","isHiddenForPublicSummary","userInputRecently","timeoutId","actionTriggered","SliderRange","$additionalInput","defaultMinMax","getFormattedAdditionalInputValue","updateRangeSliderTitle","step","WC_Step_Size__c","parseFloat","ionRangeSlider","skin","min","from","grid","from_pretty","onFinish","change","update","minMax","newMinMax","Checkbox","prop","RadioOptionCustom","RatioOptionsCustom","hasImage","$selectedOptionIndicator","insertAfter","hasImageCache","canChoose","toggleDisabled","isActive","$tooltipTrigger","radio","tooltipText","tooltipImage","isTooltipEnabled","Tooltip_URL_Wordpress__c","imageAttributes","getMediaAttributes","getImageId","max_sizes","mediaUrl","getMedia","disabled","Variable_Value__c","UI_Variable_Value__c","setDescription","Description__c","RadioOptionSwitchCompact","RatioOptionsSwitchCompact","nextOption","getNextOption","RadioOptionClassic","RatioOptionsClassic","$toggle","$label","Dropdown","focus","TextInput","Calendly","changeTimeout","currentUrl","terminArt","TerminArt","terminOrt","TerminOrt","initWidget","addEventListener","onReceivedCalendlyResponce","isCalendlyEvent","event","unsubmittedEvents","removeEventListener","errors","empty","initInlineWidget","prefill","utm","Textarea","Uploader","uploaderUrls","uploaderFilesNames","$list","$listItem","$listItemRemoveBtn","$listItemName","$button","fileupload","formData","start","toggleActionsOppartunity","files","file","updateUploaderList","progressall","utl","splice","decodeURI","updateUploaderFilesNames","Parent","isCartItemHidden","$sections","openFirstSectionOnLoad","openAllSectionsOnLoad","unlinkedSections","section","itemsRecipe","sectionRecipe","$head","formPage","fieldValidationErrorTimeout","toggleTimeout","$accordion","accordion","$section","is","opened","$field","onChangedFieldValidationError","detach","size","contentAlign","hideIfEmpty","hasVisible","exec","newTab","href","popupContent","popupTitle","setContent","redirectOnSubmit","itemsCount","itemIndex","$item","$circle","$triangle","$titleSpan","eachIndex","$stepItems","instancesData","currentInstanceId","productFrameInside","editProductFreme","oneOfStepsIsActive","toggledSteps","instantiateButtons","initFields","initInstantiateButtonsVisibilityToggle","createUpdateItem","getDefaultInstanceData","savedFieldData","detouchFieldsByInstance","resetToDefault","onUpdatedCountOfInstances","productAttributes","productFrameProductSelectorField","goToFirstStep","time","timeEnd","count","getInstancesDataAmount","instancesDataItem","sourceOfInstanceAttributes","getProductAttributes","removePriceAdditionObjects","getRecipeXhr","productFrameConfigurator","productFrameField","addParentField","initialUpdate","SummaryCartItem","$col1","$col2","$col3","$plus","$minus","valueOld","autocorrectValue","renderValue","HolderCartItem","$parking","holderCartItem","onEdit","onSectionHeaderClick","refreshTimeout","htmlCol1","htmlCol2","counter","selector"],"mappings":";QAAA;QACA;QACA;QACA;QACA;QACA;QACA,QAAQ,oBAAoB;QAC5B;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,YAAY,2BAA2B;QACvC;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA,0CAA0C,oBAAoB,WAAW;;;;;;;;AChG5D;;AAEb;;AAEA;AACA;AACA;AACA;AACA,E;;;;;;;;ACRa;;AAEb;;AAEA,sBAAsB,mBAAO,CAAC,EAAmC;;AAEjE;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC,G;;;;;;;;;;;;;;;AC1BD,IAAMA,QAAQC,mBAAOA,CAAC,EAAR,CAA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AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB,sBAAsB,uBAAuB,WAAW,IAAI;AAC5D,GAAG;AACH,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA,KAAK;AACL;AACA,sBAAsB,mCAAmC;AACzD,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,gCAAgC;AAChG;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,EAAE,mBAAO,CAAC,EAAgB;AAC1B,EAAE,mBAAO,CAAC,EAAe;AACzB;;AAEA,sBAAsB,mBAAO,CAAC,EAAY;AAC1C;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0DAA0D,kBAAkB;;AAE5E;AACA;AACA;AACA,oBAAoB,uBAAuB;;AAE3C,oDAAoD,6BAA6B;;AAEjF;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,0BAA0B,eAAe,EAAE;AAC3C,0BAA0B,gBAAgB;AAC1C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,8CAA8C,YAAY,EAAE;;AAE5D;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD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;;;;;;;;;;;;;;;;;;;;;;;ACAA,IAAM/N,UAAUpJ,mBAAOA,CAAC,EAAR,CAAhB;;IAEMoX,S;;;AACF,yBACA;AAAA;;AAAA,iJACa5N,SADb;;AAEI,YAAMC,YAAN;;AAEAA,aAAKM,KAAL,GAAa7J,EAAE,oCAAF,CAAb;;AAEA,YAAI,CAACuJ,KAAK2Y,eAAL,EAAL,EACA;AACIjY,oBAAQhJ,KAAR,CAAc,qCAAd;AACH;;AAEDsI,aAAK2K,aAAL;AAXJ;AAYC;;;;kCAGD;AACI,gBAAM3K,OAAO,IAAb;AACA,mBAAOA,KAAKJ,MAAL,CAAYgZ,IAAnB;AACH;;;0CAGD;AACI,gBAAM5Y,OAAO,IAAb;AACA,mBAAOA,KAAKJ,MAAL,CAAYkZ,YAAnB;AACH;;;EA1BmBnZ,O;;AA8BxBH,OAAOC,OAAP,GAAiBkO,SAAjB,C","file":"public-configurator.js?hash=93f6d7","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 5985d799d8859f628af0","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n  if (!(instance instanceof Constructor)) {\n    throw new TypeError(\"Cannot call a class as a function\");\n  }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/classCallCheck.js\n// module id = 0\n// module chunks = 2 3 4","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n  function defineProperties(target, props) {\n    for (var i = 0; i < props.length; i++) {\n      var descriptor = props[i];\n      descriptor.enumerable = descriptor.enumerable || false;\n      descriptor.configurable = true;\n      if (\"value\" in descriptor) descriptor.writable = true;\n      (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n    }\n  }\n\n  return function (Constructor, protoProps, staticProps) {\n    if (protoProps) defineProperties(Constructor.prototype, protoProps);\n    if (staticProps) defineProperties(Constructor, staticProps);\n    return Constructor;\n  };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/createClass.js\n// module id = 2\n// module chunks = 2","const utils = require('root/common/utils.js');\r\n\r\nutils.isLogged = function ()\r\n{\r\n    return $(document.body).hasClass('logged-in');\r\n}\r\n\r\nutils.isValidStr = function (str)\r\n{\r\n    return typeof str === 'number' || (typeof str === 'string' && str.length);\r\n}\r\n\r\nutils.ucfirst = function (str)\r\n{\r\n    return str[0].toUpperCase() + str.slice(1);\r\n}\r\n\r\nutils.lcfirst = function (str)\r\n{\r\n    return str[0].toLowerCase() + str.slice(1);\r\n}\r\n/**\r\n * @param type\r\n * @param endpoint\r\n * @param data\r\n * @param success\r\n * @param error\r\n * @return {XMLHttpRequest}\r\n */\r\nutils.rest = function (type, endpoint, data, success, error)\r\n{\r\n    return $.ajax({\r\n        url: `/wp-json/mb2-leads/v1/${endpoint}`,\r\n        type: type,\r\n        data: {\r\n            json: JSON.stringify(data),\r\n            currentLanguage: window.mb2ls.phpVars.current_language ? window.mb2ls.phpVars.current_language : null,\r\n        },\r\n        success: success,\r\n        dataType: \"json\",\r\n        beforeSend: function (request)\r\n        {\r\n            if (window.mb2ls.phpVars.nonce)\r\n            {\r\n                request.setRequestHeader(\"X-WP-Nonce\", window.mb2ls.phpVars.nonce);\r\n            }\r\n        },\r\n        error: function (e)\r\n        {\r\n            //For aborted requests, somtimes we programmicaly abort requests\r\n            if (e.statusText === 'abort') return;\r\n\r\n            const message = (e.responseJSON && e.responseJSON.message) ? e.responseJSON.message : 'Uncaught error.';\r\n            if (error) error(utils.nl2br(message), e.responseJSON);\r\n            else alert(utils.stripTags(message));\r\n        }\r\n    });\r\n}\r\n\r\nutils.formatMoney = function (amount)\r\n{\r\n    const currency = `€`;\r\n    let price = '-,--';\r\n    if (amount)\r\n    {\r\n        const nf = new Intl.NumberFormat(\r\n            'de-DE',\r\n            {\r\n                style: 'currency',\r\n                currency: 'EUR'\r\n            }\r\n        );\r\n        price = nf.format(amount).replace(' €', '');\r\n    }\r\n    return `<span class=\"mb2ls-price-holder\">` +\r\n        `${price}&nbsp;${currency}` +\r\n        `<img class=\"mb2ls-price-holder__spinner\" src=\"${window.mb2ls.phpVars.plugin_root_url}/assets/images/loading.gif\" loading=lazy>` +\r\n        `</span>`;\r\n};\r\n\r\nutils.split = function (str, delimiter = ';')\r\n{\r\n    if (!str) return [];\r\n\r\n    const items = str.split(delimiter);\r\n    for (let key in items)\r\n    {\r\n        items[key] = items[key].trim();\r\n    }\r\n    return items;\r\n}\r\n\r\nutils.setArray = function (length, value = null)\r\n{\r\n    const array = [];\r\n    while (length--)\r\n    {\r\n        array.push(value);\r\n    }\r\n    return array;\r\n}\r\n\r\nutils.isDesktop = function (usingUserAgent = false)\r\n{\r\n    if (usingUserAgent) return !window.mb2ls.phpVars.mobile_client;\r\n    return $(document).width() > 720;\r\n}\r\n\r\nutils.stripTags = function (str)\r\n{\r\n    return str.replace(/<\\/?[^>]+(>|$)/g, \"\");\r\n}\r\n\r\nutils.waitForStableHeight = function (stabilized)\r\n{\r\n    if (!utils.$body) utils.$body = $('body');\r\n    let prevHeight = utils.$body.height();\r\n    let stableCounter = 0;\r\n    const interval = setInterval(function ()\r\n    {\r\n        const newHeight = utils.$body.height();\r\n        if (prevHeight === newHeight)\r\n        {\r\n            stableCounter++;\r\n        } else\r\n        {\r\n            stableCounter = 0;\r\n        }\r\n\r\n        if (stableCounter === 3)\r\n        {\r\n            stabilized();\r\n            clearInterval(interval);\r\n            clearTimeout(timeout);\r\n        }\r\n\r\n        prevHeight = newHeight;\r\n    }, 150);\r\n\r\n    const timeout = setTimeout(function ()\r\n    {\r\n        clearInterval(interval);\r\n        stabilized();\r\n    }, 2000);\r\n}\r\n\r\n//In use in a child theme!\r\nutils.getFixedElementsHeight = function ()\r\n{\r\n    utils.maybeInitCache();\r\n    if (!window.mb2ls.cache.getFixedElements) window.mb2ls.cache.getFixedElements = {};\r\n\r\n    const cache = window.mb2ls.cache.getFixedElements;\r\n    let height = 0;\r\n\r\n    if (cache.$headerStickyMenu === undefined)\r\n    {\r\n        cache.$headerStickyMenu = $('.whb-header.whb-scroll-slide > .whb-main-header');\r\n    }\r\n    if (cache.$wpAdminBar === undefined) cache.$wpAdminBar = $('#wpadminbar');\r\n\r\n\r\n    if (cache.$wpAdminBar.length > 0 && cache.$wpAdminBar.css('position') === 'fixed')\r\n    {\r\n        height += cache.$wpAdminBar.height();\r\n    }\r\n\r\n    //The sticky menu displays only if the page scrolls up,\r\n    //here we detect it and add the offset\r\n    if (cache.$headerStickyMenu.length > 0 && window.scrollY + 5 > offset)\r\n    {\r\n        height += cache.$headerStickyMenu.height();\r\n    }\r\n\r\n    return height;\r\n}\r\n\r\nutils.scroll = function (args)\r\n{\r\n    const $target = args.$target;\r\n    if (!window.mb2ls.scrollCache) window.mb2ls.scrollCache = {};\r\n    const scrollCache = window.mb2ls.scrollCache;\r\n    let scrolledByUser = false;\r\n\r\n    if (scrollCache.$body === undefined) scrollCache.$body = $([document.documentElement, document.body]);\r\n    if (scrollCache.$window === undefined) scrollCache.$window = $(window);\r\n\r\n    function onScrolledByUser(e)\r\n    {\r\n        scrolledByUser = true;\r\n    }\r\n    const onScrolledByUserEvents = 'mousewheel touchmove';\r\n    scrollCache.$window.on(onScrolledByUserEvents, onScrolledByUser);\r\n\r\n    function scroll()\r\n    {\r\n        if (scrolledByUser) return;\r\n\r\n        let offset = $target.offset().top;\r\n        let scrollTop = $(document).scrollTop();\r\n\r\n        offset -= utils.getFixedElementsHeight();\r\n\r\n        //Disallow the scroll if a section fully fit into screen\r\n        if (\r\n            offset + $target.outerHeight() <= scrollTop + window.outerHeight &&\r\n            offset > scrollTop\r\n        ) return;\r\n\r\n        scrollCache.$body.animate({scrollTop: offset}, 300);\r\n    }\r\n\r\n    if (args.waitForStableHeight)\r\n    {\r\n        utils.waitForStableHeight(function ()\r\n        {\r\n            scroll();\r\n            scrollCache.$window.off(onScrolledByUserEvents, onScrolledByUser);\r\n        });\r\n    } else\r\n    {\r\n        setTimeout(function ()\r\n        {\r\n            scroll();\r\n            scrollCache.$window.off(onScrolledByUserEvents, onScrolledByUser);\r\n        }, 500);\r\n    }\r\n}\r\n\r\nutils.getBlankImageSrc = function ()\r\n{\r\n    return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mPM7/SqBwAEdAHDGKI/CgAAAABJRU5ErkJggg==';\r\n}\r\n\r\nutils.getTransparentPixel = function ()\r\n{\r\n    return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';\r\n}\r\n\r\nutils.isHtml = function (str)\r\n{\r\n    var a = document.createElement('div');\r\n    a.innerHTML = str;\r\n    for (var c = a.childNodes, i = c.length; i--;)\r\n    {\r\n        if (c[i].nodeType == 1) return true;\r\n    }\r\n    return false;\r\n}\r\n\r\nutils.getUrlQuery = function (params, coerce)\r\n{\r\n\r\n    if (params === undefined) params = location.search.substr(1);\r\n\r\n    var obj = {},\r\n        coerce_types = {'true': !0, 'false': !1, 'null': null};\r\n\r\n    // If params is an empty string or otherwise falsy, return obj.\r\n    if (!params)\r\n    {\r\n        return JSON.parse(JSON.stringify(obj));\r\n    }\r\n\r\n    // Iterate over all name=value pairs.\r\n    params.replace(/\\+/g, ' ').split('&').forEach(function (v)\r\n    {\r\n        var param = v.split('='),\r\n            key = decodeURIComponent(param[0]),\r\n            val,\r\n            cur = obj,\r\n            i = 0,\r\n\r\n            // If key is more complex than 'foo', like 'a[]' or 'a[b][c]', split it\r\n            // into its component parts.\r\n            keys = key.split(']['),\r\n            keys_last = keys.length - 1;\r\n\r\n        // If the first keys part contains [ and the last ends with ], then []\r\n        // are correctly balanced.\r\n        if (/\\[/.test(keys[0]) && /\\]$/.test(keys[keys_last]))\r\n        {\r\n            // Remove the trailing ] from the last keys part.\r\n            keys[keys_last] = keys[keys_last].replace(/\\]$/, '');\r\n\r\n            // Split first keys part into two parts on the [ and add them back onto\r\n            // the beginning of the keys array.\r\n            keys = keys.shift().split('[').concat(keys);\r\n\r\n            keys_last = keys.length - 1;\r\n        } else\r\n        {\r\n            // Basic 'foo' style key.\r\n            keys_last = 0;\r\n        }\r\n\r\n        // Are we dealing with a name=value pair, or just a name?\r\n        if (param.length === 2)\r\n        {\r\n            val = decodeURIComponent(param[1]);\r\n\r\n            // Coerce values.\r\n            if (coerce)\r\n            {\r\n                val = val && !isNaN(val) && ((+val + '') === val) ? +val        // number\r\n                    : val === 'undefined' ? undefined         // undefined\r\n                        : coerce_types[val] !== undefined ? coerce_types[val] // true, false, null\r\n                            : val;                                                          // string\r\n            }\r\n\r\n            if (keys_last)\r\n            {\r\n                // Complex key, build deep object structure based on a few rules:\r\n                // * The 'cur' pointer starts at the object top-level.\r\n                // * [] = array push (n is set to array length), [n] = array if n is\r\n                //   numeric, otherwise object.\r\n                // * If at the last keys part, set the value.\r\n                // * For each keys part, if the current level is undefined create an\r\n                //   object or array based on the type of the next keys part.\r\n                // * Move the 'cur' pointer to the next level.\r\n                // * Rinse & repeat.\r\n                for (; i <= keys_last; i++)\r\n                {\r\n                    key = keys[i] === '' ? cur.length : keys[i];\r\n                    cur = cur[key] = i < keys_last\r\n                        ? cur[key] || (keys[i + 1] && isNaN(keys[i + 1]) ? {} : [])\r\n                        : val;\r\n                }\r\n\r\n            } else\r\n            {\r\n                // Simple key, even simpler rules, since only scalars and shallow\r\n                // arrays are allowed.\r\n\r\n                if (Object.prototype.toString.call(obj[key]) === '[object Array]')\r\n                {\r\n                    // val is already an array, so push on the next value.\r\n                    obj[key].push(val);\r\n\r\n                } else if ({}.hasOwnProperty.call(obj, key))\r\n                {\r\n                    // val isn't an array, but since a second value has been specified,\r\n                    // convert val into an array.\r\n                    obj[key] = [obj[key], val];\r\n\r\n                } else\r\n                {\r\n                    // val is a scalar.\r\n                    obj[key] = val;\r\n                }\r\n            }\r\n\r\n        } else if (key)\r\n        {\r\n            // No value was defined, so set something meaningful.\r\n            obj[key] = coerce\r\n                ? undefined\r\n                : '';\r\n        }\r\n    });\r\n\r\n    return JSON.parse(JSON.stringify(obj));\r\n};\r\n\r\nutils.deepRemove = function ($elements)\r\n{\r\n    $elements.each(function()\r\n    {\r\n        const $element = $(this);\r\n        $element.add(\"*\", $element).off();\r\n        $element.remove();\r\n    });\r\n}\r\n\r\nmodule.exports = utils;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/utils.js","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/get-prototype-of.js\n// module id = 4\n// module chunks = 2","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n  if (!self) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n\n  return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/possibleConstructorReturn.js\n// module id = 5\n// module chunks = 2","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n  if (typeof superClass !== \"function\" && superClass !== null) {\n    throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n  }\n\n  subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n    constructor: {\n      value: subClass,\n      enumerable: false,\n      writable: true,\n      configurable: true\n    }\n  });\n  if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/inherits.js\n// module id = 6\n// module chunks = 2","\"use strict\";\n\nexports.__esModule = true;\n\nvar _getPrototypeOf = require(\"../core-js/object/get-prototype-of\");\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _getOwnPropertyDescriptor = require(\"../core-js/object/get-own-property-descriptor\");\n\nvar _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function get(object, property, receiver) {\n  if (object === null) object = Function.prototype;\n  var desc = (0, _getOwnPropertyDescriptor2.default)(object, property);\n\n  if (desc === undefined) {\n    var parent = (0, _getPrototypeOf2.default)(object);\n\n    if (parent === null) {\n      return undefined;\n    } else {\n      return get(parent, property, receiver);\n    }\n  } else if (\"value\" in desc) {\n    return desc.value;\n  } else {\n    var getter = desc.get;\n\n    if (getter === undefined) {\n      return undefined;\n    }\n\n    return getter.call(receiver);\n  }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/get.js\n// module id = 7\n// module chunks = 2","var core = module.exports = { version: '2.6.12' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_core.js\n// module id = 8\n// module chunks = 2 3 4 5 6","module.exports = { \"default\": require(\"core-js/library/fn/json/stringify\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/json/stringify.js\n// module id = 9\n// module chunks = 2 3 4 5 6","require('./element.scss');\r\nconst utils = require('public/utils.js');\r\nconst Common = require('./common.js');\r\n\r\n/**\r\n * @property {Array} recipe\r\n * @property {jQuery} $destination\r\n * @property {ConfiguratorProduct} configurator\r\n */\r\nclass Element extends Common {\r\n    /**\r\n     * @param recipe\r\n     * @param $destination\r\n     * @param configurator {Configurator}\r\n     */\r\n    constructor(recipe, $destination, configurator)\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.recipe = recipe;\r\n        that.configurator = configurator;\r\n        that.attributes = that.recipe.attributes ? that.recipe.attributes : {};\r\n        that.restrItems = [];\r\n        that.parent = null;\r\n        that.relatedGalleryItemScaleTimeout = null;\r\n        that.hasRelatedGalleryItem = false;\r\n\r\n        if ($destination)\r\n        {\r\n            that.$destination = $destination;\r\n            that.parent = $destination.data('mb2lsElement');\r\n            if (!that.parent) that.parent = null;\r\n        }\r\n        that.configurator.$root.on('mb2ls.inited', function ()\r\n        {\r\n            that.maybeInitRelatedGalleryItem();\r\n        });\r\n    }\r\n\r\n    onScroll()\r\n    {\r\n        const that = this;\r\n        const $window = that.configurator.$window;\r\n        const $document = that.configurator.$document;\r\n\r\n        if (!that.configurator.gallery)\r\n        {\r\n            console.warn(`There is no a gallery.`);\r\n            return;\r\n        }\r\n        let offset = that.$root.offset().top - (utils.getFixedElementsHeight() + $window.height() / 2);\r\n        let scrollTop = $document.scrollTop();\r\n\r\n        if (offset < scrollTop && offset + that.$root.outerHeight() > scrollTop)\r\n        {\r\n            if (!that.triggeredRelatedGalleryItem)\r\n            {\r\n                that.triggeredRelatedGalleryItem = true;\r\n                if (that.recipe.relatedGalleryItem)\r\n                {\r\n                    that.configurator.gallery.setActiveItem(that.recipe.relatedGalleryItem);\r\n                }\r\n                if (that.recipe.relatedGalleryScale)\r\n                {\r\n                    if (that.relatedGalleryItemScaleTimeout) clearTimeout(that.relatedGalleryItemScaleTimeout);\r\n\r\n                    //Waiting for images switching to correct working of \"transition\"\r\n                    that.relatedGalleryItemScaleTimeout = setTimeout(function ()\r\n                    {\r\n                        that.configurator.gallery.setScale(that.recipe.relatedGalleryScale);\r\n                    }, 100);\r\n                }\r\n            }\r\n        } else\r\n        {\r\n            that.triggeredRelatedGalleryItem = false;\r\n        }\r\n    }\r\n\r\n    maybeInitRelatedGalleryItem()\r\n    {\r\n        const that = this;\r\n        if (that.recipe.relatedGalleryItem === undefined && that.recipe.relatedGalleryScale === undefined) return;\r\n        if (!that.$root) return;\r\n        if (!utils.isDesktop()) return;\r\n\r\n        that.hasRelatedGalleryItem = true;\r\n        that.triggeredRelatedGalleryItem = false;\r\n\r\n        //\"off\" is in \"destroy\"\r\n        that.configurator.$window.on(`scroll.${that.eId}`, $.proxy(that.onScroll, that));\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        that.configurator.$window.off(`.${that.eId}`);\r\n        super.destroy();\r\n    }\r\n\r\n    afterRootInit()\r\n    {\r\n        const that = this;\r\n        that.$root.data('mb2lsElement', that);\r\n        if (that.$body) that.$body.data('mb2lsElement', that);\r\n        if (that.attributes.class) that.$root.addClass(that.attributes.class);\r\n        if (that.attributes.style) that.$root.attr('style', that.attributes.style);\r\n\r\n        if (that.getTemplateId() && that.$root && utils.isDebugMode())\r\n        {\r\n            that.$root.attr('data-template-id', that.getTemplateId());\r\n        }\r\n    }\r\n\r\n    toggleForceVisibility(newVisible)\r\n    {\r\n        const that = this;\r\n        if (newVisible === that.visible) return;\r\n\r\n        that.newVisible = that.forceVisible = that.visible = newVisible;\r\n        that.$root.css('display', that.visible ? '' : 'none');\r\n\r\n        const $parent = that.$root.parent();\r\n        const parentElement = $parent.data('mb2lsElement');\r\n        if (parentElement && parentElement.constructor.name === 'Column')\r\n        {\r\n            parentElement.onUpdateChildVisibility();\r\n        }\r\n    }\r\n\r\n    toggleActionsOppartunity(allowed)\r\n    {\r\n        const that = this;\r\n        that.$root.toggleClass('mb2ls-element--actions-disallowed', !allowed);\r\n    }\r\n\r\n    getTemplateId()\r\n    {\r\n        const that = this;\r\n        return that.recipe.itemName ? that.recipe.itemName : null;\r\n    }\r\n}\r\n\r\nmodule.exports = Element;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/element.js","var core = require('../../modules/_core');\nvar $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });\nmodule.exports = function stringify(it) { // eslint-disable-line no-unused-vars\n  return $JSON.stringify.apply($JSON, arguments);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/json/stringify.js\n// module id = 11\n// module chunks = 2 3 4 5 6","let utils = {};\r\n\r\nutils.sprintf = function (str)\r\n{\r\n    let args = arguments;\r\n    let i = 0;\r\n    return args[0].replace(/%s/gi, function ()\r\n    {\r\n        i++;\r\n        return args[i];\r\n    });\r\n};\r\n\r\n\r\nutils.deparam = function (params, coerce) {\r\n    var obj = {},\r\n        coerce_types = {'true': !0, 'false': !1, 'null': null};\r\n\r\n    // If params is an empty string or otherwise falsy, return obj.\r\n    if (!params) {\r\n        return obj;\r\n    }\r\n\r\n    // Iterate over all name=value pairs.\r\n    params.replace(/\\+/g, ' ').split('&').forEach(function (v) {\r\n        var param = v.split('='),\r\n            key = decodeURIComponent(param[0]),\r\n            val,\r\n            cur = obj,\r\n            i = 0,\r\n\r\n            // If key is more complex than 'foo', like 'a[]' or 'a[b][c]', split it\r\n            // into its component parts.\r\n            keys = key.split(']['),\r\n            keys_last = keys.length - 1;\r\n\r\n        // If the first keys part contains [ and the last ends with ], then []\r\n        // are correctly balanced.\r\n        if (/\\[/.test(keys[0]) && /\\]$/.test(keys[keys_last])) {\r\n            // Remove the trailing ] from the last keys part.\r\n            keys[keys_last] = keys[keys_last].replace(/\\]$/, '');\r\n\r\n            // Split first keys part into two parts on the [ and add them back onto\r\n            // the beginning of the keys array.\r\n            keys = keys.shift().split('[').concat(keys);\r\n\r\n            keys_last = keys.length - 1;\r\n        } else {\r\n            // Basic 'foo' style key.\r\n            keys_last = 0;\r\n        }\r\n\r\n        // Are we dealing with a name=value pair, or just a name?\r\n        if (param.length === 2) {\r\n            val = decodeURIComponent(param[1]);\r\n\r\n            // Coerce values.\r\n            if (coerce) {\r\n                val = val && !isNaN(val) && ((+val + '') === val) ? +val        // number\r\n                    : val === 'undefined' ? undefined         // undefined\r\n                        : coerce_types[val] !== undefined ? coerce_types[val] // true, false, null\r\n                            : val;                                                          // string\r\n            }\r\n\r\n            if (keys_last) {\r\n                // Complex key, build deep object structure based on a few rules:\r\n                // * The 'cur' pointer starts at the object top-level.\r\n                // * [] = array push (n is set to array length), [n] = array if n is\r\n                //   numeric, otherwise object.\r\n                // * If at the last keys part, set the value.\r\n                // * For each keys part, if the current level is undefined create an\r\n                //   object or array based on the type of the next keys part.\r\n                // * Move the 'cur' pointer to the next level.\r\n                // * Rinse & repeat.\r\n                for (; i <= keys_last; i++) {\r\n                    key = keys[i] === '' ? cur.length : keys[i];\r\n                    cur = cur[key] = i < keys_last\r\n                        ? cur[key] || (keys[i + 1] && isNaN(keys[i + 1]) ? {} : [])\r\n                        : val;\r\n                }\r\n\r\n            } else {\r\n                // Simple key, even simpler rules, since only scalars and shallow\r\n                // arrays are allowed.\r\n\r\n                if (Object.prototype.toString.call(obj[key]) === '[object Array]') {\r\n                    // val is already an array, so push on the next value.\r\n                    obj[key].push(val);\r\n\r\n                } else if ({}.hasOwnProperty.call(obj, key)) {\r\n                    // val isn't an array, but since a second value has been specified,\r\n                    // convert val into an array.\r\n                    obj[key] = [obj[key], val];\r\n\r\n                } else {\r\n                    // val is a scalar.\r\n                    obj[key] = val;\r\n                }\r\n            }\r\n\r\n        } else if (key) {\r\n            // No value was defined, so set something meaningful.\r\n            obj[key] = coerce\r\n                ? undefined\r\n                : '';\r\n        }\r\n    });\r\n\r\n    return obj;\r\n};\r\n\r\n//Converts jQuery form object into simple data object\r\nutils.serializeObject = function ($root) {\r\n    var queryString;\r\n    //If input(s)\r\n    if ($root.eq(0).filter(':input').length !== 0) queryString = $root.serialize();\r\n    else queryString = $root.find(':input').serialize();\r\n    return utils.deparam(queryString);\r\n};\r\n\r\n// utils.getFormQueryString = function ($root)\r\n// {\r\n//     var queryString;\r\n//     //If input(s)\r\n//     if ($root.eq(0).filter(':input').length !== 0) queryString = $root.serialize();\r\n//     else queryString = $root.find(':input').serialize();\r\n//\r\n//\r\n//     return queryString;\r\n// }\r\n\r\nutils.ajaxRequest = function (action, data, cb) {\r\n    $.ajax({\r\n            url: window.ajaxurl,\r\n            type: \"POST\",\r\n            data: {action: action, json: JSON.stringify(data)},\r\n            dataType: \"json\"\r\n        }\r\n    ).done(function (data) {\r\n        cb(data);\r\n    }).fail(function (jqXHR, textStatus) {\r\n        cb({success: false, message: \"Request failed: \" + textStatus});\r\n    });\r\n};\r\n\r\nutils.isImageFine = function (img)\r\n{\r\n    // During the onload event, IE correctly identifies any images that\r\n    // weren’t downloaded as not complete. Others should too. Gecko-based\r\n    // browsers act like NS4 in that they report this incorrectly.\r\n    if (!img.complete)\r\n    {\r\n        return false;\r\n    }\r\n\r\n    // However, they do have two very useful properties: naturalWidth and\r\n    // naturalHeight. These give the true size of the image. If it failed\r\n    // to load, either of these should be zero.\r\n    if (img.naturalWidth === 0)\r\n    {\r\n        return false;\r\n    }\r\n\r\n    // No other way of checking: assume it’s ok.\r\n    return true;\r\n}\r\n\r\nutils.generateId = function (namespace = 'dom', prefix = 'mb2ls-')\r\n{\r\n    if (window.mb2ls.uniqueIdIndex === undefined) window.mb2ls.uniqueIdIndex = {};\r\n    if (window.mb2ls.uniqueIdIndex[namespace] === undefined) window.mb2ls.uniqueIdIndex[namespace] = 0;\r\n    window.mb2ls.uniqueIdIndex[namespace]++;\r\n    return `${prefix}${window.mb2ls.uniqueIdIndex[namespace]}`;\r\n}\r\n\r\nutils.generateEventId = function ()\r\n{\r\n    return utils.generateId('event', 'mb2lsEv');\r\n}\r\n\r\nutils.createRegExpObj = function (string)\r\n{\r\n    var match = string.match(new RegExp('^/(.*?)/([gimy]*)$'));\r\n    return new RegExp(match[1], match[2]);\r\n}\r\n\r\nutils.nl2br = function (str, is_xhtml = false)\r\n{\r\n    if (typeof str === 'undefined' || str === null)\r\n    {\r\n        return '';\r\n    }\r\n    var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '<br />' : '<br>';\r\n    return (str + '').replace(/([^>\\r\\n]?)(\\r\\n|\\n\\r|\\r|\\n)/g, '$1' + breakTag + '$2');\r\n}\r\n\r\nutils.maybeInitCache = function ()\r\n{\r\n    if (!window.mb2ls) window.mb2ls = {};\r\n    if (!window.mb2ls.cache) window.mb2ls.cache = {};\r\n}\r\n\r\nutils.isDebugMode = function ()\r\n{\r\n    utils.maybeInitCache();\r\n    if (window.mb2ls.cache.isDebugMode !== undefined) return window.mb2ls.cache.isDebugMode;\r\n\r\n    return window.mb2ls.cache.isDebugMode = !!parseInt($.cookie('mb2ls_debug'));\r\n}\r\n\r\nmodule.exports = utils;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/common/utils.js","require('./field.scss');\r\nconst utils = require('public/utils.js');\r\nconst TooltipTrigger = require('../../tooltip/tooltip-trigger.js');\r\nconst Common = require('../common.js');\r\n\r\n/**\r\n * @property {Restrictions} restrictions\r\n */\r\nclass Field extends Common {\r\n    constructor(args)\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        const parent = args.$destination ? args.$destination.data('mb2lsElement') : null;\r\n        that.parent = parent ? parent : null;\r\n\r\n        that.field = args.field;\r\n        that.fieldContent = args.fieldContent;\r\n        that.recipe = args.recipe;\r\n        that.templateItemRecipe = args.templateItemRecipe;\r\n        that.attributes = that.templateItemRecipe.attributes ? that.templateItemRecipe.attributes : {};\r\n        that.restrictions = args.restrictions;\r\n        that.style = that.getStyle();\r\n        that.postfix = '';\r\n        that.linkedWcField = that.fieldContent.WC_Linked_WC_Field_Name__c ? that.fieldContent.WC_Linked_WC_Field_Name__c : null;\r\n        that.wcCustomer = that.recipe.wc_customer;\r\n\r\n        that.$root = $('<div class=\"mb2ls-conf-field\">');\r\n        that.$root.addClass(`mb2ls-conf-field--${that.getName()}`);\r\n        that.$root.addClass(`mb2ls-conf-field--direction--${that.getDirection()}`);\r\n        that.$root.addClass(`mb2ls-conf-field--size--${that.getSize()}`);\r\n        if (that.style) that.$root.addClass(`mb2ls-conf-field--style--${that.style}`);\r\n        that.$title = $('<div class=\"mb2ls-conf-field__title\">');\r\n        that.$titleText = $('<div class=\"mb2ls-conf-field__title-text\">');\r\n        that.$content = $('<div class=\"mb2ls-conf-field__content\">');\r\n        that.$content.addClass(`mb2ls-conf-field-${that.getName()}`);\r\n        that.configurator = args.configurator;\r\n        that.insideInstantiator = false;\r\n\r\n        that.$titleText.html(that.templateItemRecipe.uiName);\r\n        that.$titleText.appendTo(that.$title);\r\n\r\n        //that.fieldContent.WC_UI_Name__c - tooltip\r\n        if (typeof that.fieldContent.WC_UI_Name__c === 'string' && that.fieldContent.WC_UI_Name__c.length)\r\n        {\r\n            that.tooltipTrigger = new TooltipTrigger({\r\n                text: that.fieldContent.WC_UI_Name__c\r\n            });\r\n            that.tooltipTrigger.$root.appendTo(that.$title);\r\n        }\r\n\r\n        that.$title.appendTo(that.$root);\r\n        that.$content.appendTo(that.$root);\r\n        if (that.isEnabledValidator()) that.enableValidator();\r\n        that.loadDefaultValue();\r\n\r\n        if (utils.isDebugMode())\r\n        {\r\n            that.$root.attr('data-template-id', that.fieldContent.WC_Template_ID__c);\r\n            that.$root.attr('data-json-key', that.templateItemRecipe.jsonKey);\r\n        }\r\n\r\n        if (that.isLabelLinkedToInput())\r\n        {\r\n            that.$root.addClass(`mb2ls-conf-field--label-linked-to-input`);\r\n        }\r\n\r\n        if (that.linkedWcField)\r\n        {\r\n            //\"off\" is in \"destroy\"\r\n            that.configurator.$body.on(`mb2ls.loginForm.loggedIn.${that.eId}`, $.proxy(that.onLoginFormLoggedIn, that));\r\n        }\r\n\r\n        that.configurator.summary.createItem({\r\n            type: 'field',\r\n            source: that,\r\n        });\r\n    }\r\n\r\n    onLoginFormLoggedIn(e, response)\r\n    {\r\n        const that = this;\r\n        that.wcCustomer = response.wc_custmer;\r\n        const value = that.getWcCustomerValue();\r\n        if (value !== '') that.setValue(value);\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        that.configurator.$body.off(`.${that.eId}`);\r\n        if(that.$input) utils.deepRemove(that.$root);\r\n        super.destroy();\r\n    }\r\n\r\n    isHiddenForPublicSummary()\r\n    {\r\n        const that = this;\r\n        return !!that.templateItemRecipe.hiddenForPublicSummary;\r\n    }\r\n\r\n    getHiddenSummaryValue()\r\n    {\r\n        const that = this;\r\n        return that.templateItemRecipe.hiddenSummaryValue;\r\n    }\r\n\r\n    enableValidator()\r\n    {\r\n        const that = this;\r\n        that.validatorErrors = [];\r\n        that.validatorAjaxErrors = [];\r\n        that.$validatorMessage = $('<div class=\"mb2ls-conf-field__validator-message\">');\r\n        that.$globalValidatorErrors = $('<div class=\"mb2ls-conf-field-validator-errors\">');\r\n        that.$globalValidatorErrorsTitle = $('<div class=\"mb2ls-conf-field-validator-errors__title\">');\r\n        that.$globalValidatorErrorsContainer = $('<div class=\"mb2ls-conf-field-validator-errors__messages-container\">');\r\n\r\n        that.$validatorMessage.appendTo(that.$root);\r\n        that.$root.addClass('mb2ls-conf-field--validator-enabled');\r\n\r\n        that.$globalValidatorErrorsTitle\r\n            .add(that.$globalValidatorErrorsContainer)\r\n            .appendTo(that.$globalValidatorErrors);\r\n\r\n        //For cases when Validator enabled by AJAX price calc\r\n        that.enabledValidator = true;\r\n    }\r\n\r\n    getSize()\r\n    {\r\n        const that = this;\r\n        return that.fieldContent.WC_Field_Size__c ? utils.lcfirst(that.fieldContent.WC_Field_Size__c) : 'small';\r\n    }\r\n\r\n    getStyle()\r\n    {\r\n        const that = this;\r\n        return null;\r\n    }\r\n\r\n    afterConstructorsInit()\r\n    {\r\n        const that = this;\r\n        that.$root.data('mb2lsField', that);\r\n        if (that.attributes.class) that.$root.addClass(that.attributes.class);\r\n        if (that.attributes.style) that.$root.attr('style', that.attributes.style);\r\n\r\n        if (that.isEnabledValidator())\r\n        {\r\n            that.$globalValidatorErrorsTitle.html(`Das Feld (${that.getUiKey()}) enthält Fehler:`);\r\n            if (that.$input)\r\n            {\r\n                //\"off\" deosn't required, because we remove the element\r\n                that.$input.on('blur', function ()\r\n                {\r\n                    if (that.isValid()) that.configurator.setErrorBoxesMessage(false);\r\n                });\r\n            }\r\n        }\r\n    }\r\n\r\n    isEnabledValidator()\r\n    {\r\n        const that = this;\r\n        if (that.enabledValidator !== undefined) return that.enabledValidator;\r\n\r\n        const fc = that.fieldContent;\r\n        const options = [\r\n            fc.WC_Validation_Min_Length__c, fc.WC_Validation_Max_Length__c,\r\n            fc.WC_Validation_Min_Number__c, fc.WC_Validation_Max_Number__c,\r\n            fc.WC_Validation_RegExp__c\r\n        ];\r\n        return that.enabledValidator = options.some(function (option)\r\n        {\r\n            return option !== null;\r\n        });\r\n    }\r\n\r\n    isRequired()\r\n    {\r\n        const that = this;\r\n        const fc = that.fieldContent;\r\n        if (that.configurator.recipe.isAdmin && fc.WC_Validation_Non_Required_For_Admin__c) return false;\r\n        return fc.WC_Validation_Required__c;\r\n    }\r\n\r\n    isValid()\r\n    {\r\n        const that = this;\r\n        if (!that.isEnabledValidator()) return true;\r\n\r\n        const fc = that.fieldContent;\r\n        const value = that.getValue();\r\n        let newErrors = [];\r\n        if (that.getNewVisible() && (that.isRequired() || value !== ''))\r\n        {\r\n            if (fc.WC_Validation_Min_Length__c !== null && value.length < fc.WC_Validation_Min_Length__c)\r\n            {\r\n                newErrors.push(`The length should be more then ${fc.WC_Validation_Min_Length__c}.`);\r\n            }\r\n            if (fc.WC_Validation_Max_Length__c !== null && value.length > fc.WC_Validation_Max_Length__c)\r\n            {\r\n                newErrors.push(`The length should be less then ${fc.WC_Validation_Min_Length__c}.`);\r\n            }\r\n            if (fc.WC_Validation_Min_Number__c !== null || fc.WC_Validation_Max_Number__c !== null)\r\n            {\r\n                //If not number - should the error\r\n                if (!isNaN(value))\r\n                {\r\n                    newErrors.push(`Allowed only numbers.`);\r\n                } else\r\n                {\r\n                    if (fc.WC_Validation_Min_Number__c !== null && value < fc.WC_Validation_Min_Number__c)\r\n                    {\r\n                        newErrors.push(`The number should be more then ${fc.WC_Validation_Min_Number__c}.`);\r\n                    }\r\n                    if (fc.WC_Validation_Max_Number__c !== null && value > fc.WC_Validation_Max_Number__c)\r\n                    {\r\n                        newErrors.push(`The number should be less then ${fc.WC_Validation_Max_Number__c}.`);\r\n                    }\r\n                }\r\n            }\r\n            if (fc.WC_Validation_RegExp__c !== null && !(utils.createRegExpObj(fc.WC_Validation_RegExp__c)).test(value))\r\n            {\r\n                newErrors.push(\r\n                    utils.isValidStr(fc.WC_Validation_RegExp_Failed_Message__c) ?\r\n                        fc.WC_Validation_RegExp_Failed_Message__c :\r\n                        `The input doesn't fit into an allowed template.`\r\n                );\r\n            }\r\n        }\r\n        newErrors = newErrors.concat(that.validatorAjaxErrors);\r\n        that.$validatorMessage.html(newErrors.length ? newErrors.join('<br>') : '');\r\n        that.$root.toggleClass('mb2ls-conf-field--validator-has-error', !!newErrors.length);\r\n        const changed = JSON.stringify(newErrors) !== JSON.stringify(that.validatorErrors);\r\n        that.validatorErrors = newErrors;\r\n        that.updateGlobalValidatorErrors();\r\n        if (changed)\r\n        {\r\n            that.$root.trigger('mb2ls.field.validatorErrorsChanged');\r\n        }\r\n        return !that.validatorErrors.length;\r\n    }\r\n\r\n    updateGlobalValidatorErrors()\r\n    {\r\n        const that = this;\r\n        utils.deepRemove(that.$globalValidatorErrorsContainer.find('>*'));\r\n        that.validatorErrors.forEach(function (error)\r\n        {\r\n            $('<div class=\"mb2ls-conf-field-validator-errors__message\">')\r\n                .html(error)\r\n                .appendTo(that.$globalValidatorErrorsContainer);\r\n        });\r\n    }\r\n\r\n    getWcCustomerValue()\r\n    {\r\n        const that = this;\r\n        if (that.linkedWcField.indexOf('billing_') === 0)\r\n        {\r\n            return that.wcCustomer.billing[that.linkedWcField.replace(/^billing_/g, '')];\r\n        }\r\n        return '';\r\n    }\r\n\r\n    loadDefaultValue()\r\n    {\r\n        const that = this;\r\n        that.defaultValue = that.fieldContent.WC_Default_Value__c;\r\n        if (!that.defaultValue && that.linkedWcField && that.wcCustomer)\r\n        {\r\n            that.defaultValue = that.getWcCustomerValue();\r\n        }\r\n        if (that.configurator.recipe.defaults && that.configurator.recipe.defaults.Json__c__a[that.getKey()])\r\n        {\r\n            that.defaultValue = that.configurator.recipe.defaults.Json__c__a[that.getKey()].value;\r\n        }\r\n    }\r\n\r\n    getDirection()\r\n    {\r\n        return 'vertical';\r\n    }\r\n\r\n    isLabelLinkedToInput()\r\n    {\r\n        return false;\r\n    }\r\n\r\n    setValue(value)\r\n    {\r\n        const that = this;\r\n        console.warn(\r\n            `It looks like you're trying to set the value(${that.value}) ` +\r\n            `to the field(${that.getTemplateId()})(${that.constructor.name}) but the method doesn't implemented.`\r\n        );\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return '';\r\n    }\r\n\r\n    getValue(raw = false)\r\n    {\r\n        return null;\r\n    }\r\n\r\n    getKey()\r\n    {\r\n        const that = this;\r\n        return that.templateItemRecipe.jsonKey;\r\n    }\r\n\r\n    //For mb2ls.configurator.templatesData\r\n    getTemplateFields()\r\n    {\r\n        return {};\r\n    }\r\n\r\n    getUiKey()\r\n    {\r\n        const that = this;\r\n        return that.templateItemRecipe.uiName;\r\n    }\r\n\r\n    isCartItemHidden()\r\n    {\r\n        const that = this;\r\n        return !!that.templateItemRecipe.cartItemHidden;\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        return null;\r\n    }\r\n\r\n    getPriceAdditionObjects()\r\n    {\r\n        return [];\r\n    }\r\n\r\n    getTemplateId()\r\n    {\r\n        const that = this;\r\n        return that.fieldContent.WC_Template_ID__c;\r\n    }\r\n\r\n    setDescription(html)\r\n    {\r\n        const that = this;\r\n        if (that.$description === undefined)\r\n        {\r\n            that.$description = $('<div class=\"mb2ls-conf-field__description\">');\r\n            that.$description.appendTo(that.$root);\r\n        }\r\n        that.$description\r\n            .html(html)\r\n            .css('display', utils.isValidStr(html) ? true : '');\r\n    }\r\n\r\n    getData()\r\n    {\r\n        const that = this;\r\n        const data = {\r\n            value: that.getValue(),\r\n            rawValue: that.getValue(true),\r\n            uiName: that.getUiKey(),\r\n            uiValue: that.getUiValue(),\r\n            templateId: that.fieldContent.WC_Template_ID__c,\r\n            priceAdditionObjects: that.getPriceAdditionObjects()\r\n        };\r\n        if (that.linkedWcField) data.linkedWcField = that.linkedWcField;\r\n        if (that.templateItemRecipe.mailchimpName) data.mailchimpName = that.templateItemRecipe.mailchimpName;\r\n        return data;\r\n    }\r\n\r\n    toggleActionsOppartunity(allowed)\r\n    {\r\n        const that = this;\r\n        that.$root.toggleClass('mb2ls-conf-field--actions-disallowed', !allowed);\r\n    }\r\n\r\n    resetValue()\r\n    {\r\n        const that = this;\r\n        that.setValue(that.defaultValue);\r\n    }\r\n\r\n    isForcedUsingForPriceApi()\r\n    {\r\n        const that = this;\r\n        return !!that.templateItemRecipe.forceUsingForPriceApi;\r\n    }\r\n}\r\n\r\nmodule.exports = Field;\r\n\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/field.js","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n  ? window : typeof self != 'undefined' && self.Math == Math ? self\n  // eslint-disable-next-line no-new-func\n  : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_global.js\n// module id = 14\n// module chunks = 2","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n  return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_descriptors.js\n// module id = 15\n// module chunks = 2","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n  return IObject(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-iobject.js\n// module id = 16\n// module chunks = 2","require('./button.scss');\r\nrequire('public/modules/icons/icons.scss');\r\nconst Element = require('../element.js');\r\n\r\nclass Button extends Element {\r\n    constructor(args)\r\n    {\r\n        super(...arguments);\r\n\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-btn\">');\r\n        if (that.getType()) that.$root.addClass(`mb2ls-conf-btn--${that.getType()}`);\r\n        that.$root.addClass(`mb2ls-conf-btn--icon-position-${that.getIconPosition()}`);\r\n        that.$root.addClass(`mb2ls-conf-btn--style--${that.getStyle()}`);\r\n        that.$title = $('<div class=\"mb2ls-conf-btn__title\">').appendTo(that.$root);\r\n        that.setTitle(that.recipe.buttonText);\r\n        const icon = that.getIcon();\r\n        if (icon)\r\n        {\r\n            that.$icon =\r\n                $(icon)\r\n                    .addClass('mb2ls-conf-btn__icon')\r\n                    .appendTo(that.$root);\r\n        }\r\n        that.$root.click(function (e)\r\n        {\r\n            that.onClick(e);\r\n            that.$root.trigger('mb2lsClick');\r\n        });\r\n        that.afterRootInit();\r\n    }\r\n\r\n    setTitle(title)\r\n    {\r\n        const that = this;\r\n        that.$title.html(title);\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'default';\r\n    }\r\n\r\n    getIconPosition()\r\n    {\r\n        const that = this;\r\n        return that.recipe.iconPosition ? that.recipe.iconPosition : 'right';\r\n    }\r\n\r\n    onClick(e)\r\n    {\r\n\r\n    }\r\n\r\n    getStyle()\r\n    {\r\n        const that = this;\r\n        return that.recipe.style ? that.recipe.style : 'default';\r\n    }\r\n\r\n    getIcon()\r\n    {\r\n        const that = this;\r\n        return that.recipe.icon ? that.recipe.icon : null;\r\n    }\r\n}\r\n\r\nmodule.exports = Button;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/button/button.js","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n  return hasOwnProperty.call(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_has.js\n// module id = 18\n// module chunks = 2","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n  var IS_FORCED = type & $export.F;\n  var IS_GLOBAL = type & $export.G;\n  var IS_STATIC = type & $export.S;\n  var IS_PROTO = type & $export.P;\n  var IS_BIND = type & $export.B;\n  var IS_WRAP = type & $export.W;\n  var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n  var expProto = exports[PROTOTYPE];\n  var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n  var key, own, out;\n  if (IS_GLOBAL) source = name;\n  for (key in source) {\n    // contains in native\n    own = !IS_FORCED && target && target[key] !== undefined;\n    if (own && has(exports, key)) continue;\n    // export native or passed\n    out = own ? target[key] : source[key];\n    // prevent global pollution for namespaces\n    exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n    // bind timers to global for call from export context\n    : IS_BIND && own ? ctx(out, global)\n    // wrap global constructors for prevent change them in library\n    : IS_WRAP && target[key] == out ? (function (C) {\n      var F = function (a, b, c) {\n        if (this instanceof C) {\n          switch (arguments.length) {\n            case 0: return new C();\n            case 1: return new C(a);\n            case 2: return new C(a, b);\n          } return new C(a, b, c);\n        } return C.apply(this, arguments);\n      };\n      F[PROTOTYPE] = C[PROTOTYPE];\n      return F;\n    // make static versions for prototype methods\n    })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n    // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n    if (IS_PROTO) {\n      (exports.virtual || (exports.virtual = {}))[key] = out;\n      // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n      if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n    }\n  }\n};\n// type bitmap\n$export.F = 1;   // forced\n$export.G = 2;   // global\n$export.S = 4;   // static\n$export.P = 8;   // proto\n$export.B = 16;  // bind\n$export.W = 32;  // wrap\n$export.U = 64;  // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_export.js\n// module id = 19\n// module chunks = 2","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n  anObject(O);\n  P = toPrimitive(P, true);\n  anObject(Attributes);\n  if (IE8_DOM_DEFINE) try {\n    return dP(O, P, Attributes);\n  } catch (e) { /* empty */ }\n  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n  if ('value' in Attributes) O[P] = Attributes.value;\n  return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dp.js\n// module id = 20\n// module chunks = 2","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n  return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n  object[key] = value;\n  return object;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_hide.js\n// module id = 21\n// module chunks = 2","module.exports = function (it) {\n  return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-object.js\n// module id = 22\n// module chunks = 2","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n  return store[name] || (store[name] =\n    USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks.js\n// module id = 23\n// module chunks = 2","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n  if (!isObject(it)) throw TypeError(it + ' is not an object!');\n  return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_an-object.js\n// module id = 24\n// module chunks = 2","module.exports = function (exec) {\n  try {\n    return !!exec();\n  } catch (e) {\n    return true;\n  }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_fails.js\n// module id = 25\n// module chunks = 2","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n  return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n  return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/typeof.js\n// module id = 26\n// module chunks = 2","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n  return $keys(O, enumBugKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys.js\n// module id = 27\n// module chunks = 2","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n  return Object(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-object.js\n// module id = 28\n// module chunks = 2","module.exports = true;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_library.js\n// module id = 29\n// module chunks = 2","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n  return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_uid.js\n// module id = 30\n// module chunks = 2","module.exports = function (bitmap, value) {\n  return {\n    enumerable: !(bitmap & 1),\n    configurable: !(bitmap & 2),\n    writable: !(bitmap & 4),\n    value: value\n  };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_property-desc.js\n// module id = 31\n// module chunks = 2","exports.f = {}.propertyIsEnumerable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-pie.js\n// module id = 32\n// module chunks = 2","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n  if (it == undefined) throw TypeError(\"Can't call method on  \" + it);\n  return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_defined.js\n// module id = 33\n// module chunks = 2","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n  return shared[key] || (shared[key] = uid(key));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared-key.js\n// module id = 34\n// module chunks = 2","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n  return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n  version: core.version,\n  mode: require('./_library') ? 'pure' : 'global',\n  copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared.js\n// module id = 35\n// module chunks = 2","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n  var fn = (core.Object || {})[KEY] || Object[KEY];\n  var exp = {};\n  exp[KEY] = exec(fn);\n  $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-sap.js\n// module id = 36\n// module chunks = 2","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n  if (!isObject(it)) return it;\n  var fn, val;\n  if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n  if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n  if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n  throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-primitive.js\n// module id = 37\n// module chunks = 2","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n  return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-integer.js\n// module id = 38\n// module chunks = 2","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iterators.js\n// module id = 39\n// module chunks = 2","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n  // Thrash, waste and sodomy: IE GC bug\n  var iframe = require('./_dom-create')('iframe');\n  var i = enumBugKeys.length;\n  var lt = '<';\n  var gt = '>';\n  var iframeDocument;\n  iframe.style.display = 'none';\n  require('./_html').appendChild(iframe);\n  iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n  // createDict = iframe.contentWindow.Object;\n  // html.removeChild(iframe);\n  iframeDocument = iframe.contentWindow.document;\n  iframeDocument.open();\n  iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n  iframeDocument.close();\n  createDict = iframeDocument.F;\n  while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n  return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n  var result;\n  if (O !== null) {\n    Empty[PROTOTYPE] = anObject(O);\n    result = new Empty();\n    Empty[PROTOTYPE] = null;\n    // add \"__proto__\" for Object.getPrototypeOf polyfill\n    result[IE_PROTO] = O;\n  } else result = createDict();\n  return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-create.js\n// module id = 40\n// module chunks = 2","// IE 8- don't enum bug keys\nmodule.exports = (\n  'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-bug-keys.js\n// module id = 41\n// module chunks = 2","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n  if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-to-string-tag.js\n// module id = 42\n// module chunks = 2","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-ext.js\n// module id = 43\n// module chunks = 2","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n  var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-define.js\n// module id = 44\n// module chunks = 2","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n  O = toIObject(O);\n  P = toPrimitive(P, true);\n  if (IE8_DOM_DEFINE) try {\n    return gOPD(O, P);\n  } catch (e) { /* empty */ }\n  if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopd.js\n// module id = 45\n// module chunks = 2","require('./configurator.scss');\r\n\r\nconst utils = require('public/utils.js');\r\nconst TooltipManager = require('./tooltip/tooltip.js');\r\nconst Popup = require('public/modules/popup/popup.js');\r\nconst Restrictions = require('./restrictions.js');\r\nconst StepsManager = require('./steps-manager.js');\r\nconst Summary = require('./summary.js');\r\nconst Watchdog = require('./watchdog.js');\r\n\r\nconst fields = {\r\n    WC_Slider_Range: require('./elements/fields/slider-range/slider-range.js'),\r\n    WC_Checkbox: require('./elements/fields/checkbox/checkbox.js'),\r\n    WC_Radio_Options: require('./elements/fields/radio-options/radio-options-custom.js'),\r\n    WC_Radio_Switch: require('./elements/fields/radio-options/radio-options-switch.js'),\r\n    WC_Radio_Switch_Compact: require('./elements/fields/radio-options/radio-options-switch-compact.js'),\r\n    WC_Radio_Checkbox: require('./elements/fields/radio-options/radio-options-classic.js'),\r\n    WC_Dropdown: require('./elements/fields/dropdown/dropdown.js'),\r\n    WC_Text_Input: require('./elements/fields/text-input/text-input.js'),\r\n    WC_Calendly: require('./elements/fields/calendly/calendly.js'),\r\n    WC_Textarea: require('./elements/fields/textarea/textarea.js'),\r\n    WC_Uploader: require('./elements/fields/uploader/uploader.js'),\r\n    WC_Parent: require('./elements/fields/parent/parent.js'),\r\n};\r\n\r\nconst elements = {\r\n    Accordion: require('./elements/accordion/accordion.js'),\r\n    AccordionSection: require('./elements/accordion/accordionSection.js'),\r\n    Row: require('./elements/row/row.js'),\r\n    Column: require('./elements/column/column.js'),\r\n    Html: require('./elements/html/html.js'),\r\n    ErrorBox: require('./elements/error-box/error-box.js'),\r\n    NoticeBox: require('./elements/notice-box/notice-box.js'),\r\n    LinkButton: require('./elements/link-button/link-button.js'),\r\n    Button: require('./elements/button/button.js'),\r\n    PopupButton: require('./elements/popup-button/popup-button.js'),\r\n    PreviousStepButton: require('./elements/previous-step-button/previous-step-button.js'),\r\n    InstantiateButton: require('./elements/instantiate-button/instantiate-button.js'),\r\n    SubmitButton: require('./elements/submit-button/submit-button.js'),\r\n    NextStepButton: require('./elements/next-step-button/next-step-button.js'),\r\n    StepsProgress: require('./elements/steps-progress/steps-progress.js'),\r\n    StepItem: require('./elements/step-item/step-item.js'),\r\n    Instantiator: require('./elements/instantiator/instantiator.js'),\r\n    ProductFrame: require('./elements/product-frame/product-frame.js'),\r\n    RightStickyPanel: require('./elements/right-sticky-panel/right-sticky-panel.js'),\r\n    LeftStickyPanel: require('./elements/left-sticky-panel/left-sticky-panel.js'),\r\n    BottomStickyPanel: require('./elements/bottom-sticky-panel/bottom-sticky-panel.js'),\r\n    SummaryCart: require('./elements/cart/summary/summary-cart.js'),\r\n    HolderCart: require('./elements/cart/holder/holder-cart.js'),\r\n    ProductSummary: require('./elements/product-summary/product-summary.js'),\r\n    Screen: require('./elements/screen/screen.js'),\r\n    Extractor: require('./elements/extractor/extractor.js'),\r\n    Mailchimp: require('./elements/mailchimp/mailchimp.js'),\r\n};\r\n\r\n/**\r\n * @property {Array.<Field>} fields\r\n * @property {Array.<Element>} unsortedElements\r\n *\r\n * @property {StepsManager} elements.stepsManager\r\n * @property {Instantiator} elements.instantiator\r\n * @property {instantiatorHolder} elements.instantiatorHolder\r\n * @property {Array.<SubmitButton>} elements.submitButtons\r\n * @property {StepsProgress} elements.stepsProgress\r\n * @property {ProductFrame} elements.productFrame\r\n * @property {Array.<InstantiateButton>} elements.instantiateButtons\r\n *\r\n * @property {Array.<ErrorBox>} elements.errorsBoxes\r\n * @property {Array.<NoticeBox>} elements.noticesBoxes\r\n * @property {Array.<Html>} elements.htmls\r\n * @property {Array.<StepItem>} elements.stepsItems\r\n * @property {Array.<NextStepButton>} elements.nextStepButtons\r\n * @property {Array.<Mailchimp>} elements.mailchimp\r\n * @property {Configurator} parent\r\n * @property {CartsManager} cartsManager\r\n * @property {Summary} summary\r\n * @property {Watchdog} watchdog\r\n */\r\nclass Configurator {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.insertedToDom = false;\r\n        that.calledMaybeUpdateCriticalHtml = false;\r\n        that.$document = $(document);\r\n        that.$window = $(window);\r\n        that.$body = $('body');\r\n        that.debug = {\r\n            restrictions: false,\r\n        };\r\n        that.id = utils.generateId('configurator');\r\n        that.eId = utils.generateEventId();\r\n        that.options = args.options;\r\n        that.parent = args.parent ? args.parent : null;\r\n        that.recipe = args.recipe;\r\n        that.hasError = false;\r\n        that.processedRestrictionsTimeout = null;\r\n        that.updateCriticalHtmlXhr = null;\r\n        window.mb2ls.summary = that.summary = new Summary({configurator: that});\r\n        that.onSubmit = args.onSubmit;\r\n\r\n        if (!that.parent) window.mb2ls.configurator = that;\r\n        if (that.recipe.error_message)\r\n        {\r\n            console.error(`The system got the error whilte getting the recipe: \\r\\n ${that.recipe.error_message}`);\r\n\r\n            //Output only a first line of the message\r\n            alert(that.recipe.error_message.split('\\n')[0]);\r\n\r\n            that.hasError = true;\r\n            return;\r\n        }\r\n        that.fields = [];\r\n        that.hiddenAttributes = that.prepareHiddenAttributes(that.recipe.product.Hidden_Attributes_JSON__c);\r\n        that.templatesData = {\r\n            hiddenAttributes: that.hiddenAttributes,\r\n\r\n            //Use in restrictions\r\n            isAdmin: that.recipe.isAdmin ? 'yes' : 'no',\r\n            isProduct: that.recipe.product.WC_Product_Id__c,\r\n            post: that.recipe.post,\r\n        };\r\n        that.elements = {\r\n            noticesBoxes: [],\r\n            errorsBoxes: [],\r\n        };\r\n        that.unsortedElements = [];\r\n\r\n        that.$root = $('<div class=\"mb2ls-conf\" id=\"mb2ls-conf\">');\r\n        that.$root.attr('data-id', that.id);\r\n        that.$content = $('<div class=\"mb2ls-conf_content\">');\r\n\r\n        if (!that.parent)\r\n        {\r\n            that.$loading = $(`<div class=\"mb2ls-conf-loading-animation mb2ls-lds-spinner\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>`);\r\n            that.$loading.appendTo(that.$root);\r\n        }\r\n\r\n        that.restrictions = new Restrictions({\r\n            recipe: that.recipe.restrictions,\r\n        });\r\n        that.updatingVisibility = false;\r\n\r\n        //Root keys only\r\n        that.templatesDataReserved = [\r\n            'isAdmin',\r\n            'isProduct',\r\n            'hiddenAttributes',\r\n            'post',\r\n        ];\r\n\r\n        that.popup = new Popup();\r\n        that.tooltipManager = new TooltipManager({\r\n            $container: that.$root,\r\n            manualOpen: true,\r\n        });\r\n\r\n        that.renderElements(that.recipe.template.Accordion_Items_JSON__c__a, that.$content);\r\n        that.$root.trigger(`mb2lsRenderedElements`);\r\n        that.stepsManager = new StepsManager({\r\n            configurator: that,\r\n            stepsItems: that.elements.stepsItems,\r\n            stepsProgress: that.elements.stepsProgress,\r\n            submitButtons: that.elements.submitButtons,\r\n            nextStepButtons: that.elements.nextStepButtons,\r\n            previousStepButtons: that.elements.previousStepButtons,\r\n        });\r\n\r\n        that.$content.appendTo(that.$root);\r\n\r\n        if (that.elements.submitButtons)\r\n        {\r\n            that.elements.submitButtons.forEach(function (submitButton)\r\n            {\r\n                //\"off\" deosn't required, because we remove the element\r\n                submitButton.$root.on('mb2lsClick', function ()\r\n                {\r\n                    if (typeof args.onSubmit !== \"function\") return;\r\n                    if (!that.isValid(that.fields)) return;\r\n\r\n                    args.onSubmit(submitButton);\r\n                });\r\n            });\r\n        }\r\n\r\n        that.tooltipManager.addElements(that.$root.find('[data-mb2ls-tip]'));\r\n\r\n        that.watchdog = new Watchdog({\r\n            configurator: that\r\n        });\r\n\r\n        if (!that.parent)\r\n        {\r\n            that.$root.one(\r\n                'mb2ls.processedRestrictions',\r\n                function ()\r\n                {\r\n                    setTimeout(function ()\r\n                    {\r\n                        if (that.insertedToDom)\r\n                        {\r\n                            that.maybeUpdateCriticalHtml();\r\n                        } else\r\n                        {\r\n                            that.$root.on('mb2ls.onRootHtmlInserted', function ()\r\n                            {\r\n                                that.maybeUpdateCriticalHtml();\r\n                            });\r\n                        }\r\n                    }, 1000);\r\n                }\r\n            );\r\n        }\r\n\r\n    }\r\n\r\n    getCriticalHtmlArguments()\r\n    {\r\n        const that = this;\r\n        return {\r\n            postId: that.recipe.post.id,\r\n            device: utils.isDesktop() ? 'desktop' : 'mobile',\r\n            criticalHtml: that.getCriticalHtml(),\r\n        }\r\n    }\r\n\r\n    removeCriticalHtml()\r\n    {\r\n        const that = this;\r\n    }\r\n\r\n    maybeUpdateCriticalHtml()\r\n    {\r\n        const that = this;\r\n        if (!that.parent && that.recipe.isAdmin && that.recipe.post.id)\r\n        {\r\n            that.updateCriticalHtmlXhr = utils.rest(\r\n                'POST',\r\n                'configurator/critical-html',\r\n                that.getCriticalHtmlArguments(),\r\n                function ()\r\n                {\r\n\r\n                },\r\n                function (message, response)\r\n                {\r\n                    that.setErrorBoxesMessage(message);\r\n                }\r\n            );\r\n        }\r\n        that.calledMaybeUpdateCriticalHtml = true;\r\n    }\r\n\r\n    getCriticalHtml()\r\n    {\r\n        const that = this;\r\n        const $newRoot = $('<div class=\"mb2ls-conf mb2ls-critical-html\" id=\"mb2ls-conf\">');\r\n        const $content = that.$root.find('>.mb2ls-conf_content');\r\n\r\n        $content.find(':hidden').addClass('mb2ls-tmp-hidden');\r\n        const $clonnedContent = $content.clone();\r\n\r\n        $content.find('.mb2ls-tmp-hidden').removeClass('mb2ls-tmp-hidden');\r\n        $clonnedContent.find('.mb2ls-tmp-hidden').remove();\r\n        $clonnedContent.find('.mb2ls-conf-extractor').remove();\r\n\r\n        $clonnedContent.find('*').each(function ()\r\n        {\r\n            const $subItem = $(this);\r\n            $subItem\r\n                .removeAttr('data-mb2ls-tip')\r\n                .removeAttr('data-key')\r\n                .removeAttr('data-json-key')\r\n                .removeAttr('data-template-id')\r\n                .removeAttr('data-object-name')\r\n                .removeAttr('data-id');\r\n            if ($subItem.attr('sizes')) $subItem.attr('sizes', '50px');\r\n        });\r\n        $clonnedContent.appendTo($newRoot);\r\n        return {\r\n            configurator: $newRoot.get(0).outerHTML,\r\n        };\r\n    }\r\n\r\n    onRootHtmlInserted()\r\n    {\r\n        const that = this;\r\n        if (!that.parent) that.removeCriticalHtml();\r\n        that.$root.trigger('mb2ls.onRootHtmlInserted', that);\r\n        that.$body.trigger('mb2ls.configurator.onRootHtmlInserted', that);\r\n        that.insertedToDom = true;\r\n    }\r\n\r\n    getMedia(id, humanSize)\r\n    {\r\n        const that = this;\r\n        const humanToMediaSize = that.recipe.human_to_media_size_relations;\r\n\r\n        //TODO: use the image from the utils.\r\n        const blankImage = utils.getBlankImageSrc();\r\n\r\n        if (that.recipe.media[id] === undefined)\r\n        {\r\n            console.warn(`Can't find the media (${id}).`);\r\n            return [blankImage, 1, 1, true];\r\n        }\r\n\r\n        //TODO: these lines are not actual now, remove them\r\n        //Adapt to the new thumb size\r\n        if (humanSize === 'thumb' && that.recipe.media[id]['srcs'][humanToMediaSize['mb2ls_300']])\r\n        {\r\n            humanSize = 'mb2ls_300';\r\n        }\r\n\r\n        let media = that.recipe.media[id]['srcs'][humanToMediaSize[humanSize]];\r\n        if (!media) media = that.recipe.media[id]['srcs'][humanToMediaSize['thumb']];\r\n        if (!media)\r\n        {\r\n            console.warn(`Can't find the media (${id}, ${humanToMediaSize['thumb']}).`);\r\n            return [blankImage, 1, 1, true];\r\n        }\r\n        return media;\r\n    }\r\n\r\n    getMediaAttributes(id)\r\n    {\r\n        const that = this;\r\n        let mediaItems;\r\n        let srcset = [];\r\n        if (that.recipe.media[id] && that.recipe.media[id]['srcs']) mediaItems = Object.values(that.recipe.media[id]['srcs']);\r\n        else\r\n        {\r\n            console.warn(`Can't find the media (${id}).`);\r\n            mediaItems = [[utils.getBlankImageSrc(), 1, 1, true]];\r\n        }\r\n        mediaItems.sort(function (a, b)\r\n        {\r\n            return a[1] - b[1];\r\n        });\r\n        for (let key in mediaItems)\r\n        {\r\n            const mediaItem = mediaItems[key];\r\n            const src = `${mediaItem[0]} ${mediaItem[1]}w`;\r\n            if (!srcset.includes(src)) srcset.push(src);\r\n        }\r\n        return {\r\n            id: id,\r\n            src: mediaItems[0][0],\r\n            srcset: srcset.join(','),\r\n\r\n            //For proportions only (prevent a jumping)\r\n            width: mediaItems[0][1],\r\n            height: mediaItems[0][2],\r\n        };\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n\r\n        if (that.parent && that.parent.cartsManager)\r\n        {\r\n            that.parent.cartsManager.detouchFieldsByFields(that.fields);\r\n        }\r\n        that.updateCriticalHtmlXhr && that.updateCriticalHtmlXhr.abort();\r\n        that.watchdog.destroy();\r\n        if (that.processedRestrictionsTimeout) clearTimeout(that.processedRestrictionsTimeout);\r\n        that.summary.destroy();\r\n        that.fields.forEach(function (field)\r\n        {\r\n            field.destroy();\r\n        });\r\n\r\n        that.unsortedElements.forEach(function (element)\r\n        {\r\n            element.destroy();\r\n        });\r\n\r\n        delete that.fields;\r\n        delete that.unsortedElements;\r\n        utils.deepRemove(that.$root);\r\n    }\r\n\r\n    /**\r\n     * @param parentField {Field}\r\n     */\r\n    addParentField(parentField)\r\n    {\r\n        const that = this;\r\n        that.fields.push(new fields.WC_Parent({\r\n            parentField: parentField,\r\n            field: parentField.field,\r\n            fieldContent: parentField.fieldContent,\r\n            recipe: parentField.recipe,\r\n            templateItemRecipe: parentField.templateItemRecipe,\r\n            restrictions: [],\r\n            configurator: that,\r\n            $destination: null,\r\n            onChange: function ()\r\n            {\r\n                that.onChangeField(...arguments);\r\n            }\r\n        }));\r\n    }\r\n\r\n    /**\r\n     * @param {Array.<Field>} fields\r\n     */\r\n    isValid(fields)\r\n    {\r\n        const that = this;\r\n        const $errors = $('<div>');\r\n        let valid = true;\r\n        fields.forEach(function (field)\r\n        {\r\n            if (!field.isEnabledValidator()) return true;\r\n            if (field.isValid()) return true;\r\n\r\n            field.$globalValidatorErrors.appendTo($errors);\r\n            valid = false;\r\n        })\r\n        that.setErrorBoxesMessage($errors.html());\r\n        return valid;\r\n    }\r\n\r\n    renderElements(recipe, $destination)\r\n    {\r\n        const that = this;\r\n        if (Array.isArray(recipe))\r\n        {\r\n            for (const key in recipe)\r\n            {\r\n                that.renderElements(recipe[key], $destination);\r\n            }\r\n        } else if (recipe.type === 'field')\r\n        {\r\n            const $content = that.getTemplateContentField(recipe, $destination);\r\n            if (!$content)\r\n            {\r\n                console.warn(`getTemplateContentField(recipe) returned false`, recipe);\r\n                return;\r\n            }\r\n            $content.appendTo($destination);\r\n        } else if (typeof recipe.type === 'string')\r\n        {\r\n            const type = utils.ucfirst(recipe.type);\r\n            if (!Object.keys(elements).includes(type))\r\n            {\r\n                console.warn(`Requested element type (${type}) isn't available.`);\r\n                return;\r\n            }\r\n            const element = new elements[type](recipe, $destination, that);\r\n\r\n            //Skip Instantiator for child configurators\r\n            if (that.parent && element.constructor.name === 'Instantiator')\r\n            {\r\n                console.warn(`Instantiator should be inside child configurator.`);\r\n                return;\r\n            }\r\n\r\n            element.$root.appendTo($destination);\r\n\r\n            const publicElementsSingle = [\r\n                'productFrame',\r\n                'duplicator',\r\n                'stepsProgress',\r\n                'instantiator',\r\n                'mailchimp',\r\n            ];\r\n            const publicElementsMultiple = {\r\n                stepItem: 'stepsItems',\r\n                html: 'htmls',\r\n                noticeBoxes: 'noticesBoxes',\r\n                errorBox: 'errorsBoxes',\r\n                previousStepButton: 'previousStepButtons',\r\n                nextStepButton: 'nextStepButtons',\r\n                instantiateButton: 'instantiateButtons',\r\n                //instantiatorHolder: 'instantiatorHolders',\r\n                submitButton: 'submitButtons',\r\n                summaryCart: 'summaryCarts',\r\n                holderCart: 'holderCarts',\r\n                productSummary: 'productSummaries',\r\n            };\r\n            if (publicElementsSingle.includes(recipe.type))\r\n            {\r\n                that.elements[recipe.type] = element;\r\n            } else if (Object.keys(publicElementsMultiple).includes(recipe.type))\r\n            {\r\n                const keyName = publicElementsMultiple[recipe.type];\r\n                if (that.elements[keyName] === undefined) that.elements[keyName] = [];\r\n                that.elements[keyName].push(element);\r\n            }\r\n            that.unsortedElements.push(element);\r\n\r\n            that.$root.trigger(`onAddedElement${type}`, element);\r\n            if (recipe.content !== undefined)\r\n            {\r\n                that.renderElements(recipe.content, element.$body ? element.$body : element.$root);\r\n            }\r\n        }\r\n    }\r\n\r\n    initialUpdate(skipProductFrameProductSelector)\r\n    {\r\n        const that = this;\r\n        that.updateTemplatesData();\r\n        that.updateHtmlElementsTemplates();\r\n        that.updateVisibility();\r\n\r\n        that.fields.forEach(function (field)\r\n        {\r\n            if (!skipProductFrameProductSelector && field.templateItemRecipe.productFrameProductSelector)\r\n            {\r\n                const value = field.getData().value;\r\n                if (value) that.elements.productFrame.setProduct(value);\r\n            }\r\n        });\r\n    }\r\n\r\n    toggleProcessing(processing)\r\n    {\r\n        const that = this;\r\n    }\r\n\r\n    updateQuantity()\r\n    {\r\n        const that = this;\r\n        that.templatesData.quantity = that.$quantityInput.val();\r\n    }\r\n\r\n    getTemplateContentField(recipe, $destination)\r\n    {\r\n        const that = this;\r\n        for (let key in that.recipe.fields_content)\r\n        {\r\n            const fieldContent = that.recipe.fields_content[key];\r\n            if (fieldContent.WC_Template_ID__c !== recipe.itemName) continue;\r\n            if (fieldContent.WC_Product__c !== that.recipe.product.Id) continue;\r\n\r\n            if (!that.recipe.fields[fieldContent.WC_Product_Field__c])\r\n            {\r\n                console.warn(`Can't find the field by id (${fieldContent.WC_Product_Field__c})`);\r\n                return false;\r\n            }\r\n            const field = that.recipe.fields[fieldContent.WC_Product_Field__c];\r\n            if (fields[field.Name] === undefined)\r\n            {\r\n                console.warn(`Requested field type (${field.Name}) isn't available. `);\r\n                return false;\r\n            }\r\n            const fieldObj = new fields[field.Name]({\r\n                configurator: that,\r\n                fieldContent: fieldContent,\r\n                field: field,\r\n                recipe: that.recipe,\r\n                templateItemRecipe: recipe,\r\n                restrictions: that.restrictions,\r\n                $destination: $destination,\r\n                onChange: function (field)\r\n                {\r\n                    that.onChangeField(...arguments);\r\n                }\r\n            });\r\n            if (!fieldObj)\r\n            {\r\n                console.warn(`!fieldObj`);\r\n                return false;\r\n            }\r\n            that.fields.push(fieldObj);\r\n            return fieldObj.$root;\r\n        }\r\n        return false;\r\n    }\r\n\r\n    onChangedField()\r\n    {\r\n        const that = this;\r\n        that.updateHtmlElementsTemplates();\r\n        that.updateVisibility();\r\n    }\r\n\r\n    /**\r\n     *\r\n     * @param {Field} field\r\n     */\r\n    onChangeField(field)\r\n    {\r\n        const that = this;\r\n\r\n        if (field.templateItemRecipe.productFrameProductSelector)\r\n        {\r\n            that.elements.productFrame.setProduct(field.getData().value);\r\n        }\r\n\r\n        if (field.getNewVisible())\r\n        {\r\n            const data = field.getData();\r\n            const templateFields = field.getTemplateFields();\r\n            if (Object.keys(templateFields).length)\r\n            {\r\n                $.extend(data, templateFields);\r\n            }\r\n            that.templatesData[field.getKey()] = data;\r\n        } else\r\n        {\r\n            delete that.templatesData[field.getKey()];\r\n        }\r\n        if (!that.updatingVisibility) that.onChangedField();\r\n\r\n\r\n\r\n        // if (\r\n        //     field.templateItemRecipe.productFrameField &&\r\n        //     that.elements.productFrame &&\r\n        //     that.elements.productFrame.productFrameConfigurator\r\n        // )\r\n        // {\r\n        //     that.elements.productFrame.productFrameConfigurator.onChangeField(...arguments);\r\n        // }\r\n    }\r\n\r\n    getTemplateData(templateId)\r\n    {\r\n        const that = this;\r\n        for (let key in that.templatesData)\r\n        {\r\n            const templateData = that.templatesData[key];\r\n            if (templateData && templateData.templateId === templateId) return templateData;\r\n        }\r\n        return false;\r\n    }\r\n\r\n    /**\r\n     * @param {string} templateId\r\n     * @returns {Field}\r\n     * templateId === itemName inside templates\r\n     */\r\n    getFieldByTemplateId(templateId)\r\n    {\r\n        const that = this;\r\n        for (let key in that.fields)\r\n        {\r\n            const field = that.fields[key];\r\n            if (field.getTemplateId() === templateId) return field;\r\n        }\r\n        return false;\r\n    }\r\n\r\n    /**\r\n     * @param {string} fieldKey\r\n     * @returns {Field}\r\n     * templateId === itemName inside templates\r\n     */\r\n    getFieldByKey(fieldKey)\r\n    {\r\n        const that = this;\r\n        for (let key in that.fields)\r\n        {\r\n            const field = that.fields[key];\r\n            if (field.getKey() === fieldKey) return field;\r\n        }\r\n        return false;\r\n    }\r\n\r\n    getElementByTemplateId(templateId)\r\n    {\r\n        const that = this;\r\n        for (let key in that.unsortedElements)\r\n        {\r\n            const element = that.unsortedElements[key];\r\n            if (element.getTemplateId() === templateId) return element;\r\n        }\r\n        return false;\r\n    }\r\n\r\n    onUpdateVisibilityHasChanges()\r\n    {\r\n        const that = this;\r\n        that.updateHtmlElementsTemplates();\r\n    }\r\n\r\n    updateVisibility(silent = false)\r\n    {\r\n        const that = this;\r\n\r\n        that.updatingVisibility = true;\r\n        let watchdogCounter = 20;\r\n        let prevFieldsDataJson = JSON.stringify(that.getFieldsData());\r\n        let hasChanges = false;\r\n\r\n        if (that.watchdog.wasUserInputRecently())\r\n        {\r\n            console.warn(`Called updateVisibility without any actions while ${that.watchdog.timeout} ms. That's strange... `, that);\r\n        }\r\n\r\n        while (watchdogCounter--)\r\n        {\r\n            that.unsortedElements.forEach(function (element)\r\n            {\r\n                element.toggleNewVisibility(true);\r\n            });\r\n            that.fields.forEach(function (field)\r\n            {\r\n                field.toggleNewVisibility(true);\r\n            });\r\n\r\n            for (let restrictionKey in that.recipe.restrictions)\r\n            {\r\n                const restriction = that.recipe.restrictions[restrictionKey];\r\n                let sourceValue = null;\r\n                if (!restriction.Source_Accourdion_Element_Name__c)\r\n                {\r\n                    if (!restriction.Active_for_role__c && !restriction.Active_for_products__c) continue;\r\n                } else\r\n                {\r\n                    const sourceFieldData = that.getTemplateData(restriction.Source_Accourdion_Element_Name__c);\r\n\r\n                    //In case if in use regular template data (https://s.bavi.dev/wicO0/QUdaXamA20.jpg)\r\n                    if (sourceFieldData)\r\n                    {\r\n                        sourceValue = sourceFieldData.value;\r\n                    } else//In case if in use simplified template data, eg. \"isAdmin\" (https://s.bavi.dev/wicO0/rosIzaKU44.jpg)\r\n                    {\r\n                        const templateData = that.templatesData[restriction.Source_Accourdion_Element_Name__c];\r\n                        if (['number', 'string'].includes(typeof templateData))\r\n                        {\r\n                            sourceValue = templateData;\r\n                        }\r\n                    }\r\n                    if (sourceValue === null) continue;\r\n\r\n                    // if (\r\n                    //     //     restriction.Source_Accourdion_Element_Name__c === 'Modell' &&\r\n                    //     restriction.Sink_Accordion_Element_Name_s__c === \"Height.value\"// &&\r\n                    //     //     that.parent\r\n                    // )\r\n                    // {\r\n                    //     console.log(\r\n                    //         'restriction',\r\n                    //         utils.split(restriction.Source_Element_Value_s__c),\r\n                    //         sourceValue,\r\n                    //         utils.split(restriction.Source_Element_Value_s__c).includes(sourceValue),\r\n                    //         restriction,\r\n                    //         element\r\n                    //     );\r\n                    // }\r\n\r\n                    //TODO: execute utils.split only once\r\n                    if (!utils.split(restriction.Source_Element_Value_s__c).includes(sourceValue)) continue;\r\n                }\r\n\r\n\r\n                //TODO: execute utils.split only once\r\n                const sinkTemplatesIds = utils.split(restriction.Sink_Accordion_Element_Name_s__c);\r\n\r\n                for (let sinkTemplateIdKey in sinkTemplatesIds)\r\n                {\r\n                    const sinkTemplateId = sinkTemplatesIds[sinkTemplateIdKey];\r\n                    const field = that.getFieldByTemplateId(sinkTemplateId);\r\n                    if (field)\r\n                    {\r\n                        field.enqueueRestriction(restriction);\r\n                    } else\r\n                    {\r\n                        const element = that.getElementByTemplateId(sinkTemplateId);\r\n                        if (element) element.enqueueRestriction(restriction);\r\n                    }\r\n                }\r\n            }\r\n\r\n            that.unsortedElements.forEach(function (element)\r\n            {\r\n                element.processRestrictions();\r\n                element.cleanRestrictions();\r\n                element.renderVisibility(silent);\r\n            });\r\n\r\n            that.fields.forEach(function (field)\r\n            {\r\n                field.processRestrictions();\r\n                field.cleanRestrictions();\r\n                field.renderVisibility(silent);\r\n            });\r\n\r\n            let newFieldsDataJson = JSON.stringify(that.getFieldsData());\r\n            if (prevFieldsDataJson !== newFieldsDataJson)\r\n            {\r\n                prevFieldsDataJson = newFieldsDataJson;\r\n                hasChanges = true;\r\n            }\r\n        }\r\n        if (!watchdogCounter) console.warn('Triggered watchdogCounter...');\r\n        if (hasChanges && !silent) that.onUpdateVisibilityHasChanges();\r\n        that.updatingVisibility = false;\r\n\r\n        if (!silent)\r\n        {\r\n            if (that.processedRestrictionsTimeout !== null) clearTimeout(that.processedRestrictionsTimeout);\r\n\r\n            //\"clearTimeout\" is in \"destroy\"\r\n            that.processedRestrictionsTimeout = setTimeout(function ()\r\n            {\r\n                that.$root.trigger('mb2ls.processedRestrictions', that);\r\n                that.$body.trigger('mb2ls.processedRestrictions', that);\r\n            }, 500);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @return {Array.<ErrorBox>}\r\n     */\r\n    getErrorsBoxes()\r\n    {\r\n        const that = this;\r\n        if (that.elements.errorsBoxes.length) return that.elements.errorsBoxes;\r\n        if (that.parent && that.parent.elements.errorsBoxes.length) return that.parent.elements.errorsBoxes;\r\n        return [];\r\n    }\r\n\r\n    /**\r\n     * @return {Array.<NoticeBox>}\r\n     */\r\n    getNoticeBoxes()\r\n    {\r\n        const that = this;\r\n        if (that.elements.noticesBoxes.length) return that.elements.noticesBoxes;\r\n        if (that.parent && that.parent.elements.noticesBoxes.length) return that.parent.elements.noticesBoxes;\r\n        return [];\r\n    }\r\n\r\n    setErrorBoxesMessage(message)\r\n    {\r\n        const that = this;\r\n        if (that.parent)\r\n        {\r\n            that.setErrorBoxesMessage(message);\r\n            return;\r\n        }\r\n        const errorBoxes = that.getErrorsBoxes();\r\n        errorBoxes.forEach(function (errorBox)\r\n        {\r\n            errorBox.setText(message);\r\n        });\r\n        if (!errorBoxes.length && message) alert(message);\r\n        return !!errorBoxes.length;\r\n    }\r\n\r\n    setNoticeBoxesMessage(message)\r\n    {\r\n        const that = this;\r\n        if (that.parent)\r\n        {\r\n            that.parent.setNoticeBoxesMessage(message);\r\n            return;\r\n        }\r\n        const noticeBoxes = that.getNoticeBoxes();\r\n        noticeBoxes.forEach(function (noticeBox)\r\n        {\r\n            noticeBox.setText(message);\r\n        });\r\n        if (!noticeBoxes.length && message) alert(message);\r\n        return !!noticeBoxes.length;\r\n    }\r\n\r\n    cleanUnreservedTemplatesData()\r\n    {\r\n        const that = this;\r\n        for (let key in that.templatesData)\r\n        {\r\n            if ($.inArray(key, that.templatesDataReserved) === -1)\r\n            {\r\n                delete that.templatesData[key];\r\n            }\r\n        }\r\n    }\r\n\r\n    onUpdatedTemplatesData()\r\n    {\r\n        const that = this;\r\n    }\r\n\r\n    updateTemplatesData()\r\n    {\r\n        const that = this;\r\n        that.cleanUnreservedTemplatesData();\r\n        $.extend(true, that.templatesData, that.getFieldsData());\r\n        that.onUpdatedTemplatesData();\r\n    }\r\n\r\n    formatTemplateOutput(name, value)\r\n    {\r\n        return value;\r\n    }\r\n\r\n    getTemplateValue(inputValue, keyParts, index)\r\n    {\r\n        const that = this;\r\n        let value = $.extend(true, {}, inputValue);\r\n        if (typeof value === 'object') value = value[keyParts[index]];\r\n        if (value === undefined) return '';\r\n        if (typeof value === 'object') return that.getTemplateValue(value, keyParts, index + 1);\r\n        return value;\r\n    }\r\n\r\n    updateHtmlElementsTemplates()\r\n    {\r\n        const that = this;\r\n        for (let key in that.elements.htmls)\r\n        {\r\n            const htmlElement = that.elements.htmls[key];\r\n            const newHtml = htmlElement.template.replace(/{{([^{{}}]+)}}/g, function (keyExpr, key)\r\n            {\r\n                return that.formatTemplateOutput(\r\n                    key,\r\n                    that.getTemplateValue(that.templatesData, key.split('.'), 0)\r\n                );\r\n            });\r\n            if (htmlElement.html !== newHtml) htmlElement.set(newHtml);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @param {Object} fieldsData\r\n     * @return {string}\r\n     */\r\n    getPriceAdditionObjects(fieldsData)\r\n    {\r\n        const that = this;\r\n        let additionalObjectsArray = [];\r\n        for (let key in fieldsData)\r\n        {\r\n            const fieldData = fieldsData[key];\r\n            if (fieldData.priceAdditionObjects.length)\r\n            {\r\n                additionalObjectsArray = additionalObjectsArray.concat(fieldData.priceAdditionObjects);\r\n            }\r\n        }\r\n        return additionalObjectsArray.join(';');\r\n    }\r\n\r\n    /**\r\n     * @param {Object} fieldsData\r\n     * @return {Object}\r\n     */\r\n    removePriceAdditionObjects(fieldsData)\r\n    {\r\n        const fieldsDataNew = $.extend(true, {}, fieldsData);\r\n        for (let key in fieldsDataNew)\r\n        {\r\n            delete fieldsDataNew[key].priceAdditionObjects;\r\n        }\r\n        return fieldsDataNew;\r\n    }\r\n\r\n    getComplexData(source = null)\r\n    {\r\n        const that = this;\r\n        const complexData = {\r\n            fields: that.getFieldsData(true, source),\r\n            hiddenAttributes: that.hiddenAttributes,\r\n        };\r\n\r\n        //TODO: make sure this element is needed in form, if no - remove it from here\r\n        if (source !== 'price') complexData.summaryItems = that.summary.getUiItems();\r\n\r\n        if (that.elements.instantiator && !that.parent)\r\n        {\r\n            that.elements.instantiator.collectInstanceData();\r\n            complexData[that.elements.instantiator.jsonKey] = that.elements.instantiator.getInstancesData();\r\n        }\r\n        if (that.elements.mailchimp && !that.parent && that.elements.mailchimp.getAudienceName())\r\n        {\r\n            const mailchimp = that.elements.mailchimp;\r\n            complexData.mailchimp = {\r\n                tags: mailchimp.getTags(),\r\n                audienceName: mailchimp.getAudienceName(),\r\n            };\r\n        }\r\n        return complexData;\r\n    }\r\n\r\n    getCartData()\r\n    {\r\n        const data = $.extend(true, {}, this.getComplexData());\r\n        data.productName = this.recipe.product.Name;\r\n        data.sfProductId = this.recipe.product.Product__c;\r\n        data.pricebookId = this.recipe.product.Price_Book__c;\r\n        data.pricebookEntryId = this.recipe.product.PricebookEntryId__c;\r\n        return data;\r\n    }\r\n\r\n    prepareHiddenAttributes(hiddenAttributesJson)\r\n    {\r\n        return hiddenAttributesJson ? JSON.parse(hiddenAttributesJson) : {};\r\n    }\r\n\r\n    //Only for product objects\r\n    getProductAttributes(key)\r\n    {\r\n        const that = this;\r\n        if (!that.recipe.depandencies['WC_Product__c']) return null;\r\n        const productDependency = that.recipe.depandencies['WC_Product__c'][key];\r\n\r\n        return {\r\n            productName: productDependency.Name,\r\n            hiddenAttributes: that.prepareHiddenAttributes(productDependency.Hidden_Attributes_JSON__c),\r\n            pricebookId: productDependency.Price_Book__c,\r\n            pricebookEntryId: productDependency.PricebookEntryId__c,\r\n            product2Id: productDependency.Product__c,\r\n            uniZwoProductId: productDependency.WC_Product_Id__c ? productDependency.WC_Product_Id__c : null,\r\n        }\r\n    }\r\n\r\n    getFieldsData(skipInsideInstantiator = false, source = null)\r\n    {\r\n        const that = this;\r\n        const data = {};\r\n        that.fields.forEach(function (field)\r\n        {\r\n            if (skipInsideInstantiator && field.insideInstantiator) return true;\r\n            if (field.getNewVisible() || (source === 'price' && field.isForcedUsingForPriceApi()))\r\n            {\r\n                data[field.getKey()] = field.getData();\r\n            }\r\n        });\r\n        return data;\r\n    }\r\n\r\n    /**\r\n     * @return {Array.<RatioOptionsClassic|RatioOptionsCustom>}\r\n     */\r\n    getVisibleRadioFields()\r\n    {\r\n        const that = this;\r\n        const fields = [];\r\n        that.fields.forEach(function (field)\r\n        {\r\n            if (['RatioOptionsClassic', 'RatioOptionsCustom'].includes(field.constructor.name) && field.newVisible)\r\n            {\r\n                fields.push(field);\r\n            }\r\n        });\r\n        return fields;\r\n    }\r\n\r\n    toggleActionsOpportunity(allowed)\r\n    {\r\n        const that = this;\r\n        if (that.parent)\r\n        {\r\n            that.parent.toggleActionsOpportunity(allowed);\r\n            return;\r\n        }\r\n        that.$root.toggleClass('mb2ls-conf--actions-disallowed', !allowed);\r\n\r\n        // const elementsNames = [\r\n        //     'nextStepButtons',\r\n        //     'instantiateButtons',\r\n        //     'submitButtons',\r\n        //     'previousStepButtons',\r\n        // ];\r\n        // elementsNames.forEach(function (elementName)\r\n        // {\r\n        //     if (!that.elements[elementName]) return;\r\n        //     let elements = that.elements[elementName];\r\n        //     if (!Array.isArray(elements)) elements = [elements];\r\n        //     elements.forEach(function (element)\r\n        //     {\r\n        //         element.toggleActionsOppartunity(allowed);\r\n        //     });\r\n        // });\r\n        //\r\n        // that.fields.forEach(function (field)\r\n        // {\r\n        //     if (field.templateItemRecipe.productFrameField)\r\n        //     {\r\n        //         field.toggleActionsOppartunity(allowed);\r\n        //     }\r\n        // });\r\n    }\r\n\r\n    getProductName()\r\n    {\r\n        const that = this;\r\n        return that.recipe.product.Name;\r\n    }\r\n}\r\n\r\nmodule.exports = Configurator;\r\n\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/configurator.js","module.exports = { \"default\": require(\"core-js/library/fn/object/keys\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/keys.js\n// module id = 47\n// module chunks = 2","module.exports = { \"default\": require(\"core-js/library/fn/object/values\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/values.js\n// module id = 48\n// module chunks = 2","require('./radio-options.scss');\r\nconst Field = require('../field.js');\r\nconst utils = require('public/utils.js');\r\n\r\n/**\r\n * @property {Array.<RadioOption>} options\r\n */\r\nclass RadioOptions extends Field {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.type = that.getType();\r\n        that.optionsValues = utils.split(that.fieldContent.WC_Variation_Values__c);\r\n        that.optionsUiValues = utils.split(that.fieldContent.WC_Variation_UI_Values__c);\r\n        that.multiple = that.fieldContent.WC_Multiple__c;\r\n        that.maxSelection = that.fieldContent.WC_Radio_Options_Max_Selection__c;\r\n\r\n        //Get values that aren't available insider field data but is available inside restriction\r\n        that.restrictedOptionsValues = that.restrictions.getSinkPossibleValuesBySinkTemplate(\r\n            that.fieldContent.WC_Template_ID__c, 'Enable Elements'\r\n        );\r\n\r\n        //Add restricted options only if it's unique\r\n        that.restrictedOptionsValues.forEach(function (value)\r\n        {\r\n            if (!that.optionsValues.includes(value)) that.optionsValues.push(value);\r\n        });\r\n\r\n        that.$options = $();\r\n        that.options = [];\r\n\r\n        that.optionsValues.forEach(function (key, index)\r\n        {\r\n            let uiValue = that.optionsUiValues[index];\r\n            if(uiValue === undefined)uiValue = key;\r\n            const option = that.createNewOption(key, uiValue);\r\n            if (!option) return;\r\n\r\n            option.$root.appendTo(that.$content);\r\n            that.$options = that.$options.add(option.$root);\r\n            that.options.push(option);\r\n\r\n            if (utils.isDebugMode()) option.$root.attr('data-object-name', that.fieldContent.WC_Object_Name__c);\r\n        });\r\n        that.resetValue();\r\n    }\r\n\r\n    getStyle()\r\n    {\r\n        const that = this;\r\n        return that.templateItemRecipe.style ? utils.lcfirst(that.templateItemRecipe.style) : null;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'classic';\r\n    }\r\n\r\n    resetValue()\r\n    {\r\n        const that = this;\r\n        if (that.setValue(that.defaultValue)) return;\r\n        if (that.templateItemRecipe.noChoiceDefault) return;\r\n\r\n        const option = that.getFirstVisibleOption();\r\n        if (option) option.setActive();\r\n    }\r\n\r\n    getFirstVisibleOption()\r\n    {\r\n        const that = this;\r\n        for (let key in that.options)\r\n        {\r\n            const option = that.options[key];\r\n            if (option.newVisible) return option;\r\n        }\r\n        return false;\r\n    }\r\n\r\n    hasImage()\r\n    {\r\n        return false;\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return 'radio-options';\r\n    }\r\n\r\n    /**\r\n     *\r\n     * @returns Array.<RadioOption>\r\n     */\r\n    getActiveOptions()\r\n    {\r\n        const that = this;\r\n        const options = [];\r\n        const $options = that.$root.find('.mb2ls-conf-field-radio-options__option--active');\r\n        $options.each(function ()\r\n        {\r\n            const option = $(this).data('mb2lsOption');\r\n            if (!option)\r\n            {\r\n                console.warn(`The $(this).data('mb2lsOption') is undefined. `, option, $(this), that.configurator);\r\n                return true;\r\n            }\r\n            if (option.newVisible) options.push(option);\r\n        });\r\n        return options;\r\n    }\r\n\r\n    getDepName()\r\n    {\r\n        const that = this;\r\n        const options = that.getActiveOptions();\r\n        if (!options.length) return null;\r\n\r\n        return options[0].getDepName();\r\n    }\r\n\r\n    getValue(raw = false)\r\n    {\r\n        const that = this;\r\n        const options = that.getActiveOptions();\r\n        if (!options.length) return null;\r\n\r\n        const values = [];\r\n        options.forEach(function (option)\r\n        {\r\n            values.push(option.getValue(raw));\r\n        });\r\n        return values.join(';');\r\n    }\r\n\r\n    //For mb2ls.configurator.templatesData\r\n    getTemplateFields()\r\n    {\r\n        const that = this;\r\n        const options = that.getActiveOptions();\r\n        if (!options.length) return {};\r\n\r\n        return options[0].getTemplateFields();\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        const options = that.getActiveOptions();\r\n        if (!options.length) return null;\r\n\r\n        const values = [];\r\n        options.forEach(function (option)\r\n        {\r\n            values.push(option.getUiValue());\r\n        });\r\n        return values.join(', ');\r\n    }\r\n\r\n    getPriceAdditionObjects()\r\n    {\r\n        const that = this;\r\n        const options = that.getActiveOptions();\r\n        if (!options.length) return [];\r\n\r\n        let priceAdditionObjects = [];\r\n        options.forEach(function (option)\r\n        {\r\n            priceAdditionObjects = priceAdditionObjects.concat(option.getPriceAdditionObjects());\r\n        });\r\n        return priceAdditionObjects;\r\n    }\r\n\r\n    /**\r\n     * @param value\r\n     * @return {RadioOption}\r\n     */\r\n    getOption(value)\r\n    {\r\n        const that = this;\r\n        for (let key in that.options)\r\n        {\r\n            /**\r\n             * @type {RadioOptionCustom}\r\n             */\r\n            const option = that.options[key];\r\n\r\n            //To compatibility with old data to prevent problems with loading old defaults values\r\n            if (!option.$root) continue;\r\n            if (value === option.$root.attr('data-key')) return option;\r\n\r\n            if (value === option.getValue()) return option;\r\n        }\r\n        return undefined;\r\n    }\r\n\r\n    setValue(key, force = false)\r\n    {\r\n        const that = this;\r\n        if (!force && !utils.isValidStr(that.defaultValue)) return false;\r\n\r\n        const option = that.getOption(key);\r\n        if (option && (option.newVisible || force))\r\n        {\r\n            option.setActive();\r\n            return true;\r\n        }\r\n        return false;\r\n    }\r\n\r\n    //Hide/show options depending on restrictions\r\n    processRestrictions()\r\n    {\r\n        const that = this;\r\n        super.processRestrictions();\r\n\r\n        //In Summary we simulate \"isAdmin = false\" to get the same result for admins and visitors,\r\n        //but we should ignore the simulations for options, otherwise the admin won't be able to select admins options\r\n        if (that.configurator.summary.simulatingNonAdmin) return;\r\n\r\n        let enabledOptionsValues = [];\r\n        let allowedOptionsValues = [];\r\n        let disabledOptionsValues = [];\r\n\r\n        that.options.forEach(function (option)\r\n        {\r\n            option.toggleNewVisibility(true);\r\n        });\r\n\r\n        that.restrItems.forEach(function (restriction)\r\n        {\r\n            const possibleValues = utils.split(restriction.Sink_Possible_Value_s__c);\r\n            switch (restriction.Sink_Action__c)\r\n            {\r\n                case 'Allow Elements':\r\n                    allowedOptionsValues = allowedOptionsValues.concat(possibleValues);\r\n                    break;\r\n                case 'Enable Elements':\r\n                    enabledOptionsValues = enabledOptionsValues.concat(possibleValues);\r\n                    break;\r\n                case 'Disable Elements':\r\n                    disabledOptionsValues = disabledOptionsValues.concat(possibleValues);\r\n                    break;\r\n                default:\r\n                    console.warn('Unsupported Sink_Action__c:', restriction.Sink_Action__c, restriction);\r\n            }\r\n        });\r\n\r\n        // if (that.getTemplateId() === 'Kante')\r\n        // {\r\n        //     console.group('EckradiusAuswahl');\r\n        //     console.log('that.restrItems', that.restrItems);\r\n        //     console.log('allowedOptionsValues', allowedOptionsValues);\r\n        //     console.log('enabledOptionsValues', enabledOptionsValues);\r\n        //     console.log('disabledOptionsValues', disabledOptionsValues);\r\n        //     console.groupEnd();\r\n        // }\r\n\r\n        if (allowedOptionsValues.length)\r\n        {\r\n            that.options.forEach(function (option)\r\n            {\r\n                if (!allowedOptionsValues.includes(option.key))\r\n                {\r\n                    option.toggleNewVisibility(false);\r\n                }\r\n            });\r\n        }\r\n\r\n        //Hide restriced options they don't available inside muched restrictions\r\n        that.restrictedOptionsValues.forEach(function (restrictedOptionValue)\r\n        {\r\n            const option = that.getOption(restrictedOptionValue);\r\n            if (option === undefined)\r\n            {\r\n                //console.warn('There is no option for restrictedOptionValue', restrictedOptionValue, that);\r\n                return true;\r\n            }\r\n            option.toggleNewVisibility(enabledOptionsValues.includes(restrictedOptionValue));\r\n        });\r\n\r\n        if (disabledOptionsValues.length)\r\n        {\r\n            that.options.forEach(function (option)\r\n            {\r\n                if (disabledOptionsValues.includes(option.key))\r\n                {\r\n                    option.toggleNewVisibility(false);\r\n                }\r\n            });\r\n        }\r\n\r\n        if (!that.getActiveOptions().length) that.resetValue();\r\n\r\n        //Hide the field if it doesn't contain any visible options\r\n        if (!that.getFirstVisibleOption()) that.toggleNewVisibility(false);\r\n    }\r\n\r\n    renderVisibility(silent = false)\r\n    {\r\n        const that = this;\r\n\r\n        //In Summary we simulate \"isAdmin = false\" to get the same result for admins and visitors,\r\n        //but we should ignore the simulations for options, otherwise the admin won't be able to select admins options\r\n        if (!that.configurator.summary.simulatingNonAdmin)\r\n        {\r\n            that.options.forEach(function (option)\r\n            {\r\n                option.renderVisibility(silent);\r\n            });\r\n        }\r\n\r\n        super.renderVisibility(silent);\r\n    }\r\n}\r\n\r\nmodule.exports = RadioOptions;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options.js","const utils = require('public/utils.js');\r\n\r\n/**\r\n * @property {RadioOptions} field\r\n */\r\nclass RadioOption {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.args = args;\r\n        that.field = args.field;\r\n        that.newVisible = true;\r\n        that.visible = true;\r\n        that.key = args.key;\r\n        that.multiple = args.multiple;\r\n        that.uiValue = args.uiValue;\r\n    }\r\n\r\n    getTitle()\r\n    {\r\n        const that = this;\r\n        return that.getUiValue();\r\n    }\r\n\r\n    isTooltipEnabled()\r\n    {\r\n        const that = this;\r\n        if (!utils.isDesktop()) return false;\r\n\r\n        if (that.field.templateItemRecipe.optionsTooltipsEnabled !== undefined)\r\n        {\r\n            return that.field.templateItemRecipe.optionsTooltipsEnabled;\r\n        }\r\n        return true;\r\n    }\r\n\r\n    getValue()\r\n    {\r\n        const that = this;\r\n        return that.args.key;\r\n    }\r\n\r\n    //For mb2ls.configurator.templatesData\r\n    getTemplateFields()\r\n    {\r\n        const that = this;\r\n        const fields = {};\r\n        if (!that.depOption) return {};\r\n\r\n        for (let key in that.depOption)\r\n        {\r\n            const value = that.depOption[key];\r\n            const templateFieldKey = utils.lcfirst(key.replace(/__c$/, '').replace(/^Template_Field_/, ''));\r\n            if (/^Template_Field_/.test(key)) fields[templateFieldKey] = value;\r\n        }\r\n        return fields;\r\n    }\r\n\r\n    getPriceAdditionObjects()\r\n    {\r\n        const that = this;\r\n        if (that.depOption && utils.isValidStr(that.depOption.Price_Addition_Object_Names__c)) return that.depOption.Price_Addition_Object_Names__c.split(';');\r\n        return [];\r\n    }\r\n\r\n    getDepName()\r\n    {\r\n        const that = this;\r\n        return that.args.key;\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        return that.uiValue !== undefined ? that.uiValue : that.getValue();\r\n    }\r\n\r\n    setActive()\r\n    {\r\n        const that = this;\r\n        that.toggle(true);\r\n    }\r\n\r\n    isActive()\r\n    {\r\n        const that = this;\r\n\r\n        //TODO: use a property instead of hasClass\r\n        return that.$root.hasClass(that.getActiveClass().split(' ')[0]);\r\n    }\r\n\r\n    toggle(active)\r\n    {\r\n        const that = this;\r\n        if (!that.multiple && active)\r\n        {\r\n            //TODO: use \"toggle\" instead of removeClass\r\n            that.field.$options.removeClass(that.getActiveClass());\r\n        }\r\n        that.$root.toggleClass(that.getActiveClass(), active);\r\n    }\r\n\r\n    getActiveClass()\r\n    {\r\n        return 'mb2ls-conf-field-radio-options__option--active';\r\n    }\r\n\r\n    toggleNewVisibility(visible)\r\n    {\r\n        const that = this;\r\n        that.newVisible = visible;\r\n    }\r\n\r\n    renderVisibility(silent = false)\r\n    {\r\n        const that = this;\r\n        if (that.newVisible === that.visible) return;\r\n\r\n        that.visible = that.newVisible;\r\n        that.$root.css('display', that.visible ? '' : 'none');\r\n        if (!that.visible) that.$root.removeClass(that.getActiveClass());\r\n        if (!silent) that.field.onChange();\r\n    }\r\n\r\n    getImageId()\r\n    {\r\n        const that = this;\r\n        if (that.depOption.Image_URL_Wordpress__c) return that.depOption.Image_URL_Wordpress__c;\r\n        if (that.depOption.Default_Images__c)\r\n        {\r\n            return utils.split(that.depOption.Default_Images__c)[0];\r\n        }\r\n        return null;\r\n    }\r\n}\r\n\r\nmodule.exports = RadioOption;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option.js","require('./sticky-panel.scss');\r\nconst Element = require('../element.js');\r\n\r\nclass StickyPanel extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $(`<div class=\"mb2ls-conf-sticky-panel mb2ls-conf-sticky-panel--${that.getPosition()}\">`);\r\n        that.$body = $(`<div class=\"container\" style=\"padding: 0;\">`);\r\n        that.$body.appendTo(that.$root);\r\n        that.afterRootInit();\r\n    }\r\n\r\n    getPosition()\r\n    {\r\n        return '';\r\n    }\r\n}\r\n\r\nmodule.exports = StickyPanel;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/sticky-panel/sticky-panel.js","require('./cart.scss');\r\nconst utils = require('public/utils.js');\r\nconst Element = require('../element.js');\r\n\r\n/**\r\n * @property {Array.<CartItem>} cartItems\r\n * @property {Configurator} configurator\r\n * @property {CartsManger} cartsManager\r\n */\r\nclass Cart extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-cart\">');\r\n        that.$content = $('<div class=\"mb2ls-conf-cart__content\">');\r\n        that.$footer = $('<div class=\"mb2ls-conf-cart__footer\">');\r\n        that.$root.addClass(`mb2ls-conf-cart--${that.getType()}`);\r\n        that.$content.appendTo(that.$root);\r\n        that.$footer.appendTo(that.$root);\r\n    }\r\n\r\n    getCartItemClass()\r\n    {\r\n        console.warn('getCartItemClass() should be owerwrote by a child class.');\r\n    }\r\n\r\n    setFooterHtml(html)\r\n    {\r\n        const that = this;\r\n        that.$footer.html(html);\r\n        if (html) that.$footer.toggleClass('mb2ls-conf-cart__footer--visible');\r\n    }\r\n}\r\n\r\nmodule.exports = Cart;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/cart/cart.js","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n  O = toObject(O);\n  if (has(O, IE_PROTO)) return O[IE_PROTO];\n  if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n    return O.constructor.prototype;\n  } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gpo.js\n// module id = 56\n// module chunks = 2","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n  aFunction(fn);\n  if (that === undefined) return fn;\n  switch (length) {\n    case 1: return function (a) {\n      return fn.call(that, a);\n    };\n    case 2: return function (a, b) {\n      return fn.call(that, a, b);\n    };\n    case 3: return function (a, b, c) {\n      return fn.call(that, a, b, c);\n    };\n  }\n  return function (/* ...args */) {\n    return fn.apply(that, arguments);\n  };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ctx.js\n// module id = 57\n// module chunks = 2","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n  return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ie8-dom-define.js\n// module id = 58\n// module chunks = 2","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n  return is ? document.createElement(it) : {};\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_dom-create.js\n// module id = 59\n// module chunks = 2","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n  $iterCreate(Constructor, NAME, next);\n  var getMethod = function (kind) {\n    if (!BUGGY && kind in proto) return proto[kind];\n    switch (kind) {\n      case KEYS: return function keys() { return new Constructor(this, kind); };\n      case VALUES: return function values() { return new Constructor(this, kind); };\n    } return function entries() { return new Constructor(this, kind); };\n  };\n  var TAG = NAME + ' Iterator';\n  var DEF_VALUES = DEFAULT == VALUES;\n  var VALUES_BUG = false;\n  var proto = Base.prototype;\n  var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n  var $default = $native || getMethod(DEFAULT);\n  var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n  var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n  var methods, key, IteratorPrototype;\n  // Fix native\n  if ($anyNative) {\n    IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n    if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n      // Set @@toStringTag to native iterators\n      setToStringTag(IteratorPrototype, TAG, true);\n      // fix for some old engines\n      if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n    }\n  }\n  // fix Array#{values, @@iterator}.name in V8 / FF\n  if (DEF_VALUES && $native && $native.name !== VALUES) {\n    VALUES_BUG = true;\n    $default = function values() { return $native.call(this); };\n  }\n  // Define iterator\n  if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n    hide(proto, ITERATOR, $default);\n  }\n  // Plug for library\n  Iterators[NAME] = $default;\n  Iterators[TAG] = returnThis;\n  if (DEFAULT) {\n    methods = {\n      values: DEF_VALUES ? $default : getMethod(VALUES),\n      keys: IS_SET ? $default : getMethod(KEYS),\n      entries: $entries\n    };\n    if (FORCED) for (key in methods) {\n      if (!(key in proto)) redefine(proto, key, methods[key]);\n    } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n  }\n  return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-define.js\n// module id = 60\n// module chunks = 2","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_redefine.js\n// module id = 61\n// module chunks = 2","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n  var O = toIObject(object);\n  var i = 0;\n  var result = [];\n  var key;\n  for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n  // Don't enum bug & hidden keys\n  while (names.length > i) if (has(O, key = names[i++])) {\n    ~arrayIndexOf(result, key) || result.push(key);\n  }\n  return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys-internal.js\n// module id = 62\n// module chunks = 2","var toString = {}.toString;\n\nmodule.exports = function (it) {\n  return toString.call(it).slice(8, -1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_cof.js\n// module id = 63\n// module chunks = 2","exports.f = Object.getOwnPropertySymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gops.js\n// module id = 64\n// module chunks = 2","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n  return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn.js\n// module id = 65\n// module chunks = 2","const utils = require('public/utils.js');\r\n\r\n/**\r\n * @property {Common} parent\r\n */\r\nclass Common {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.args = args;\r\n        that.newVisible = true;\r\n        that.restrItems = [];\r\n        that.visible = true;\r\n        that.parent = null;\r\n        that.eId = utils.generateEventId();\r\n\r\n        //Needs to hide elements by non-restriction, ignores if is null\r\n        that.forceVisible = null;\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        if (that.$root) utils.deepRemove(that.$root);\r\n    }\r\n\r\n    enqueueRestriction(restriction)\r\n    {\r\n        const that = this;\r\n        that.restrItems.push(restriction);\r\n    }\r\n\r\n    toggleNewVisibility(visible)\r\n    {\r\n        const that = this;\r\n        that.newVisible = visible;\r\n    }\r\n\r\n    processRestrictions()\r\n    {\r\n        const that = this;\r\n\r\n        if (\r\n            that.templateItemRecipe &&\r\n            (\r\n                that.templateItemRecipe.defaultHidden ||\r\n                (!that.configurator.recipe.isAdmin && that.templateItemRecipe.defaultHiddenExceptAdmin)\r\n            )\r\n        )\r\n        {\r\n            that.toggleNewVisibility(false);\r\n        }\r\n\r\n        that.restrItems.forEach(function (restriction)\r\n        {\r\n            const possibleValues = utils.split(restriction.Sink_Possible_Value_s__c);\r\n\r\n            switch (restriction.Sink_Action__c)\r\n            {\r\n                case 'Disable Elements':\r\n                    if (that.configurator.debug.restrictions)\r\n                    {\r\n                        if (that.visible)\r\n                        {\r\n                            console.group('Disable Elements');\r\n                            console.log('restriction: ', restriction);\r\n                            console.log('itemName:', that.getTemplateId());\r\n                            console.groupEnd();\r\n                        }\r\n                    }\r\n\r\n                    //In case when we would like to disable whole field. Other cases process by child's fields, eg. options of RadioOption field\r\n                    if (!possibleValues.length) that.toggleNewVisibility(false);\r\n                    break;\r\n\r\n                //Is available only for options of RadioOption field\r\n                case 'Allow Elements':\r\n                    break;\r\n\r\n                case 'Enable Elements':\r\n\r\n                    //In case when we would like to disable whole field. Other cases process by child's fields, eg. options of RadioOption field\r\n                    if (!possibleValues.length) that.toggleNewVisibility(true);\r\n\r\n                    break;\r\n            }\r\n        });\r\n    }\r\n\r\n    cleanRestrictions()\r\n    {\r\n        const that = this;\r\n        that.restrItems = [];\r\n    }\r\n\r\n    renderVisibility(silent = false)\r\n    {\r\n        const that = this;\r\n        const newVisible = that.getNewVisible();\r\n        if (newVisible === that.visible) return;\r\n\r\n        that.newVisible = that.visible = newVisible;\r\n        that.$root.css('display', that.visible ? '' : 'none');\r\n        if (!silent) that.onChange();\r\n    }\r\n\r\n    onChange()\r\n    {\r\n        const that = this;\r\n        if (typeof that.args.onChange === 'function') that.args.onChange(that);\r\n        if (that.$root) that.$root.trigger('mb2lsChange');\r\n    }\r\n\r\n    getNewVisible()\r\n    {\r\n        const that = this;\r\n        if (that.forceVisible !== null) return that.forceVisible;\r\n        let newVisible = null;\r\n        if (that.parent) newVisible = that.parent.getNewVisible();\r\n        // if (that.parent && !newVisible)\r\n        // {\r\n        //     console.log(\r\n        //         'newVisible', newVisible,\r\n        //         'that.getTemplateId()', that.getTemplateId(),\r\n        //         'that.parent.getTemplateId()', that.parent.getTemplateId(),\r\n        //         'that.$root', that.$root\r\n        //     );\r\n        // }\r\n        if (that.parent && !newVisible)\r\n        {\r\n            return false;\r\n        }\r\n        return that.newVisible;\r\n    }\r\n}\r\n\r\nmodule.exports = Common;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/common.js","require('./radio-options-switch.scss');\r\nconst RatioOptions = require('./radio-options.js');\r\nconst RadioOptionSwitch = require('./radio-option-switch.js');\r\n\r\nclass RatioOptionsSwitch extends RatioOptions {\r\n\r\n    constructor(props)\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root.addClass(that.getClass());\r\n        that.afterConstructorsInit();\r\n    }\r\n\r\n    getClass()\r\n    {\r\n        return 'mb2ls-conf-field-radio-options--switch';\r\n    }\r\n\r\n    createNewOption(key, uiValue)\r\n    {\r\n        const that = this;\r\n        return new RadioOptionSwitch({\r\n            uiValue: uiValue,\r\n            key: key,\r\n            recipe: that.recipe,\r\n            field: that,\r\n            multiple: that.multiple,\r\n            onChange: function ()\r\n            {\r\n                that.onChange();\r\n            }\r\n        });\r\n    }\r\n}\r\n\r\nmodule.exports = RatioOptionsSwitch;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-switch.js","const utils = require('public/utils.js');\r\nconst RadioOption = require('./radio-option.js');\r\n\r\nclass RadioOptionSwitch extends RadioOption {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.title = that.getTitle();\r\n        that.$root = $('<div class=\"mb2ls-conf-field-radio-options__option\">');\r\n        that.$root.text(that.title);\r\n\r\n        that.$root.data('mb2lsOption', that);\r\n        that.$root.attr('data-key', args.key);\r\n\r\n        that.$root.on('click', function ()\r\n        {\r\n            that.onClick();\r\n        });\r\n    }\r\n\r\n    getActiveClass()\r\n    {\r\n        return super.getActiveClass() + ' mb2ls-conf-btn';\r\n    }\r\n\r\n    onClick()\r\n    {\r\n        const that = this;\r\n        that.setActive();\r\n        that.args.onChange();\r\n    }\r\n}\r\n\r\nmodule.exports = RadioOptionSwitch;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option-switch.js","require('./info-box.scss');\r\nconst utils = require('public/utils.js');\r\nconst Element = require('../element.js');\r\n\r\nclass InfoBox extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-info-box\">');\r\n        if (that.getType()) that.$root.addClass(`mb2ls-info-box--${that.getType()}`);\r\n        that.afterRootInit();\r\n    }\r\n\r\n    afterRootInit()\r\n    {\r\n        const that = this;\r\n        super.afterRootInit();\r\n        that.toggleForceVisibility(false);\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return '';\r\n    }\r\n\r\n    setText(text)\r\n    {\r\n        const that = this;\r\n        that.toggleForceVisibility(utils.isValidStr(text) && utils.stripTags(text).length);\r\n        that.$root.html(text);\r\n    }\r\n}\r\n\r\nmodule.exports = InfoBox;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/info-box/info-box.js","require('./cart-item.scss');\r\nconst utils = require('public/utils.js');\r\nconst QuantityInput = require('../../../quantity-input/quantity-input.js');\r\nconst PriceDisplay = require('../../price-display/price-display.js');\r\nconst CartItem = require('./cart-item.js');\r\n\r\n/**\r\n * @property {Array.<Field>} fields\r\n * @property {CartsManagerItem} cartsManagerItem\r\n * @property {Cart} cart\r\n */\r\nclass CartItemComplex extends CartItem {\r\n    constructor(args)\r\n    {\r\n        super(...arguments);\r\n\r\n        const that = this;\r\n        that.quantityInput = new QuantityInput({\r\n            onChange: function ()\r\n            {\r\n                that.cartsManagerItem.onChangeQuantity(that);\r\n            }\r\n        });\r\n        that.$root = $('<div class=\"mb2ls-conf-cart-item\">');\r\n        that.$heading = $('<div class=\"mb2ls-conf-cart-item__heading\">');\r\n        that.$img = $('<img class=\"mb2ls-conf-cart-item__img\" loading=lazy>');\r\n        that.$details = $('<div class=\"mb2ls-conf-cart-item__details\">');\r\n        that.$actions = $('<div class=\"mb2ls-conf-cart-item__actions\">');\r\n        that.$removeBtn = $('<div class=\"mb2ls-conf-cart-item__remove-btn\">');\r\n        that.$couponInput = $('<input class=\"mb2ls-conf-cart-item__coupon-input\" placeholder=\"Gutscheincode\" type=\"text\">');\r\n        that.$root.addClass(`mb2ls-conf-cart-item--${that.getType()}`);\r\n        if (that.cartsManagerItem.priceable)\r\n        {\r\n            that.priceDisplay = new PriceDisplay();\r\n            that.priceDisplay.$root.appendTo(that.$actions);\r\n            that.$root.addClass('mb2ls-conf-cart-item--priceable');\r\n        }\r\n        that.quantityInput.$root.appendTo(that.$actions);\r\n\r\n        that.$removeBtn.on('click', function (e)\r\n        {\r\n            that.cartsManagerItem.onRemove(that);\r\n        });\r\n        that.$couponInput.on('change', function ()\r\n        {\r\n            that.cartsManagerItem.onChangeCoupon(that);\r\n        });\r\n    }\r\n\r\n    destroy()\r\n    {\r\n\r\n    }\r\n\r\n    remove()\r\n    {\r\n        const that = this;\r\n        utils.deepRemove(that.$root);\r\n    }\r\n\r\n    getQuantity()\r\n    {\r\n        const that = this;\r\n        return that.quantityInput.value;\r\n    }\r\n\r\n    getCoupon()\r\n    {\r\n        const that = this;\r\n        return that.$couponInput.val();\r\n    }\r\n\r\n    toggleActive(active)\r\n    {\r\n        const that = this;\r\n        super.toggleActive(active);\r\n        if (that.$editBtn)\r\n        {\r\n            that.toggleEditBtnVisibility(!active);\r\n        }\r\n    }\r\n\r\n    toggleEditBtnVisibility(visible)\r\n    {\r\n        const that = this;\r\n        if (that.$editBtn) that.$editBtn.css('display', !visible ? 'none' : '');\r\n    }\r\n\r\n    setImage(src)\r\n    {\r\n        const that = this;\r\n        that.$img.attr('src', src);\r\n    }\r\n\r\n    setHeading(html)\r\n    {\r\n        const that = this;\r\n        that.$heading.html(html).attr('title', html);\r\n    }\r\n\r\n    setDetails(html)\r\n    {\r\n        const that = this;\r\n        that.$details.html(html);\r\n    }\r\n}\r\n\r\nmodule.exports = CartItemComplex;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/cart/cart-item-complex.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/cart/cart-item.scss\n// module id = 71\n// module chunks = 2","require('./price-display.scss');\r\nconst utils = require('public/utils.js');\r\n\r\nclass PriceDisplay {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        const defaults = {};\r\n        const legalPriceInfo = args.legalPriceInfo !== undefined ? args.legalPriceInfo : true;\r\n        that.args = $.extend(true, defaults, args);\r\n        that.$root = $(`<div class=\"mb2ls-conf-price\"></div>`);\r\n        that.$oldPrice = $('<span class=\"mb2ls-conf-price__old\">');\r\n        that.$actualPrice = $('<span class=\"mb2ls-conf-price__actual\">');\r\n        that.$oldPrice.appendTo(that.$root);\r\n        that.$actualPrice.appendTo(that.$root);\r\n\r\n        //Germanized generates the box\r\n        that.$legalPriceInfo = $('.legal-price-info');\r\n\r\n        if (\r\n            legalPriceInfo &&\r\n            !that.$legalPriceInfo.closest('.mb2ls-conf-price').length //it makes sense when there is a lot of PricesDisplays, e.g. for Platte1\r\n            && that.$legalPriceInfo.length\r\n        )\r\n        {\r\n            that.$legalPriceInfo.appendTo(that.$root);\r\n        }\r\n    }\r\n\r\n    setPrice(regular = null, sale = null)\r\n    {\r\n        const that = this;\r\n        if (that.args.priceFilter)\r\n        {\r\n            const filteredPrices = that.args.priceFilter(regular, sale);\r\n            regular = filteredPrices.regular;\r\n            sale = filteredPrices.sale;\r\n        }\r\n\r\n        let hasDiscount = regular !== null && sale < regular;\r\n\r\n        if (hasDiscount)\r\n        {\r\n            that.$actualPrice.html(utils.formatMoney(sale));\r\n            that.$oldPrice.html(utils.formatMoney(regular));\r\n            that.$oldPrice.css('display', '');\r\n        } else\r\n        {\r\n            that.$actualPrice.html(utils.formatMoney(regular));\r\n            that.$oldPrice.css('display', 'none');\r\n        }\r\n    }\r\n}\r\n\r\nmodule.exports = PriceDisplay;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/price-display/price-display.js","require('./cart-item.scss');\r\nconst utils = require('public/utils.js');\r\n\r\n/**\r\n * @property {Array.<Field>} fields\r\n * @property {CartsManagerItem} cartsManagerItem\r\n * @property {Cart} cart\r\n * @property {Configurator} configurator\r\n */\r\nclass CartItem {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.args = args;\r\n        that.cart = args.cart;\r\n        that.cartsManagerItem = args.cartsManagerItem;\r\n        that.configurator = args.configurator;\r\n        that.earlierToggleActive = false;\r\n    }\r\n\r\n    remove()\r\n    {\r\n        const that = this;\r\n        utils.deepRemove(that.$root);\r\n    }\r\n\r\n    getQuantity()\r\n    {\r\n        const that = this;\r\n        return 1;\r\n    }\r\n\r\n    getCoupon()\r\n    {\r\n        const that = this;\r\n        return null;\r\n    }\r\n\r\n    toggleActive(active)\r\n    {\r\n        const that = this;\r\n        that.$root.toggleClass('mb2ls-conf-cart-item--active', active);\r\n    }\r\n\r\n    toggleEditBtnVisibility()\r\n    {\r\n\r\n    }\r\n\r\n    setImage(src)\r\n    {\r\n        const that = this;\r\n    }\r\n\r\n    setHeading(html)\r\n    {\r\n        const that = this;\r\n    }\r\n\r\n    setDetails(html)\r\n    {\r\n        const that = this;\r\n    }\r\n}\r\n\r\nmodule.exports = CartItem;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/cart/cart-item.js","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/_core').Object.getPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/get-prototype-of.js\n// module id = 78\n// module chunks = 2","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n  return function getPrototypeOf(it) {\n    return $getPrototypeOf(toObject(it));\n  };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.get-prototype-of.js\n// module id = 79\n// module chunks = 2","module.exports = function (it) {\n  if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n  return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_a-function.js\n// module id = 80\n// module chunks = 2","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/define-property.js\n// module id = 81\n// module chunks = 2","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n  return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/define-property.js\n// module id = 82\n// module chunks = 2","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.define-property.js\n// module id = 83\n// module chunks = 2","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = 84\n// module chunks = 2","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/iterator.js\n// module id = 85\n// module chunks = 2","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n  this._t = String(iterated); // target\n  this._i = 0;                // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n  var O = this._t;\n  var index = this._i;\n  var point;\n  if (index >= O.length) return { value: undefined, done: true };\n  point = $at(O, index);\n  this._i += point.length;\n  return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.string.iterator.js\n// module id = 86\n// module chunks = 2","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true  -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n  return function (that, pos) {\n    var s = String(defined(that));\n    var i = toInteger(pos);\n    var l = s.length;\n    var a, b;\n    if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n    a = s.charCodeAt(i);\n    return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n      ? TO_STRING ? s.charAt(i) : a\n      : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n  };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_string-at.js\n// module id = 87\n// module chunks = 2","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n  Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n  setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-create.js\n// module id = 88\n// module chunks = 2","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n  anObject(O);\n  var keys = getKeys(Properties);\n  var length = keys.length;\n  var i = 0;\n  var P;\n  while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n  return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dps.js\n// module id = 89\n// module chunks = 2","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n  return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iobject.js\n// module id = 90\n// module chunks = 2","// false -> Array#indexOf\n// true  -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n  return function ($this, el, fromIndex) {\n    var O = toIObject($this);\n    var length = toLength(O.length);\n    var index = toAbsoluteIndex(fromIndex, length);\n    var value;\n    // Array#includes uses SameValueZero equality algorithm\n    // eslint-disable-next-line no-self-compare\n    if (IS_INCLUDES && el != el) while (length > index) {\n      value = O[index++];\n      // eslint-disable-next-line no-self-compare\n      if (value != value) return true;\n    // Array#indexOf ignores holes, Array#includes - not\n    } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n      if (O[index] === el) return IS_INCLUDES || index || 0;\n    } return !IS_INCLUDES && -1;\n  };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_array-includes.js\n// module id = 91\n// module chunks = 2","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-length.js\n// module id = 92\n// module chunks = 2","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n  index = toInteger(index);\n  return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = 93\n// module chunks = 2","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_html.js\n// module id = 94\n// module chunks = 2","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n  'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n  'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n  'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n  'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n  var NAME = DOMIterables[i];\n  var Collection = global[NAME];\n  var proto = Collection && Collection.prototype;\n  if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n  Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/web.dom.iterable.js\n// module id = 95\n// module chunks = 2","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n  this._t = toIObject(iterated); // target\n  this._i = 0;                   // next index\n  this._k = kind;                // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n  var O = this._t;\n  var kind = this._k;\n  var index = this._i++;\n  if (!O || index >= O.length) {\n    this._t = undefined;\n    return step(1);\n  }\n  if (kind == 'keys') return step(0, index);\n  if (kind == 'values') return step(0, O[index]);\n  return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = 96\n// module chunks = 2","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = 97\n// module chunks = 2","module.exports = function (done, value) {\n  return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-step.js\n// module id = 98\n// module chunks = 2","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol.js\n// module id = 99\n// module chunks = 2","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/index.js\n// module id = 100\n// module chunks = 2","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toObject = require('./_to-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $GOPS = require('./_object-gops');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n  return _create(dP({}, 'a', {\n    get: function () { return dP(this, 'a', { value: 7 }).a; }\n  })).a != 7;\n}) ? function (it, key, D) {\n  var protoDesc = gOPD(ObjectProto, key);\n  if (protoDesc) delete ObjectProto[key];\n  dP(it, key, D);\n  if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n  var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n  sym._k = tag;\n  return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n  return typeof it == 'symbol';\n} : function (it) {\n  return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n  if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n  anObject(it);\n  key = toPrimitive(key, true);\n  anObject(D);\n  if (has(AllSymbols, key)) {\n    if (!D.enumerable) {\n      if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n      it[HIDDEN][key] = true;\n    } else {\n      if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n      D = _create(D, { enumerable: createDesc(0, false) });\n    } return setSymbolDesc(it, key, D);\n  } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n  anObject(it);\n  var keys = enumKeys(P = toIObject(P));\n  var i = 0;\n  var l = keys.length;\n  var key;\n  while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n  return it;\n};\nvar $create = function create(it, P) {\n  return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n  var E = isEnum.call(this, key = toPrimitive(key, true));\n  if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n  return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n  it = toIObject(it);\n  key = toPrimitive(key, true);\n  if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n  var D = gOPD(it, key);\n  if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n  return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n  var names = gOPN(toIObject(it));\n  var result = [];\n  var i = 0;\n  var key;\n  while (names.length > i) {\n    if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n  } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n  var IS_OP = it === ObjectProto;\n  var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n  var result = [];\n  var i = 0;\n  var key;\n  while (names.length > i) {\n    if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n  } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n  $Symbol = function Symbol() {\n    if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n    var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n    var $set = function (value) {\n      if (this === ObjectProto) $set.call(OPSymbols, value);\n      if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n      setSymbolDesc(this, tag, createDesc(1, value));\n    };\n    if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n    return wrap(tag);\n  };\n  redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n    return this._k;\n  });\n\n  $GOPD.f = $getOwnPropertyDescriptor;\n  $DP.f = $defineProperty;\n  require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n  require('./_object-pie').f = $propertyIsEnumerable;\n  $GOPS.f = $getOwnPropertySymbols;\n\n  if (DESCRIPTORS && !require('./_library')) {\n    redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n  }\n\n  wksExt.f = function (name) {\n    return wrap(wks(name));\n  };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n  // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n  'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n  // 19.4.2.1 Symbol.for(key)\n  'for': function (key) {\n    return has(SymbolRegistry, key += '')\n      ? SymbolRegistry[key]\n      : SymbolRegistry[key] = $Symbol(key);\n  },\n  // 19.4.2.5 Symbol.keyFor(sym)\n  keyFor: function keyFor(sym) {\n    if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n    for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n  },\n  useSetter: function () { setter = true; },\n  useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n  // 19.1.2.2 Object.create(O [, Properties])\n  create: $create,\n  // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n  defineProperty: $defineProperty,\n  // 19.1.2.3 Object.defineProperties(O, Properties)\n  defineProperties: $defineProperties,\n  // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n  getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n  // 19.1.2.7 Object.getOwnPropertyNames(O)\n  getOwnPropertyNames: $getOwnPropertyNames,\n  // 19.1.2.8 Object.getOwnPropertySymbols(O)\n  getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });\n\n$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {\n  getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n    return $GOPS.f(toObject(it));\n  }\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n  var S = $Symbol();\n  // MS Edge converts symbol values to JSON as {}\n  // WebKit converts symbol values to JSON as null\n  // V8 throws on boxed symbols\n  return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n  stringify: function stringify(it) {\n    var args = [it];\n    var i = 1;\n    var replacer, $replacer;\n    while (arguments.length > i) args.push(arguments[i++]);\n    $replacer = replacer = args[1];\n    if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n    if (!isArray(replacer)) replacer = function (key, value) {\n      if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n      if (!isSymbol(value)) return value;\n    };\n    args[1] = replacer;\n    return _stringify.apply($JSON, args);\n  }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.symbol.js\n// module id = 101\n// module chunks = 2","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n  return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n  return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n  setDesc(it, META, { value: {\n    i: 'O' + ++id, // object ID\n    w: {}          // weak collections IDs\n  } });\n};\nvar fastKey = function (it, create) {\n  // return primitive with prefix\n  if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n  if (!has(it, META)) {\n    // can't set metadata to uncaught frozen object\n    if (!isExtensible(it)) return 'F';\n    // not necessary to add metadata\n    if (!create) return 'E';\n    // add missing metadata\n    setMeta(it);\n  // return object ID\n  } return it[META].i;\n};\nvar getWeak = function (it, create) {\n  if (!has(it, META)) {\n    // can't set metadata to uncaught frozen object\n    if (!isExtensible(it)) return true;\n    // not necessary to add metadata\n    if (!create) return false;\n    // add missing metadata\n    setMeta(it);\n  // return hash weak collections IDs\n  } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n  if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n  return it;\n};\nvar meta = module.exports = {\n  KEY: META,\n  NEED: false,\n  fastKey: fastKey,\n  getWeak: getWeak,\n  onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_meta.js\n// module id = 102\n// module chunks = 2","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n  var result = getKeys(it);\n  var getSymbols = gOPS.f;\n  if (getSymbols) {\n    var symbols = getSymbols(it);\n    var isEnum = pIE.f;\n    var i = 0;\n    var key;\n    while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n  } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-keys.js\n// module id = 103\n// module chunks = 2","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n  return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array.js\n// module id = 104\n// module chunks = 2","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n  ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n  try {\n    return gOPN(it);\n  } catch (e) {\n    return windowNames.slice();\n  }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n  return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = 105\n// module chunks = 2","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 107\n// module chunks = 2","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = 108\n// module chunks = 2","module.exports = { \"default\": require(\"core-js/library/fn/object/get-own-property-descriptor\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js\n// module id = 109\n// module chunks = 2","require('../../modules/es6.object.get-own-property-descriptor');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function getOwnPropertyDescriptor(it, key) {\n  return $Object.getOwnPropertyDescriptor(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/get-own-property-descriptor.js\n// module id = 110\n// module chunks = 2","// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = require('./_to-iobject');\nvar $getOwnPropertyDescriptor = require('./_object-gopd').f;\n\nrequire('./_object-sap')('getOwnPropertyDescriptor', function () {\n  return function getOwnPropertyDescriptor(it, key) {\n    return $getOwnPropertyDescriptor(toIObject(it), key);\n  };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js\n// module id = 111\n// module chunks = 2","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/set-prototype-of.js\n// module id = 112\n// module chunks = 2","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/set-prototype-of.js\n// module id = 113\n// module chunks = 2","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.set-prototype-of.js\n// module id = 114\n// module chunks = 2","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n  anObject(O);\n  if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n  set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n    function (test, buggy, set) {\n      try {\n        set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n        set(test, []);\n        buggy = !(test instanceof Array);\n      } catch (e) { buggy = true; }\n      return function setPrototypeOf(O, proto) {\n        check(O, proto);\n        if (buggy) O.__proto__ = proto;\n        else set(O, proto);\n        return O;\n      };\n    }({}, false) : undefined),\n  check: check\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-proto.js\n// module id = 115\n// module chunks = 2","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/create.js\n// module id = 116\n// module chunks = 2","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n  return $Object.create(P, D);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/create.js\n// module id = 117\n// module chunks = 2","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.create.js\n// module id = 118\n// module chunks = 2","require('../../modules/es6.object.keys');\nmodule.exports = require('../../modules/_core').Object.keys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/keys.js\n// module id = 119\n// module chunks = 2","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n  return function keys(it) {\n    return $keys(toObject(it));\n  };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.keys.js\n// module id = 120\n// module chunks = 2","require('../../modules/es7.object.values');\nmodule.exports = require('../../modules/_core').Object.values;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/values.js\n// module id = 121\n// module chunks = 2","// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $values = require('./_object-to-array')(false);\n\n$export($export.S, 'Object', {\n  values: function values(it) {\n    return $values(it);\n  }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.object.values.js\n// module id = 122\n// module chunks = 2","var DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar toIObject = require('./_to-iobject');\nvar isEnum = require('./_object-pie').f;\nmodule.exports = function (isEntries) {\n  return function (it) {\n    var O = toIObject(it);\n    var keys = getKeys(O);\n    var length = keys.length;\n    var i = 0;\n    var result = [];\n    var key;\n    while (length > i) {\n      key = keys[i++];\n      if (!DESCRIPTORS || isEnum.call(O, key)) {\n        result.push(isEntries ? [key, O[key]] : O[key]);\n      }\n    }\n    return result;\n  };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-to-array.js\n// module id = 123\n// module chunks = 2","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/configurator.scss\n// module id = 124\n// module chunks = 2","require('./tooltip.scss');\r\n\r\nconst utils = require('public/utils.js');\r\nvar $body = $(document.body);\r\nvar $window = $(window);\r\n\r\nconst TooltipSlider = function (args)\r\n{\r\n    var that = this;\r\n    var $root = $('<div class=\"ucmaTooltipSlider\">');\r\n    that.$root = $root;\r\n    var $nextBtn = $('<div class=\"ucmaTooltipSlider__btn ucmaTooltipSlider__btn--next\">');\r\n    var $prevBtn = $('<div class=\"ucmaTooltipSlider__btn ucmaTooltipSlider__btn--prev\">');\r\n    var $imagesContainer = $('<div class=\"ucmaTooltipSlider__imagesContainer\">');\r\n    var $subtitle = $('<div class=\"ucmaTooltipSlider__subTitle\">');\r\n    var $imageReference = $('<img class=\"ucmaTooltipSlider__image\" loading=lazy>');\r\n    var $firstImage;\r\n    var buzy = false;\r\n    that.currentSlideIndex = 0;\r\n    $nextBtn.appendTo($root);\r\n    $prevBtn.appendTo($root);\r\n    $imagesContainer.appendTo($root);\r\n    $subtitle.appendTo($root);\r\n\r\n    that.setSlide = function (index, initial)\r\n    {\r\n        if (buzy) return;\r\n        if (args.slides[index] === undefined) return;\r\n\r\n        buzy = true;\r\n        $root.toggleClass('ucmaTooltipSlider--buzy', buzy);\r\n        $firstImage.animate({\r\n            'margin-left': index * 200 * -1\r\n        }, initial === true ? 0 : 500, function ()\r\n        {\r\n            that.currentSlide = args.slides[index];\r\n            that.nextSlide = args.slides[index + 1];\r\n            that.prevSlide = args.slides[index - 1];\r\n            that.currentSlideIndex = index;\r\n            $root.toggleClass('ucmaTooltipSlider--first', that.prevSlide === undefined);\r\n            $root.toggleClass('ucmaTooltipSlider--last', that.nextSlide === undefined);\r\n            if (that.prevSlide)\r\n            {\r\n                if (that.prevSlide.title !== undefined)\r\n                {\r\n                    $subtitle.html(\r\n                        '<span class=\"ucmaTooltipSlider__subTitleArrow\">&#8592;</span> ' +\r\n                        that.prevSlide.title\r\n                    );\r\n                }\r\n            } else if (that.nextSlide)\r\n            {\r\n                if (that.nextSlide.title !== undefined)\r\n                {\r\n                    $subtitle.html(\r\n                        that.nextSlide.title +\r\n                        ' <span class=\"ucmaTooltipSlider__subTitleArrow\">&#8594;</span>'\r\n                    );\r\n                }\r\n            }\r\n            buzy = false;\r\n            $root.toggleClass('ucmaTooltipSlider--buzy', buzy);\r\n        });\r\n    }\r\n\r\n    for (var key in args.slides)\r\n    {\r\n        var slide = args.slides[key];\r\n        var $image = $imageReference.clone();\r\n        $image.attr('src', slide.src);\r\n        $image.appendTo($imagesContainer);\r\n        if ($firstImage === undefined) $firstImage = $image;\r\n    }\r\n    that.setSlide(0, true);\r\n\r\n    $subtitle.click(function ()\r\n    {\r\n        //  if (!!that.prevSlide && !!that.nextSlide) return;\r\n        if (!!that.prevSlide) that.setSlide(that.currentSlideIndex - 1);\r\n        if (!!that.nextSlide) that.setSlide(that.currentSlideIndex + 1);\r\n    });\r\n    $nextBtn.click(function ()\r\n    {\r\n        that.setSlide(that.currentSlideIndex + 1);\r\n    });\r\n    $prevBtn.click(function ()\r\n    {\r\n        that.setSlide(that.currentSlideIndex - 1);\r\n    });\r\n}\r\n\r\nconst Tooltip = function (args)\r\n{\r\n    var that = this;\r\n    var margin = 10;\r\n    var topBarHeight = 150;\r\n\r\n    //In form we have a big bottom bar, so we need to add the merging for this - https://s.bavi.dev/wicO0/LIMIrIBI10.jpg\r\n    //TODO: add the ability to change it dynamically, using a child theme.\r\n    var bottomBarHeight = 180;\r\n\r\n    that.id = args.id;\r\n    that.$target = args.$target;\r\n    that.destroyOnMouseOut = args.destroyOnMouseOut;\r\n    that.$tooltip = $('<div class=\"ucmaTooltip\">');\r\n    that.$closeBtn = $('<div class=\"ucmaTooltip__closeBtn\">');\r\n    that.$content = $('<div class=\"ucmaTooltip__content\"></div>');\r\n    var updatePositionInterval;\r\n\r\n    //if in the content is images array\r\n    if (args.content && typeof args.content === 'object')\r\n    {\r\n        if (args.slider.enabled && args.content.images.length > 1)\r\n        {\r\n            var slides = [];\r\n            for (var index in args.content.images)\r\n            {\r\n                if (args.slider.max !== false && index >= args.slider.max) continue;\r\n\r\n                slides.push({\r\n                    src: args.content.images[index],\r\n                    title: args.slider.titles[index],\r\n                });\r\n            }\r\n            var tooltipSlider = new TooltipSlider({\r\n                slides: slides\r\n            });\r\n            tooltipSlider.$root.appendTo(that.$content);\r\n        } else\r\n        {\r\n\r\n            if (utils.isValidStr(args.content.heading))\r\n            {\r\n                $('<div class=\"ucmaTooltip__heading\">')\r\n                    .html(args.content.heading)\r\n                    .appendTo(that.$content);\r\n            }\r\n            $('<img class=\"ucmaTooltip__image\" loading=lazy>')\r\n                .attr('src', args.content.images[0])\r\n                .appendTo(that.$content);\r\n        }\r\n    } else\r\n    {\r\n        that.$content.html(args.content);\r\n    }\r\n\r\n    that.$closeBtn.add(that.$content).appendTo(that.$tooltip);\r\n    that.$tooltip.appendTo($body);\r\n\r\n    that.getOffset = function (above)\r\n    {\r\n        var offset = that.$target.offset();\r\n        var top;\r\n        if (above) top = offset.top - that.$tooltip.outerHeight() - margin;\r\n        else top = offset.top + margin + that.$target.outerHeight();\r\n\r\n        var left = offset.left + that.$target.outerWidth() / 2 - that.$tooltip.outerWidth() / 2;\r\n        if (left - margin < 0) left = margin;\r\n        if (left + that.$tooltip.outerWidth() + margin > $window.width())\r\n        {\r\n            left = $window.width() - that.$tooltip.outerWidth() - margin;\r\n        }\r\n        return {\r\n            top: parseInt(top),\r\n            left: parseInt(left),\r\n        }\r\n    }\r\n\r\n    that.updatePosition = function ()\r\n    {\r\n        var offset = that.getOffset(true);\r\n        if (!that.isAbove(offset)) offset = that.getOffset(false);\r\n        that.$tooltip.css('top', offset.top);\r\n        that.$tooltip.css('left', offset.left);\r\n        that.$tooltip.css('visibility', 'visible');\r\n    }\r\n\r\n    that.isAbove = function (offset)\r\n    {\r\n        var windowTop = $(window).scrollTop();\r\n        return offset.top - margin - topBarHeight > windowTop - bottomBarHeight;\r\n    }\r\n\r\n    that.destroy = function ()\r\n    {\r\n        clearInterval(updatePositionInterval);\r\n\r\n        that.$target.off('mouseleave', that.destroy);\r\n        that.$closeBtn.off('click', that.destroy);\r\n\r\n        that.$tooltip.removeData('ucmaTooltip');\r\n        that.$target.removeData('ucmaTooltip');\r\n        utils.deepRemove(that.$tooltip);\r\n    }\r\n\r\n    that.$closeBtn.on('click', that.destroy);\r\n\r\n    if (that.destroyOnMouseOut)\r\n    {\r\n        that.$target.on('mouseleave', that.destroy);\r\n    }\r\n\r\n    that.updatePosition();\r\n\r\n    updatePositionInterval = setInterval(function ()\r\n    {\r\n        that.updatePosition();\r\n    }, 300);\r\n    that.$tooltip.data('ucmaTooltip', that);\r\n    that.$target.data('ucmaTooltip', that);\r\n}\r\n\r\nconst TooltipManager = function (args)\r\n{\r\n    var that = this;\r\n    var latestId = 0;\r\n    var hasOpened = false;\r\n    that.$container = args.$container;\r\n    let mouseenterTimeout = null;\r\n    that.$elements = $();\r\n\r\n    that.slider = {\r\n        enabled: false,\r\n        max: 20,\r\n        titles: []\r\n    };\r\n\r\n    that.generateId = function ()\r\n    {\r\n        return latestId++;\r\n    }\r\n\r\n    that.destroyAll = function ()\r\n    {\r\n        $('.ucmaTooltip').each(function ()\r\n        {\r\n            const $tooltip = $(this);\r\n            /**\r\n             * @type {Tooltip}\r\n             */\r\n            var tooltip = $tooltip.data('ucmaTooltip');\r\n            tooltip && tooltip.destroy();\r\n            utils.deepRemove($tooltip);\r\n        });\r\n        hasOpened = false;\r\n        if (mouseenterTimeout) clearTimeout(mouseenterTimeout);\r\n        if (args.onDestroyed !== undefined) args.onDestroyed();\r\n    }\r\n\r\n    that.hasMouse = function ()\r\n    {\r\n        return matchMedia('(hover:hover)').matches;\r\n    }\r\n\r\n    that.open = function (e, content)\r\n    {\r\n        var $eventSource = $(e.target);\r\n        var $target =\r\n            $eventSource.attr('data-mb2ls-tip') ? $eventSource :\r\n                $eventSource.closest('[data-mb2ls-tip]');\r\n        var tooltip = $target.data('ucmaTooltip');\r\n        var targetDataContent = $target.data('mb2ls-tip');\r\n\r\n        if (tooltip === undefined && (targetDataContent || content))\r\n        {\r\n            new Tooltip({\r\n                $target: $target,\r\n                id: that.generateId(),\r\n                destroyOnMouseOut: e.type === 'mouseenter' || e.type === 'mouseover',\r\n                content: content ? content : $target.data('mb2ls-tip'),\r\n                slider: that.slider,\r\n            });\r\n            hasOpened = true;\r\n        }\r\n    }\r\n\r\n    that.mouseenter = function (e)\r\n    {\r\n        if ($(e.currentTarget).attr('disabled')) return;\r\n\r\n        if (mouseenterTimeout) clearTimeout(mouseenterTimeout);\r\n\r\n        $(e.target).one('mouseleave', function ()\r\n        {\r\n            clearTimeout(mouseenterTimeout);\r\n        });\r\n\r\n        //Prevent immediately displaying to improve the performance\r\n        mouseenterTimeout = setTimeout(function ()\r\n        {\r\n            that.destroyAll();\r\n            that.open(e);\r\n            if (args.onOpen !== undefined) args.onOpen(e);\r\n            mouseenterTimeout = null;\r\n        }, 200);\r\n    }\r\n\r\n    that.addElements = function ($elements)\r\n    {\r\n        that.$elements = that.$elements.add($elements);\r\n        $elements.each(function ()\r\n        {\r\n            const $element = $(this);\r\n            if ($element.hasClass('mb2lsTipInited')) return;\r\n\r\n            $element.on(that.hasMouse() ? 'mouseenter' : 'click', that.mouseenter);\r\n            $element.addClass('mb2lsTipInited');\r\n        });\r\n    }\r\n\r\n    that.destroy = function ()\r\n    {\r\n        if (mouseenterTimeout) clearTimeout(mouseenterTimeout);\r\n        that.destroyAll();\r\n        that.$elements.each(function ()\r\n        {\r\n            const $element = $(this);\r\n            $element\r\n                .off(that.hasMouse() ? 'mouseenter' : 'click', that.mouseenter)\r\n                .removeClass('mb2lsTipInited');\r\n        });\r\n    }\r\n\r\n    if (!args.manualOpen)\r\n    {\r\n        $(args.$container).on(that.hasMouse() ? 'mouseenter' : 'click', '[data-mb2ls-tip]', that.mouseenter);\r\n    }\r\n\r\n    //there was a fantom event of \"click\", so we should use mouseup\r\n    $body.on('mouseup touchend', function (e)\r\n    {\r\n        if (!hasOpened) return;\r\n        var $target = $(e.target);\r\n        if ($target.attr('data-mb2ls-tip') !== undefined) return;\r\n        if ($target.closest('[data-mb2ls-tip]').length) return;\r\n        if ($target.hasClass('ucmaTooltip')) return;\r\n        if ($target.closest('.ucmaTooltip').length) return;\r\n\r\n        that.destroyAll();\r\n    });\r\n}\r\n\r\nmodule.exports = TooltipManager;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/tooltip/tooltip.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/tooltip/tooltip.scss\n// module id = 126\n// module chunks = 2","require('./popup.scss');\r\nconst utils = require('public/utils.js');\r\n\r\nclass Popup {\r\n    constructor()\r\n    {\r\n        const that = this;\r\n        that.inited = false;\r\n        that.active = false;\r\n    }\r\n\r\n    init()\r\n    {\r\n        const that = this;\r\n        that.$root = $('<div id=\"mb2ls-popup\" class=\"mb2ls-popup\" style=\"display: none\">');\r\n        that.$dialog = $('<div class=\"mb2ls-popup__dialog\">');\r\n        that.$header = $('<div class=\"mb2ls-popup__header\">');\r\n        that.$headerTitle = $('<div class=\"mb2ls-popup__headerTitle\">');\r\n        that.$closeBtnTop = $('<div class=\"mb2ls-popup__closeBtn mb2ls-popup__closeBtn--top\">X</div>');\r\n        that.$content = $('<div class=\"mb2ls-popup__content\">');\r\n        that.$footer = $('<div class=\"mb2ls-popup__footer\">');\r\n        that.$closeBtnFooter = $('<div class=\"mb2ls-popup__closeBtn mb2ls-popup__closeBtn--footer\">Schließen</div>');\r\n\r\n        that.$dialog.appendTo(that.$root);\r\n        that.$header.appendTo(that.$dialog);\r\n        that.$headerTitle.appendTo(that.$header);\r\n        that.$closeBtnTop.appendTo(that.$dialog);\r\n        that.$content.appendTo(that.$dialog);\r\n        that.$footer.appendTo(that.$dialog);\r\n        that.$closeBtnFooter.appendTo(that.$footer);\r\n        that.$root.appendTo($(document.body));\r\n\r\n        that.$closeBtnTop.add(that.$closeBtnFooter).click(function ()\r\n        {\r\n            that.toggle(false);\r\n        });\r\n        that.inited = true;\r\n    }\r\n\r\n    toggle(active)\r\n    {\r\n        const that = this;\r\n        if (!that.inited) that.init();\r\n        that.active = active;\r\n        that.$root\r\n            .toggleClass('mb2ls-popup--active', that.active)\r\n            .css('display', that.active ? '' : 'none');\r\n        if (!active) that.$content.html('');\r\n    }\r\n\r\n    setContent(content, title = '')\r\n    {\r\n        const that = this;\r\n        if (!that.inited) that.init();\r\n\r\n        if (utils.isHtml(content))\r\n        {\r\n            const $content = $(content);\r\n            $content.appendTo(that.$content);\r\n\r\n            //Is Elementor available?\r\n            if (window.elementorFrontend !== undefined)\r\n            {\r\n                $content.filter('.elementor-element').add($content.find('.elementor-element')).each(function ()\r\n                {\r\n                    window.elementorFrontend.elementsHandler.runReadyTrigger($(this));\r\n                });\r\n            }\r\n        } else\r\n        {\r\n            that.$content.html(content);\r\n        }\r\n        that.$headerTitle.html(title);\r\n    }\r\n}\r\n\r\nmodule.exports = Popup;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/popup/popup.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/popup/popup.scss\n// module id = 128\n// module chunks = 2","const utils = require('public/utils.js');\r\n\r\nclass Restrictions {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.recipe = args.recipe;\r\n    }\r\n\r\n    getRestrictionsBySinkTemplate(templateId, action = false)\r\n    {\r\n        const that = this;\r\n        const result = [];\r\n        for (let key in that.recipe)\r\n        {\r\n            const restriction = that.recipe[key];\r\n            if (action && action !== restriction.Sink_Action__c) continue;\r\n\r\n            if (restriction.Sink_Accordion_Element_Name_s__c === templateId) result.push(restriction);\r\n        }\r\n        return result;\r\n    }\r\n\r\n    getSinkPossibleValuesBySinkTemplate(templateId, action = false)\r\n    {\r\n        const that = this;\r\n        const restrictions = that.getRestrictionsBySinkTemplate(templateId, action);\r\n        let result = [];\r\n        restrictions.forEach(function (restriction)\r\n        {\r\n            result = result.concat(utils.split(restriction.Sink_Possible_Value_s__c))\r\n        });\r\n        return result;\r\n    }\r\n}\r\n\r\nmodule.exports = Restrictions;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/restrictions.js","const utils = require(\"public/utils\");\r\n\r\n/**\r\n * @property {StepsProgress} stepsProgress\r\n * @property {Configurator} configurator\r\n * @property {Array.<StepItem>} stepsItems\r\n */\r\nclass StepsManager {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.stepsProgress = args.stepsProgress;\r\n        that.configurator = args.configurator;\r\n        that.stepsItems = args.stepsItems;\r\n        that.submitButtons = args.submitButtons;\r\n        that.nextStepButtons = args.nextStepButtons;\r\n        that.previousStepButtons = args.previousStepButtons;\r\n        that.currentIndex = 0;\r\n        if (!that.stepsItems) return;\r\n\r\n        that.stepsItems.forEach(function (stepItem, index)\r\n        {\r\n            that.stepsProgress.addItem(stepItem.title);\r\n            stepItem.setIndex(index);\r\n        });\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.stepsProgress.$root.on('mb2lsClick', function (e, index)\r\n        {\r\n            if (index > that.currentIndex && !that.getStepItem(that.currentIndex).isValid()) return;\r\n            that.setActive(index);\r\n        });\r\n\r\n        that.nextStepButtons.forEach(function (nextStepButton)\r\n        {\r\n            //\"off\" deosn't required, because we remove the element\r\n            nextStepButton.$root.on('mb2lsClick', function ()\r\n            {\r\n                if (that.currentIndex + 2 > that.stepsItems.length) return;\r\n                if (!that.getStepItem(that.currentIndex).isValid()) return;\r\n\r\n                that.currentIndex++;\r\n                that.setActive(that.currentIndex);\r\n            });\r\n        });\r\n\r\n        that.previousStepButtons.forEach(function (previousStepButton)\r\n        {\r\n            //\"off\" deosn't required, because we remove the element\r\n            previousStepButton.$root.on('mb2lsClick', function ()\r\n            {\r\n                if (that.currentIndex - 1 < 0) return;\r\n\r\n                that.currentIndex--;\r\n                that.setActive(that.currentIndex);\r\n            });\r\n        });\r\n\r\n        that.setActive(0);\r\n    }\r\n\r\n    setActive(index)\r\n    {\r\n        const that = this;\r\n        that.stepsProgress.setActive(index);\r\n        for (let forIndex in that.stepsItems)\r\n        {\r\n            that.stepsItems[forIndex].toggle(forIndex == index);\r\n        }\r\n\r\n        that.nextStepButtons.forEach((nextStepButton) =>\r\n        {\r\n            nextStepButton.toggleForceVisibility(index + 1 < that.stepsItems.length);\r\n            let shortTitle;\r\n            if (that.stepsItems[index + 1]) shortTitle = that.stepsItems[index + 1].getShortTitle();\r\n            else shortTitle = nextStepButton.recipe.buttonText;\r\n            nextStepButton.setTitle(shortTitle);\r\n        });\r\n\r\n        that.previousStepButtons.forEach(\r\n            (previousStepButton) => previousStepButton.toggleForceVisibility(index != 0)\r\n        );\r\n        that.submitButtons.forEach(\r\n            (submitButton) => submitButton.toggleForceVisibility(that.stepsItems.length == index + 1)\r\n        );\r\n        that.currentIndex = index;\r\n        that.configurator.$body.trigger('mb2ls.configurator.stepsManager.setActive', index);\r\n    }\r\n\r\n    /**\r\n     * @param index\r\n     * @return {StepItem}\r\n     */\r\n    getStepItem(index)\r\n    {\r\n        const that = this;\r\n        return that.stepsItems[index];\r\n    }\r\n}\r\n\r\nmodule.exports = StepsManager;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/steps-manager.js","/**\r\n * @property {Element|Field} source\r\n */\r\nclass SummaryItem {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n\r\n        //'hiddenAttribute' or 'field'\r\n        that.type = args.type;\r\n\r\n        that.source = args.source;\r\n        if (that.type === 'hiddenAttribute')\r\n        {\r\n            that.hiddenAttribute = args.hiddenAttribute;\r\n        }\r\n    }\r\n}\r\n\r\n/**\r\n * @property {Array.<SummaryItem>} items\r\n * @property {Configurator} configurator\r\n */\r\nclass Summary {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.items = [];\r\n        that.configurator = args.configurator;\r\n        that.simulatingNonAdmin = false\r\n    }\r\n\r\n    createItem(args)\r\n    {\r\n        const that = this;\r\n        that.items.push(new SummaryItem(args));\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        for (let key in that.items)\r\n        {\r\n            delete that.items[key];\r\n        }\r\n    }\r\n\r\n    getUiItems()\r\n    {\r\n        const that = this;\r\n        const uiItems = [];\r\n        const wasAdmin = that.configurator.templatesData.isAdmin === 'yes';\r\n\r\n        //In Summary we simulate \"isAdmin = false\" to get the same result for admins and visitors.\r\n        //Exclude items displayed for admins only\r\n        if (wasAdmin)\r\n        {\r\n            that.simulatingNonAdmin = true;\r\n            that.configurator.templatesData.isAdmin = 'no';\r\n            that.configurator.updateVisibility(true);\r\n        }\r\n\r\n        that.items.forEach(function (item)\r\n        {\r\n            if (!item.source.getNewVisible()) return true;\r\n\r\n            const uiItem = {};\r\n            if (item.type === 'field')\r\n            {\r\n                /**\r\n                 * @type {Field}\r\n                 */\r\n                const field = item.source;\r\n                const data = field.getData();\r\n                if (data.value === field.getHiddenSummaryValue()) return true;\r\n\r\n                uiItem.uiName = data.uiName;\r\n                uiItem.uiValue = data.uiValue;\r\n                uiItem.hiddenForPublicSummary = field.isHiddenForPublicSummary();\r\n            } else\r\n            {\r\n                uiItem.uiName = item.hiddenAttribute.uiName;\r\n                uiItem.uiValue = item.hiddenAttribute.uiValue;\r\n            }\r\n            uiItems.push(uiItem);\r\n        });\r\n\r\n        //Exclude items displayed for admins only\r\n        if (wasAdmin)\r\n        {\r\n            that.configurator.templatesData.isAdmin = 'yes';\r\n            that.configurator.updateVisibility(true);\r\n            that.simulatingNonAdmin = false;\r\n        }\r\n\r\n        return uiItems;\r\n    }\r\n}\r\n\r\nmodule.exports = Summary;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/summary.js","const utils = require('public/utils.js');\r\n\r\nclass Watchdog {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.configurator = args.configurator;\r\n        that.userInputRecently = false;\r\n        that.timeoutId = null;\r\n        that.timeout = 5000;\r\n        that.eId = utils.generateEventId();\r\n\r\n        //\"click\" event doesn't work, because triggers here after triggering inside elements logic\r\n        //\"off\" is in \"destroy\"\r\n        that.configurator.$body.on(\r\n            `mousedown.${that.eId} touchstart.${that.eId}`,\r\n            $.proxy(that.actionTriggered, that)\r\n        );\r\n        that.actionTriggered();\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        if (that.timeoutId) clearTimeout(that.timeoutId);\r\n\r\n        that.configurator.$body.off(`.${that.eId}`);\r\n    }\r\n\r\n    wasUserInputRecently()\r\n    {\r\n        const that = this;\r\n        return that.userInputRecently;\r\n    }\r\n\r\n    actionTriggered()\r\n    {\r\n        const that = this;\r\n        if (that.timeoutId) clearTimeout(that.timeoutId);\r\n        that.userInputRecently = false;\r\n\r\n        //\"clearTimeout\" is in \"destroy\"\r\n        that.timeoutId = setTimeout(function ()\r\n        {\r\n            that.userInputRecently = true;\r\n        }, that.timeout);\r\n    }\r\n}\r\n\r\nmodule.exports = Watchdog;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/watchdog.js","require('./slider-range.scss');\r\nconst Field = require('../field.js');\r\nconst utils = require('public/utils.js');\r\n\r\n/**\r\n * @property {IonRangeSlider} ionRangeSlider\r\n */\r\nclass SliderRange extends Field {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.$input = $('<input type=\"text\" class=\"js-range-slider\">');\r\n        that.$additionalInput = $('<input type=\"text\" class=\"mb2ls-conf-field-slider-range__additional-input\">');\r\n        that.$input.appendTo(that.$content);\r\n        that.defaultMinMax = utils.split(that.fieldContent.WC_Variation_Values__c);\r\n        that.postfix = 'cm';\r\n\r\n        that.$additionalInput\r\n            .val(that.getFormattedAdditionalInputValue(that.defaultValue))\r\n            .appendTo(that.$content);\r\n\r\n        that.updateRangeSliderTitle(that.defaultMinMax);\r\n        let step = that.fieldContent.WC_Step_Size__c ? parseFloat(that.fieldContent.WC_Step_Size__c) : 1;\r\n        if (step <= 0) step = 1;\r\n\r\n        that.$input.ionRangeSlider({\r\n            skin: \"flat\",\r\n            type: \"single\",\r\n            min: that.defaultMinMax[0],\r\n            max: that.defaultMinMax[1],\r\n            step: step,\r\n            postfix: ` ${that.postfix}`,\r\n            from: that.defaultValue,\r\n            grid: true,\r\n            onChange: function (data)\r\n            {\r\n                that.$additionalInput.val(that.getFormattedAdditionalInputValue(data.from_pretty));\r\n            },\r\n            onFinish: function ()\r\n            {\r\n                that.onChange();\r\n            }\r\n        });\r\n        that.ionRangeSlider = that.$input.data(\"ionRangeSlider\");\r\n\r\n        that.$additionalInput.change(function ()\r\n        {\r\n            let value = that.$additionalInput.val();\r\n            if (that.postfix) value = parseFloat(value);\r\n\r\n            if (isNaN(value) || value < that.ionRangeSlider.result.min) value = that.ionRangeSlider.result.min;\r\n            else if (value > that.ionRangeSlider.result.max) value = that.ionRangeSlider.result.max;\r\n\r\n            //Recover \"cm\" and set limited numbers\r\n            that.$additionalInput.val(that.getFormattedAdditionalInputValue(value));\r\n\r\n            that.ionRangeSlider.update({\r\n                from: value\r\n            });\r\n            that.onChange();\r\n        });\r\n        that.afterConstructorsInit();\r\n    }\r\n\r\n    getFormattedAdditionalInputValue(value)\r\n    {\r\n        const that = this;\r\n        if (that.postfix) return `${value} ${that.postfix}`;\r\n        return value;\r\n    }\r\n\r\n    updateRangeSliderTitle(minMax)\r\n    {\r\n        const that = this;\r\n        //\"mb2ls-conf-field-slider-range__title-text-range\" needs for a customization\r\n        that.$titleText.html(\r\n            `${that.templateItemRecipe.uiName} ` +\r\n            `<span class=\"mb2ls-conf-field-slider-range__title-text-range\">` +\r\n            `(${minMax[0]} ${that.postfix} - ${minMax[1]} ${that.postfix})</span>`\r\n        );\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return 'slider-range';\r\n    }\r\n\r\n    getValue()\r\n    {\r\n        const that = this;\r\n        return that.$input.val();\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        return `${that.getValue()}${that.postfix}`;\r\n    }\r\n\r\n    setValue(value)\r\n    {\r\n        const that = this;\r\n        that.ionRangeSlider.update({\r\n            from: value\r\n        });\r\n        that.$additionalInput.val(that.getFormattedAdditionalInputValue(value));\r\n    }\r\n\r\n    processRestrictions()\r\n    {\r\n        const that = this;\r\n        super.processRestrictions();\r\n        let newMinMax;\r\n\r\n        that.restrItems.forEach(function (restriction)\r\n        {\r\n            if (restriction.Sink_Action__c !== 'Change Min/Max Slider') return false;\r\n\r\n            newMinMax = utils.split(restriction.Sink_Possible_Value_s__c);\r\n        });\r\n        if (!newMinMax) newMinMax = that.defaultMinMax;\r\n\r\n        let changed = false;\r\n        if (that.ionRangeSlider.options.min != newMinMax[0])\r\n        {\r\n            that.ionRangeSlider.update({\r\n                min: newMinMax[0]\r\n            });\r\n            changed = true;\r\n        }\r\n        if (that.ionRangeSlider.options.max != newMinMax[1])\r\n        {\r\n            that.ionRangeSlider.update({\r\n                max: newMinMax[1]\r\n            });\r\n            changed = true;\r\n        }\r\n        if (changed)\r\n        {\r\n            that.updateRangeSliderTitle(newMinMax);\r\n            that.$additionalInput.val(that.getFormattedAdditionalInputValue(that.getValue()));\r\n        }\r\n    }\r\n}\r\n\r\nmodule.exports = SliderRange;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/slider-range/slider-range.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/slider-range/slider-range.scss\n// module id = 134\n// module chunks = 2","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/field.scss\n// module id = 135\n// module chunks = 2","require('./tooltip-trigger.scss');\r\n\r\nclass TooltipTrigger {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-tooltip-trigger\">');\r\n        that.$root.attr('data-mb2ls-tip', args.text);\r\n    }\r\n}\r\n\r\nmodule.exports = TooltipTrigger;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/tooltip/tooltip-trigger.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/tooltip/tooltip-trigger.scss\n// module id = 137\n// module chunks = 2","require('./checkbox.scss');\r\nconst Field = require('../field.js');\r\nconst utils = require('public/utils.js');\r\n\r\nclass Checkbox extends Field {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.$input = $('<input type=\"checkbox\" class=\"mb2ls-conf-field-checkbox__input\">');\r\n        that.$input.appendTo(that.$content);\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.$input.on('change', function ()\r\n        {\r\n            that.onChange();\r\n        });\r\n        this.setValue(that.defaultValue);\r\n\r\n        that.$title.click(function ()\r\n        {\r\n            that.setValue(that.getValue() === 'yes' ? 'no' : 'yes');\r\n            that.$input.trigger('change');\r\n        });\r\n        that.afterConstructorsInit();\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        that.$input.remove();\r\n        super.destroy();\r\n    }\r\n\r\n    getDirection()\r\n    {\r\n        return 'horizontal';\r\n    }\r\n\r\n    isLabelLinkedToInput()\r\n    {\r\n        return true;\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return 'checkbox';\r\n    }\r\n\r\n    getValue()\r\n    {\r\n        const that = this;\r\n        return that.$input.prop('checked') ? 'yes' : 'no';\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        return `${that.getValue()}${that.postfix}`;\r\n    }\r\n\r\n    setValue(value)\r\n    {\r\n        const that = this;\r\n        that.$input.prop('checked', value === 'yes' ? true : false);\r\n    }\r\n}\r\n\r\nmodule.exports = Checkbox;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/checkbox/checkbox.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/checkbox/checkbox.scss\n// module id = 139\n// module chunks = 2","const utils = require('public/utils.js');\r\nconst RatioOptions = require('./radio-options.js');\r\nconst RadioOptionCustom = require('./radio-option-custom.js');\r\n\r\n/**\r\n * @property {Array.<RadioOptionCustom>} options\r\n */\r\nclass RatioOptionsCustom extends RatioOptions {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.afterConstructorsInit();\r\n        if (that.hasImage())\r\n        {\r\n            that.$root.addClass('mb2ls-conf-field-radio-options--image');\r\n\r\n            if (!utils.isDesktop())\r\n            {\r\n                that.$selectedOptionIndicator = $('<div class=\"mb2ls-conf-field__selected-option-indicator\">');\r\n                that.$selectedOptionIndicator.insertAfter(that.$content);\r\n            }\r\n        }\r\n        else that.$root.addClass('mb2ls-conf-field-radio-options--simple');\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'custom';\r\n    }\r\n\r\n    hasImage()\r\n    {\r\n        const that = this;\r\n        if (that.hasImageCache !== undefined) return that.hasImageCache;\r\n        for (let index in that.optionsValues)\r\n        {\r\n            const key = that.optionsValues[index];\r\n            if (!that.fieldContent.WC_Object_Name__c) continue;\r\n            const depOption = that.recipe.depandencies[that.fieldContent.WC_Object_Name__c][key];\r\n            if (depOption === undefined) continue;\r\n            if (depOption.Image_URL_Wordpress__c || depOption.Default_Images__c)\r\n            {\r\n                return that.hasImageCache = true;\r\n            }\r\n        }\r\n        return that.hasImageCache = false;\r\n    }\r\n\r\n    createNewOption(key, uiValue)\r\n    {\r\n        const that = this;\r\n        if (!that.fieldContent.WC_Object_Name__c) return false;\r\n        const depOption = that.recipe.depandencies[that.fieldContent.WC_Object_Name__c][key];\r\n        if (depOption === undefined) return false;\r\n\r\n        return new RadioOptionCustom({\r\n            uiValue: uiValue,\r\n            key: key,\r\n            depOption: depOption,\r\n            recipe: that.recipe,\r\n            field: that,\r\n            hasImage: that.hasImage(),\r\n            multiple: that.multiple\r\n        });\r\n    }\r\n\r\n    onChange()\r\n    {\r\n        const that = this;\r\n        if (that.multiple && that.maxSelection)\r\n        {\r\n            const canChoose = that.canChoose();\r\n            that.options.forEach(function (option)\r\n            {\r\n                option.toggleDisabled(!canChoose && !option.isActive());\r\n            });\r\n        }\r\n        super.onChange();\r\n    }\r\n\r\n    renderVisibility(silent = false)\r\n    {\r\n        const that = this;\r\n        super.renderVisibility();\r\n        if (that.$selectedOptionIndicator)\r\n        {\r\n            const value = that.getUiValue();\r\n            that.$selectedOptionIndicator.html(value ? `<b>ausgewählt:</b> <span>${value}</span>` : '');\r\n        }\r\n    }\r\n\r\n    canChoose()\r\n    {\r\n        const that = this;\r\n        if (!that.multiple) return true;\r\n        if (!that.maxSelection) return true;\r\n        if (that.getActiveOptions().length < that.maxSelection) return true;\r\n        return false;\r\n    }\r\n\r\n    getStyle()\r\n    {\r\n        const that = this;\r\n        const style = super.getStyle();\r\n        return style ? style : 'circle';\r\n    }\r\n}\r\n\r\nmodule.exports = RatioOptionsCustom;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-custom.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options.scss\n// module id = 141\n// module chunks = 2","const utils = require('public/utils.js');\r\nconst RadioOption = require('./radio-option.js');\r\n\r\nclass RadioOptionCustom extends RadioOption {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.depOption = args.depOption;\r\n        that.$root = $('<div class=\"mb2ls-conf-field-radio-options__option\">');\r\n        that.$root.data('mb2lsOption', that);\r\n        that.$root.attr('data-key', args.key);\r\n        that.$tooltipTrigger = null\r\n        that.title = that.getTitle();\r\n        that.options = that.field.configurator.options.fields.radio;\r\n\r\n        let tooltipText = '';\r\n        const tooltipImage =\r\n            // args.field.style === 'circle' &&\r\n            // (that.title === null || !args.hasImage) &&\r\n            that.isTooltipEnabled() &&\r\n            args.depOption.Tooltip_URL_Wordpress__c &&\r\n            args.recipe.media[args.depOption.Tooltip_URL_Wordpress__c];\r\n\r\n        if (args.hasImage)\r\n        {\r\n            let imageAttributes = that.field.configurator.getMediaAttributes(that.getImageId());\r\n            that.$img = $('<img loading=lazy>');\r\n            that.$img\r\n                .attr('src', imageAttributes.src)\r\n                .attr('srcset', imageAttributes.srcset)\r\n                .attr('sizes', that.options.max_sizes);\r\n            if (utils.isDebugMode()) that.$img.attr('data-id', imageAttributes.id);\r\n            that.$img.appendTo(that.$root);\r\n\r\n            if (that.title)\r\n            {\r\n                if (args.field.style === 'circle')\r\n                {\r\n                    if (that.title && !tooltipImage && that.isTooltipEnabled()) tooltipText = that.title;\r\n                } else\r\n                {\r\n                    $('<div class=\"mb2ls-conf-field-radio-options__optionTitle\">')\r\n                        .html(that.title)\r\n                        .attr('title', that.title)\r\n                        .appendTo(that.$root);\r\n                    $(\r\n                        `<div class=\"mb2ls-conf-field-radio-options__optionIcon mb2ls-icon-checkmark\">\r\n                            <div class=\"mb2ls-icon-checkmark__circle\"></div>\r\n                            <div class=\"mb2ls-icon-checkmark__stem\"></div>\r\n                            <div class=\"mb2ls-icon-checkmark__kick\"></div>\r\n                         </div>`\r\n                    ).appendTo(that.$root);\r\n                }\r\n            }\r\n        } else\r\n        {\r\n            that.$root.text(that.title);\r\n        }\r\n\r\n        //Disabled by Lukas request\r\n        // if (utils.isValidStr(args.depOption.Description__c))\r\n        // {\r\n        //     if (tooltipText.length > 0) tooltipText += '<br>';\r\n        //     tooltipText += args.depOption.Description__c;\r\n        // }\r\n\r\n\r\n        if (tooltipImage)\r\n        {\r\n            let mediaUrl = that.field.configurator.getMedia(\r\n                args.depOption.Tooltip_URL_Wordpress__c,\r\n                'mb2ls_300'\r\n            )[0];\r\n            that.$root.attr(\r\n                'data-mb2ls-tip',\r\n                JSON.stringify({\r\n                    heading: tooltipText,\r\n                    images: [mediaUrl]\r\n                })\r\n            );\r\n            that.$tooltipTrigger = that.$root;\r\n        } else if (tooltipText)\r\n        {\r\n            that.$img.attr('data-mb2ls-tip', tooltipText);\r\n            that.$tooltipTrigger = that.$img;\r\n        }\r\n\r\n        that.$root.on('click', function ()\r\n        {\r\n            //Check Max Selection\r\n            if (!that.isActive() && !args.field.canChoose())\r\n            {\r\n                alert(`Es sind nur ${that.field.maxSelection} Optionen verfügbar.`);\r\n                return;\r\n            }\r\n\r\n            if (that.multiple && that.isActive()) that.toggle(false);\r\n            else that.setActive();\r\n            args.field.onChange();\r\n        });\r\n    }\r\n\r\n    toggleDisabled(disabled)\r\n    {\r\n        const that = this;\r\n        that.$root.attr('disabled', disabled);\r\n        if (that.$tooltipTrigger) that.$tooltipTrigger.attr('disabled', disabled);\r\n    }\r\n\r\n    getValue(raw = false)\r\n    {\r\n        const that = this;\r\n        if (!raw)\r\n        {\r\n            const value = that.depOption.Variable_Value__c;\r\n            if (utils.isValidStr(value)) return value;\r\n        }\r\n        return that.args.key;\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        if (utils.isValidStr(that.depOption.UI_Variable_Value__c)) return that.depOption.UI_Variable_Value__c;\r\n        return that.getValue();\r\n    }\r\n\r\n    setActive()\r\n    {\r\n        const that = this;\r\n        super.setActive();\r\n        that.field.setDescription(that.depOption.Description__c);\r\n    }\r\n}\r\n\r\nmodule.exports = RadioOptionCustom;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option-custom.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-switch.scss\n// module id = 143\n// module chunks = 2","require('./radio-options-switch-compact.scss');\r\nconst RatioOptionsSwitch = require('./radio-options-switch.js');\r\nconst RadioOptionSwitchCompact = require('./radio-option-switch-compact.js');\r\n\r\nclass RatioOptionsSwitchCompact extends RatioOptionsSwitch {\r\n\r\n    getClass()\r\n    {\r\n        return 'mb2ls-conf-field-radio-options--switch-compact';\r\n    }\r\n\r\n    createNewOption(key, uiValue)\r\n    {\r\n        const that = this;\r\n        return new RadioOptionSwitchCompact({\r\n            uiValue: uiValue,\r\n            key: key,\r\n            recipe: that.recipe,\r\n            field: that,\r\n            multiple: that.multiple,\r\n            onChange: function ()\r\n            {\r\n                that.onChange();\r\n            }\r\n        });\r\n    }\r\n}\r\n\r\nmodule.exports = RatioOptionsSwitchCompact;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-switch-compact.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-switch-compact.scss\n// module id = 145\n// module chunks = 2","const utils = require('public/utils.js');\r\nconst RadioOptionSwitch = require('./radio-option-switch.js');\r\n\r\nclass RadioOptionSwitchCompact extends RadioOptionSwitch {\r\n    onClick()\r\n    {\r\n        const that = this;\r\n        const nextOption = that.getNextOption();\r\n        nextOption.setActive();\r\n        that.args.onChange();\r\n    }\r\n\r\n    /**\r\n     * @return {RadioOptionSwitchCompact}\r\n     */\r\n    getNextOption()\r\n    {\r\n        const that = this;\r\n        /**\r\n         * @type {RatioOptionsSwitchCompact}\r\n         */\r\n        const field = that.args.field;\r\n        /**\r\n         * @type {RadioOptionSwitchCompact}\r\n         */\r\n        let nextOption = null;\r\n        field.options.some(function (option, index)\r\n        {\r\n            if (option === that)\r\n            {\r\n                if (field.options[index + 1])\r\n                {\r\n                    nextOption = field.options[index + 1];\r\n                } else\r\n                {\r\n                    nextOption = field.options[0];\r\n                }\r\n                return true;\r\n            }\r\n            return false;\r\n        });\r\n        return nextOption;\r\n    }\r\n}\r\n\r\nmodule.exports = RadioOptionSwitchCompact;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option-switch-compact.js","require('./radio-options-classic.scss');\r\n\r\nconst RatioOptions = require('./radio-options.js');\r\nconst RadioOptionClassic = require('./radio-option-classic.js');\r\n\r\nclass RatioOptionsClassic extends RatioOptions {\r\n\r\n    constructor(props)\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root.addClass('mb2ls-conf-field-radio-options--classic');\r\n        that.afterConstructorsInit();\r\n    }\r\n\r\n    createNewOption(key, uiValue)\r\n    {\r\n        const that = this;\r\n        return new RadioOptionClassic({\r\n            uiValue: uiValue,\r\n            key: key,\r\n            recipe: that.recipe,\r\n            field: that,\r\n            multiple: that.multiple,\r\n            onChange: function ()\r\n            {\r\n                that.onChange();\r\n            }\r\n        });\r\n    }\r\n}\r\n\r\nmodule.exports = RatioOptionsClassic;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-classic.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-options-classic.scss\n// module id = 148\n// module chunks = 2","const utils = require('public/utils.js');\r\nconst RadioOption = require('./radio-option.js');\r\n\r\nclass RadioOptionClassic extends RadioOption {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.title = that.getTitle();\r\n        that.$root = $('<div class=\"mb2ls-conf-field-radio-options__option\">');\r\n        that.$toggle = $(`<div class=\"mb2ls-conf-field-radio-options__optionToggle\">`);\r\n        that.$label = $('<span>');\r\n        that.$label.text(that.title);\r\n\r\n        that.$root.data('mb2lsOption', that);\r\n        that.$root.attr('data-key', args.key);\r\n        that.$toggle.appendTo(that.$root);\r\n        that.$label.appendTo(that.$root);\r\n\r\n        that.$toggle.add(that.$label).on('click', function ()\r\n        {\r\n            that.setActive();\r\n            args.onChange();\r\n        });\r\n    }\r\n}\r\n\r\nmodule.exports = RadioOptionClassic;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/radio-options/radio-option-classic.js","require('./dropdown.scss');\r\nconst Field = require('../field.js');\r\nconst utils = require('public/utils.js');\r\n\r\nclass Dropdown extends Field {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.$input = $('<select type=\"text\" class=\"mb2ls-conf-field-dropdown__input\">');\r\n        that.optionsValues = utils.split(that.fieldContent.WC_Variation_Values__c);\r\n\r\n        that.optionsValues.forEach(function (value)\r\n        {\r\n            $('<option>').text(value).appendTo(that.$input);\r\n        });\r\n        that.$input.appendTo(that.$content);\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.$input.on('change', function ()\r\n        {\r\n            that.onChange();\r\n        });\r\n        that.setValue(that.defaultValue);\r\n\r\n        that.$title.click(function ()\r\n        {\r\n            that.$input.focus();\r\n        });\r\n        that.afterConstructorsInit();\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        that.$input.remove();\r\n        super.destroy();\r\n    }\r\n\r\n    isLabelLinkedToInput()\r\n    {\r\n        return true;\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return 'dropdown';\r\n    }\r\n\r\n    getValue()\r\n    {\r\n        const that = this;\r\n        return that.$input.val();\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        return `${that.getValue()}${that.postfix}`;\r\n    }\r\n\r\n    setValue(value)\r\n    {\r\n        const that = this;\r\n        that.$input.val(value);\r\n    }\r\n}\r\n\r\nmodule.exports = Dropdown;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/dropdown/dropdown.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/dropdown/dropdown.scss\n// module id = 151\n// module chunks = 2","require('./text-input.scss');\r\nconst Field = require('../field.js');\r\nconst utils = require('public/utils.js');\r\n\r\nclass TextInput extends Field {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.$input = $('<input type=\"text\" class=\"mb2ls-conf-field-text-input__input\">');\r\n        that.$input.appendTo(that.$content);\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.$input.on('change', function ()\r\n        {\r\n            that.onChange();\r\n        });\r\n        this.setValue(that.defaultValue);\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.$title.click(function ()\r\n        {\r\n            that.$input.focus();\r\n        });\r\n        that.afterConstructorsInit();\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        that.$input.remove();\r\n        that.$title.remove();\r\n        super.destroy();\r\n    }\r\n\r\n    isLabelLinkedToInput()\r\n    {\r\n        return true;\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return 'text-input';\r\n    }\r\n\r\n    getValue()\r\n    {\r\n        const that = this;\r\n        return that.$input.val();\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        return `${that.getValue()}${that.postfix}`;\r\n    }\r\n\r\n    setValue(value)\r\n    {\r\n        const that = this;\r\n        that.$input.val(value);\r\n    }\r\n}\r\n\r\nmodule.exports = TextInput;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/text-input/text-input.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/text-input/text-input.scss\n// module id = 153\n// module chunks = 2","require('./calendly.scss');\r\nconst Field = require('../field.js');\r\nconst utils = require('public/utils.js');\r\n\r\nclass Calendly extends Field {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.$content\r\n            .css('min-width', '320px')\r\n            .css('height', '850px');\r\n        that.afterConstructorsInit();\r\n        that.changeTimeout = null;\r\n        that.currentUrl = null;\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.configurator.$root.on('mb2lsRenderedElements', function ()\r\n        {\r\n            that.configurator.fields.forEach(function (field)\r\n            {\r\n                //\"off\" deosn't required, because we remove the element\r\n                field.$root.on('mb2lsChange', function ()\r\n                {\r\n                    if (that.changeTimeout) clearTimeout(that.changeTimeout);\r\n\r\n                    //\"clearTimeout\" is in \"destroy\"\r\n                    that.changeTimeout = setTimeout(function ()\r\n                    {\r\n                        const fieldsData = that.configurator.getFieldsData(true);\r\n                        const terminArt = fieldsData.TerminArt !== undefined ? fieldsData.TerminArt.rawValue : null;\r\n                        const terminOrt = fieldsData.TerminOrt !== undefined ? fieldsData.TerminOrt.rawValue : null;\r\n\r\n                        if (terminArt === 'Option_LiveVideoCall')\r\n                        {\r\n                            that.initWidget('https://calendly.com/mbzwo/video-call-showroom-berlin');\r\n                        } else if (terminArt === 'Option_PersoehnlicherBeratungstermin')\r\n                        {\r\n                            if (terminOrt === 'Option_ShowroomBerlin')\r\n                            {\r\n                                that.initWidget('https://calendly.com/mbzwo/beratung-showroom');\r\n                            } else if (terminOrt === 'Option_ShowroomVerl')\r\n                            {\r\n                                that.initWidget('https://calendly.com/mbzwo/beratungstermin-showroom-berlin-klon');\r\n                            }\r\n                        }\r\n                        that.changeTimeout = null;\r\n                    }, 1000);\r\n                });\r\n            });\r\n        });\r\n\r\n        //\"removeEventListener\" is in \"destroy\"\r\n        window.addEventListener('message', $.proxy(that.onReceivedCalendlyResponce, that));\r\n    }\r\n\r\n    onReceivedCalendlyResponce(e)\r\n    {\r\n        const that = this;\r\n        if (!that.isCalendlyEvent(e)) return;\r\n\r\n        if (e.data.event === 'calendly.date_and_time_selected') that.unsubmittedEvents++;\r\n        else if (e.data.event === 'calendly.event_scheduled' && that.unsubmittedEvents > 0)\r\n        {\r\n            that.unsubmittedEvents = 0;\r\n            that.isValid();\r\n            that.$root.trigger('mb2ls.calendly.eventScheduled');\r\n        }\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        if (that.changeTimeout) clearTimeout(that.changeTimeout);\r\n        window.removeEventListener('message', $.proxy(that.onReceivedCalendlyResponce, that));\r\n        super.destroy();\r\n    }\r\n\r\n    isEnabledValidator()\r\n    {\r\n        return true;\r\n    }\r\n\r\n    isValid()\r\n    {\r\n        const that = this;\r\n        const errors = [];\r\n        if (that.unsubmittedEvents)\r\n        {\r\n            errors.push(\r\n                'Achtung: Dein Beratungstermin ist noch nicht gebucht! ' +\r\n                'Bitte klicke den „Termin buchen“ Button im rot markierten Bereich.'\r\n            );\r\n        }\r\n        that.$validatorMessage.html(errors.length ? errors.join('<br>') : '');\r\n        that.$root.toggleClass('mb2ls-conf-field--validator-has-error', !!errors.length);\r\n        that.validatorErrors = errors;\r\n        that.updateGlobalValidatorErrors();\r\n        return !errors.length;\r\n    }\r\n\r\n    isCalendlyEvent(e)\r\n    {\r\n        return e.data.event && e.data.event.indexOf('calendly') === 0;\r\n    }\r\n\r\n    initWidget(url)\r\n    {\r\n        const that = this;\r\n        if (that.currentUrl && that.currentUrl === url) return;\r\n\r\n        that.$content.empty();\r\n        that.unsubmittedEvents = 0;\r\n        that.currentUrl = url;\r\n        window.Calendly.initInlineWidget({\r\n            url: url,\r\n            parentElement: that.$content.get(0),\r\n            prefill: {},\r\n            utm: {}\r\n        });\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return 'calendly';\r\n    }\r\n\r\n    // getValue()\r\n    // {\r\n    //     const that = this;\r\n    //     return that.$input.prop('checked') ? 'yes' : 'no';\r\n    // }\r\n    //\r\n    // getUiValue()\r\n    // {\r\n    //     const that = this;\r\n    //     return `${that.getValue()}${that.postfix}`;\r\n    // }\r\n    //\r\n    // setValue(value)\r\n    // {\r\n    //     const that = this;\r\n    //     that.$input.prop('checked', value === 'yes' ? true : false);\r\n    // }\r\n}\r\n\r\nmodule.exports = Calendly;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/calendly/calendly.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/calendly/calendly.scss\n// module id = 155\n// module chunks = 2","require('./textarea.scss');\r\nconst Field = require('../field.js');\r\nconst utils = require('public/utils.js');\r\n\r\nclass Textarea extends Field {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.$input = $('<textarea class=\"mb2ls-conf-field-textarea__input\">');\r\n        that.$input.appendTo(that.$content);\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.$input.on('change', function ()\r\n        {\r\n            that.onChange();\r\n        });\r\n        this.setValue(that.defaultValue);\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.$title.click(function ()\r\n        {\r\n            that.$input.focus();\r\n        });\r\n        that.afterConstructorsInit();\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        that.$input.remove();\r\n        that.$title.remove();\r\n        super.destroy();\r\n    }\r\n\r\n    isLabelLinkedToInput()\r\n    {\r\n        return true;\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return 'textarea';\r\n    }\r\n\r\n    getValue()\r\n    {\r\n        const that = this;\r\n        return that.$input.val();\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        return `${that.getValue()}${that.postfix}`;\r\n    }\r\n\r\n    setValue(value)\r\n    {\r\n        const that = this;\r\n        that.$input.val(value);\r\n    }\r\n}\r\n\r\nmodule.exports = Textarea;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/textarea/textarea.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/textarea/textarea.scss\n// module id = 157\n// module chunks = 2","require('./uploader.scss');\r\nconst Field = require('../field.js');\r\nconst Button = require('../../button/button.js');\r\nconst utils = require('public/utils.js');\r\n\r\nclass Uploader extends Field {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.uploaderUrls = [];\r\n        that.uploaderFilesNames = [];\r\n        that.$list = $('<div class=\"mb2ls-conf-field-uploader__list\">');\r\n        that.$listItem = $('<div class=\"mb2ls-conf-field-uploader__list-item\">');\r\n        that.$listItemRemoveBtn = $('<span class=\"mb2ls-conf-field-uploader__list-item-remove-btn\" title=\"remove\">');\r\n        that.$listItemName = $('<span class=\"mb2ls-conf-field-uploader__list-item-name\">');\r\n        const $button = $(`<div class=\"mb2ls-conf-btn mb2ls-conf-btn--style--circle mb2ls-conf-field-uploader__btn\"></div>`);\r\n\r\n        $(\"<i class='mb2ls-icon-plus'>\").addClass('mb2ls-conf-btn__icon').appendTo($button);\r\n        $(`<div class=\"mb2ls-conf-btn__title\">Upload</div>`).appendTo($button);\r\n        that.$input =\r\n            $('<input type=\"file\" name=\"files[]\" multiple class=\"mb2ls-conf-field-uploader__hidden-input\">')\r\n                .appendTo($button);\r\n        that.$list.appendTo(that.$content);\r\n        $button.appendTo(that.$content);\r\n\r\n\r\n        that.$input.fileupload({\r\n            url: `/wp-json/mb2-leads/v1/configurator/upload`,\r\n            //  acceptFileTypes: /\\.(png|jpe?g|png|pdf|doc|docx|xls|csv)$/i,\r\n            dataType: 'json',\r\n            formData: {\r\n                // attachTo: args.attachTo,\r\n                // id: args.id,\r\n                // category: args.category\r\n            },\r\n            start: function ()\r\n            {\r\n                that.toggleActionsOppartunity(false);\r\n            },\r\n            done: function (e, data)\r\n            {\r\n                that.toggleActionsOppartunity(true);\r\n\r\n                for (var key in data.result.files)\r\n                {\r\n                    var file = data.result.files[key];\r\n                    if (file.error)\r\n                    {\r\n                        alert(file.error);\r\n                        return;\r\n                    }\r\n                    that.uploaderUrls.push(file.url);\r\n                    that.updateUploaderList();\r\n                }\r\n            },\r\n            progressall: function (e, data)\r\n            {\r\n                //console.log('progressall:data', data);\r\n                // if (!progressDisplayed)\r\n                // {\r\n                //     $progress.css('display', 'block');\r\n                //     progressDisplayed = true;\r\n                // }\r\n                // var progress = parseInt(data.loaded / data.total * 100, 10);\r\n                // $progressBar.css('width', progress + '%');\r\n            }\r\n        });\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.$list.on('click', '.mb2ls-conf-field-uploader__list-item-remove-btn', function ()\r\n        {\r\n            const $listItem = $(this).closest('.mb2ls-conf-field-uploader__list-item');\r\n            const utl = $listItem.data('mb2ls-url');\r\n            for (let key in that.uploaderUrls)\r\n            {\r\n                if (that.uploaderUrls[key] === utl)\r\n                {\r\n                    that.uploaderUrls.splice(key, 1)\r\n                    break;\r\n                }\r\n            }\r\n            console.log('that.uploaderUrls', that.uploaderUrls);\r\n            that.updateUploaderList()\r\n        });\r\n\r\n        that.afterConstructorsInit();\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        utils.deepRemove(that.$list);\r\n        super.destroy();\r\n    }\r\n\r\n    isHiddenForPublicSummary()\r\n    {\r\n        const that = this;\r\n        return that.templateItemRecipe.hiddenForPublicSummary === undefined ? true : super.isHiddenForPublicSummary();\r\n    }\r\n\r\n    updateUploaderFilesNames()\r\n    {\r\n        const that = this;\r\n        that.uploaderFilesNames = [];\r\n        that.uploaderUrls.forEach(function (url)\r\n        {\r\n            that.uploaderFilesNames.push(decodeURI(url).replace(/^.*[\\\\\\/]/, ''));\r\n        });\r\n    }\r\n\r\n    updateUploaderList()\r\n    {\r\n        const that = this;\r\n        that.$list.empty();\r\n        that.$root.toggleClass('mb2ls-conf-field--uploader-has-items', !!that.uploaderUrls.length);\r\n        that.updateUploaderFilesNames();\r\n        let index = 0;\r\n        that.uploaderUrls.forEach(function (url)\r\n        {\r\n            const name = that.uploaderFilesNames[index];\r\n            const $listItem = that.$listItem.clone();\r\n            const $listItemName = that.$listItemName.clone();\r\n            const $listItemRemoveBtn = that.$listItemRemoveBtn.clone();\r\n            $listItem.attr('data-mb2ls-url', url);\r\n            $listItemName\r\n                .text(name)\r\n                .appendTo($listItem);\r\n            $listItemRemoveBtn.appendTo($listItem);\r\n            $listItem.appendTo(that.$list);\r\n            index++;\r\n        });\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return 'uploader';\r\n    }\r\n\r\n    getValue()\r\n    {\r\n        const that = this;\r\n        return that.uploaderUrls.join(';');\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        return that.uploaderFilesNames.join(', ');\r\n    }\r\n\r\n    setValue(value)\r\n    {\r\n        const that = this;\r\n        that.uploaderUrls = utils.split(value);\r\n        that.updateUploaderList();\r\n    }\r\n}\r\n\r\nmodule.exports = Uploader;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/uploader/uploader.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/fields/uploader/uploader.scss\n// module id = 159\n// module chunks = 2","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/button/button.scss\n// module id = 160\n// module chunks = 2","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/icons/icons.scss\n// module id = 161\n// module chunks = 2","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/element.scss\n// module id = 162\n// module chunks = 2","const Field = require('../field.js');\r\nconst utils = require('public/utils.js');\r\n\r\n/**\r\n * @property {Field} parentField\r\n */\r\nclass Parent extends Field {\r\n    constructor(args)\r\n    {\r\n        super(args);\r\n        const that = this;\r\n        that.parentField = args.parentField;\r\n        that.parentField.$root.on(`mb2lsChange.${that.eId}`, $.proxy(that.onChange, that));\r\n        that.afterConstructorsInit();\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        that.parentField.$root.off(`.${that.eId}`);\r\n        delete that.parentField;\r\n        super.destroy();\r\n    }\r\n\r\n    getName()\r\n    {\r\n        return 'parent';\r\n    }\r\n\r\n    getValue()\r\n    {\r\n        const that = this;\r\n        return that.parentField.getValue(...arguments);\r\n    }\r\n\r\n    getUiKey()\r\n    {\r\n        const that = this;\r\n        return that.parentField.getUiKey(...arguments);\r\n    }\r\n\r\n    isHiddenForPublicSummary()\r\n    {\r\n        const that = this;\r\n        return that.parentField.isHiddenForPublicSummary(...arguments);\r\n    }\r\n\r\n    getHiddenSummaryValue()\r\n    {\r\n        const that = this;\r\n        return that.parentField.getHiddenSummaryValue(...arguments);\r\n    }\r\n\r\n    isCartItemHidden()\r\n    {\r\n        const that = this;\r\n        return that.parentField.isCartItemHidden(...arguments);\r\n    }\r\n\r\n    getUiValue()\r\n    {\r\n        const that = this;\r\n        return that.parentField.getUiValue(...arguments);\r\n    }\r\n\r\n    // setValue(value)\r\n    // {\r\n    //     const that = this;\r\n    //     return that.parentField.setValue(value);\r\n    // }\r\n}\r\n\r\nmodule.exports = Parent;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/fields/parent/parent.js","require('./accordion.scss');\r\nconst Element = require('../element.js');\r\n\r\nclass Accordion extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-accordion\">');\r\n        that.$sections = $();\r\n        that.openFirstSectionOnLoad =\r\n            that.recipe.openFirstSectionOnLoad !== undefined ? that.recipe.openFirstSectionOnLoad : true;\r\n        that.openAllSectionsOnLoad =\r\n            that.recipe.openAllSectionsOnLoad !== undefined ? that.recipe.openAllSectionsOnLoad : false;\r\n        that.unlinkedSections =\r\n            that.recipe.unlinkedSections !== undefined ? that.recipe.unlinkedSections : false;\r\n\r\n        if (that.openFirstSectionOnLoad)\r\n        {\r\n            //\"off\" deosn't required, because we remove the element\r\n            $(that.configurator.$root).on('mb2lsRenderedElements', function ()\r\n            {\r\n                that.$sections = that.$root.find('.mb2ls-conf-accordion__section');\r\n\r\n                /**\r\n                 * @type AccordionSection\r\n                 */\r\n                const section = that.$sections.eq(0).data('mb2lsElement');\r\n                section.toggle(true);\r\n            });\r\n        }\r\n\r\n        that.afterRootInit();\r\n    }\r\n\r\n    getItemDataByItemName(itemName)\r\n    {\r\n        const that = this;\r\n        that.itemsRecipe.forEach(function (sectionRecipe)\r\n        {\r\n            if (sectionRecipe.itemName === itemName) return sectionRecipe;\r\n        });\r\n        return null;\r\n    }\r\n}\r\n\r\nmodule.exports = Accordion;\r\n\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/accordion/accordion.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/accordion/accordion.scss\n// module id = 165\n// module chunks = 2","const utils = require('public/utils.js');\r\nconst Element = require('../element.js');\r\n\r\n/**\r\n * @property {Accordion} accordion\r\n * @property {Array.<Field>} fields\r\n */\r\nclass AccordionSection extends Element {\r\n    constructor(args, $parent)\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-accordion__section\">');\r\n        that.$body = $('<div class=\"mb2ls-conf-accordion__sectionBody\">');\r\n        that.$head = $('<div class=\"mb2ls-conf-accordion__sectionHead\">');\r\n        that.$title = $('<div class=\"mb2ls-conf-accordion__sectionTitle\">');\r\n        that.$toggle = $('<div class=\"mb2ls-conf-accordion__sectionToggle\">');\r\n        that.$title.html(args.title);\r\n        that.$title.appendTo(that.$head);\r\n        that.$toggle.appendTo(that.$head);\r\n        that.$head.appendTo(that.$root);\r\n        that.formPage = window.mb2ls.configurator.constructor.name === 'ConfiguratorForm';\r\n        that.fields = [];\r\n        that.fieldValidationErrorTimeout = null;\r\n        that.toggleTimeout = null;\r\n\r\n        if (that.formPage) that.$body.appendTo(that.$root);\r\n        that.$root.attr('data-mb2ls-id', args.title.toLowerCase());\r\n        that.$root.data('mb2ls-section', that);\r\n        that.$accordion = $parent;\r\n        that.accordion = that.$accordion.data('mb2lsElement');\r\n\r\n        that.$head.click(function ()\r\n        {\r\n            if (!that.accordion.openAllSectionsOnLoad && !that.accordion.unlinkedSections)\r\n            {\r\n                that.accordion.$sections.filter('.mb2ls-conf-accordion__section--opened').each(function ()\r\n                {\r\n                    const $section = $(this);\r\n\r\n                    //Skip the clicked section\r\n                    //.not doesn't work in some cases\r\n                    if ($section.is(that.$root)) return true;\r\n\r\n                    /**\r\n                     * @type AccordionSection\r\n                     */\r\n                    const section = $section.data('mb2lsElement');\r\n                    section.toggle(false);\r\n                });\r\n            }\r\n            const opened = that.$root.hasClass('mb2ls-conf-accordion__section--opened');\r\n\r\n            //Scroll to the section if it'll be open\r\n            if (!opened && !that.accordion.unlinkedSections) utils.scroll({$target: that.$root, waitForStableHeight: true});\r\n\r\n            that.toggle(!opened);\r\n        });\r\n        that.afterRootInit();\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.configurator.$root.on('mb2lsRenderedElements', function ()\r\n        {\r\n            that.$body.find('.mb2ls-conf-field').each(function ()\r\n            {\r\n                const $field = $(this);\r\n                /**\r\n                 * @type {Field}\r\n                 */\r\n                const field = $field.data('mb2lsField');\r\n                that.fields.push(field);\r\n\r\n                //\"off\" deosn't required, because we remove the element\r\n                field.$root.on('mb2ls.field.validatorErrorsChanged', $.proxy(that.onChangedFieldValidationError, that))\r\n            });\r\n\r\n\r\n            if (!that.formPage)\r\n            {\r\n                that.configurator.tooltipManager.addElements(that.$body.find('[data-mb2ls-tip]'));\r\n            }\r\n\r\n            if (that.accordion.openAllSectionsOnLoad)\r\n            {\r\n                that.toggle(true);\r\n            }\r\n        });\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        if (that.fieldValidationErrorTimeout) clearTimeout(that.fieldValidationErrorTimeout);\r\n        if (that.toggleTimeout) clearTimeout(that.toggleTimeout);\r\n        super.destroy();\r\n    }\r\n\r\n    onChangedFieldValidationError()\r\n    {\r\n        const that = this;\r\n        if (!that.fieldValidationErrorTimeout) clearTimeout(that.fieldValidationErrorTimeout);\r\n\r\n        //\"clearTimeout\" is in \"destroy\"\r\n        that.fieldValidationErrorTimeout = setTimeout(function ()\r\n        {\r\n            const hasError = that.fields.some(function (field)\r\n            {\r\n                return field.validatorErrors && field.validatorErrors.length;\r\n            });\r\n            that.$root.toggleClass('mb2ls-conf-accordion__section--validator-has-error', hasError);\r\n        }, 200);\r\n    }\r\n\r\n    toggle(open)\r\n    {\r\n        const that = this;\r\n\r\n        if (that.toggleTimeout) clearTimeout(that.toggleTimeout);\r\n        if (that.formPage)\r\n        {\r\n            that.$root.toggleClass('mb2ls-conf-accordion__section--opened', open);\r\n        } else\r\n        {\r\n            //TODO: get it work for form pages,\r\n            // today it doesn't work because of there is direct selectors like this \"('.mb2ls-conf-field...\"\r\n            if (open)\r\n            {\r\n                that.$body.appendTo(that.$root);\r\n            } else\r\n            {\r\n                that.$body.detach();\r\n            }\r\n            //\"clearTimeout\" is in \"destroy\"\r\n            that.toggleTimeout = setTimeout(function ()\r\n            {\r\n                that.$root.toggleClass('mb2ls-conf-accordion__section--opened', open);\r\n            }, 100);\r\n        }\r\n    }\r\n}\r\n\r\nmodule.exports = AccordionSection;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/accordion/accordionSection.js","require('public/modules/grid/grid.scss');\r\nconst Element = require('../element.js');\r\n\r\nclass Row extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-row mb2ls-row\">');\r\n        that.afterRootInit();\r\n    }\r\n}\r\n\r\nmodule.exports = Row;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/row/row.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/grid/grid.scss\n// module id = 168\n// module chunks = 2","require('./column.scss');\r\nconst Element = require('../element.js');\r\n\r\nclass Column extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $(`<div class=\"mb2ls-conf-row__col mb2ls-col\">`);\r\n        if (that.recipe.size) that.$root.addClass(`mb2ls-col-${that.recipe.size}`);\r\n        if (that.recipe.contentAlign) that.$root.addClass(`mb2ls-col--content-align--${that.recipe.contentAlign}`);\r\n        that.afterRootInit();\r\n    }\r\n\r\n    onUpdateChildVisibility()\r\n    {\r\n        const that = this;\r\n        if (!that.recipe.hideIfEmpty) return;\r\n\r\n        let hasVisible = false;\r\n        that.$root.find('>*').each(function ()\r\n        {\r\n            const $element = $(this);\r\n            const element = $element.data('mb2lsElement');\r\n            if (!element) return true;\r\n\r\n            if (element.visible)\r\n            {\r\n                hasVisible = true;\r\n                return false;\r\n            }\r\n        });\r\n        that.$root.toggleClass('mb2ls-conf-row__col--hidden', !hasVisible);\r\n    }\r\n}\r\n\r\nmodule.exports = Column;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/column/column.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/column/column.scss\n// module id = 170\n// module chunks = 2","require('./html.scss');\r\nconst Element = require('../element.js');\r\n\r\nclass Html extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.template = that.recipe.content;\r\n        that.html = '';\r\n        that.$root = $('<div class=\"mb2ls-conf-html\"></div>');\r\n        that.set(that.template);\r\n        const matches = /{{hiddenAttributes\\.([^.]*)/i.exec(that.template);\r\n        if (matches && matches[1] && that.configurator.hiddenAttributes[matches[1]])\r\n        {\r\n\r\n            that.configurator.summary.createItem({\r\n                type: 'hiddenAttribute',\r\n                source: that,\r\n                hiddenAttribute: that.configurator.hiddenAttributes[matches[1]]\r\n            });\r\n        }\r\n        that.afterRootInit();\r\n    }\r\n\r\n    set(html)\r\n    {\r\n        const that = this;\r\n        that.html = html;\r\n        that.$root.html(html);\r\n    }\r\n}\r\n\r\nmodule.exports = Html;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/html/html.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/html/html.scss\n// module id = 172\n// module chunks = 2","const InfoBox = require('../info-box/info-box.js');\r\n\r\nclass ErrorBox extends InfoBox {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'error';\r\n    }\r\n}\r\n\r\nmodule.exports = ErrorBox;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/error-box/error-box.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/info-box/info-box.scss\n// module id = 174\n// module chunks = 2","const InfoBox = require('../info-box/info-box.js');\r\n\r\nclass NoticeBox extends InfoBox {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'notice';\r\n    }\r\n}\r\n\r\nmodule.exports = NoticeBox;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/notice-box/notice-box.js","const Button = require('../button/button.js');\r\n\r\nclass LinkButton extends Button {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'link';\r\n    }\r\n\r\n    onClick(e)\r\n    {\r\n        const that = this;\r\n        if (that.recipe.newTab) window.open(that.recipe.url, '_blank').focus();\r\n        else location.href = that.recipe.url;\r\n    }\r\n}\r\n\r\nmodule.exports = LinkButton;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/link-button/link-button.js","const Button = require('../button/button.js');\r\n\r\n/**\r\n * @property {Popup} popup\r\n */\r\nclass PopupButton extends Button {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.popup = that.configurator.popup;\r\n        that.popupContent = that.recipe.popupContent;\r\n        that.popupTitle = that.recipe.popupTitle;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'popup';\r\n    }\r\n\r\n    setPopupContent(content)\r\n    {\r\n        const that = this;\r\n        that.popupContent = content;\r\n    }\r\n\r\n    setPopupTitle(title)\r\n    {\r\n        const that = this;\r\n        that.popupTitle = title;\r\n    }\r\n\r\n    onClick()\r\n    {\r\n        const that = this;\r\n        that.popup.setContent(that.popupContent, that.popupTitle);\r\n        that.popup.toggle(true);\r\n    }\r\n}\r\n\r\nmodule.exports = PopupButton;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/popup-button/popup-button.js","const Button = require('../button/button.js');\r\n\r\nclass PreviousStepButton extends Button {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'prevoius-step';\r\n    }\r\n\r\n    onClick(e)\r\n    {\r\n        const that = this;\r\n    }\r\n}\r\n\r\nmodule.exports = PreviousStepButton;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/previous-step-button/previous-step-button.js","const Button = require('../button/button.js');\r\n\r\nclass InstantiateButton extends Button {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'instantiate';\r\n    }\r\n\r\n    onClick(e)\r\n    {\r\n        const that = this;\r\n    }\r\n}\r\n\r\nmodule.exports = InstantiateButton;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/instantiate-button/instantiate-button.js","const Button = require('../button/button.js');\r\n\r\nclass SubmitButton extends Button {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n    }\r\n\r\n    getRedirectUrl()\r\n    {\r\n        const that = this;\r\n        if (that.recipe.redirectOnSubmit !== undefined) return that.recipe.redirectOnSubmit;\r\n\r\n        //TODO: set the url in template (\"redirectOnSubmit\")\r\n        return 'https://mb-zwo.de/angebotsanfrage-danke/';\r\n\r\n        return null;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'submit';\r\n    }\r\n\r\n    onClick(e)\r\n    {\r\n        const that = this;\r\n    }\r\n}\r\n\r\nmodule.exports = SubmitButton;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/submit-button/submit-button.js","const Button = require('../button/button.js');\r\n\r\nclass NextStepButton extends Button {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'next-step';\r\n    }\r\n\r\n    onClick(e)\r\n    {\r\n        const that = this;\r\n    }\r\n}\r\n\r\nmodule.exports = NextStepButton;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/next-step-button/next-step-button.js","require('./steps-progress.scss');\r\nconst Element = require('../element.js');\r\n\r\nclass StepsProgress extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-steps-progress\">');\r\n        that.itemsCount = 0;\r\n        that.afterRootInit();\r\n    }\r\n\r\n    addItem(title)\r\n    {\r\n        const that = this;\r\n        const itemIndex = that.itemsCount;\r\n        const $item = $('<div class=\"mb2ls-conf-steps-progress__item\">');\r\n        const $circle = $('<div class=\"mb2ls-conf-steps-progress__itemContent\">');\r\n        const $title = $('<div class=\"mb2ls-conf-steps-progress__itemTitle\">');\r\n        const $triangle = $('<div class=\"mb2ls-conf-steps-progress__itemTriangle\">');\r\n        const $titleSpan = $('<span>');\r\n        $titleSpan.appendTo($title);\r\n        $titleSpan.html(title);\r\n        $circle.appendTo($item);\r\n        $title.appendTo($item);\r\n        $triangle.appendTo($circle);\r\n        $item.appendTo(that.$root);\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        $circle.add($titleSpan).on('click', function ()\r\n        {\r\n            if (\r\n                !$item.hasClass('mb2ls-conf-steps-progress__item--filed') &&\r\n                !$item.hasClass('mb2ls-conf-steps-progress__item--next')\r\n            ) return;\r\n            that.$root.trigger('mb2lsClick', itemIndex);\r\n        });\r\n        that.itemsCount++;\r\n    }\r\n\r\n    setActive(index)\r\n    {\r\n        const that = this;\r\n        let eachIndex = 0;\r\n        that.$root.find('.mb2ls-conf-steps-progress__item').each(function (item)\r\n        {\r\n            const $item = $(this);\r\n            $item\r\n                .removeClass('mb2ls-conf-steps-progress__item--active')\r\n                .removeClass('mb2ls-conf-steps-progress__item--filed')\r\n                .removeClass('mb2ls-conf-steps-progress__item--next');\r\n            if (eachIndex === index)\r\n            {\r\n                $item.addClass('mb2ls-conf-steps-progress__item--active');\r\n            } else if (eachIndex < index)\r\n            {\r\n                $item.addClass('mb2ls-conf-steps-progress__item--filed');\r\n            } else if (eachIndex === index + 1)\r\n            {\r\n                $item.addClass('mb2ls-conf-steps-progress__item--next');\r\n            }\r\n            eachIndex++;\r\n        });\r\n    }\r\n}\r\n\r\nmodule.exports = StepsProgress;\r\n\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/steps-progress/steps-progress.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/steps-progress/steps-progress.scss\n// module id = 183\n// module chunks = 2","require('./steps-item.scss');\r\nconst utils = require('public/utils.js');\r\nconst Element = require('../element.js');\r\n\r\nclass StepItem extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.title = that.recipe.title;\r\n        that.$root = $('<div class=\"mb2ls-conf-step-item\">');\r\n        that.valid = true;\r\n        that.active = false;\r\n\r\n        //Will set by StepsManager\r\n        that.index = null;\r\n\r\n        that.afterRootInit();\r\n    }\r\n\r\n    setIndex(index)\r\n    {\r\n        const that = this;\r\n        that.index = index;\r\n    }\r\n\r\n    getShortTitle()\r\n    {\r\n        const that = this;\r\n        return that.recipe.shortTitle;\r\n    }\r\n\r\n    toggle(active)\r\n    {\r\n        const that = this;\r\n        that.$root.toggleClass('mb2ls-conf-step-item--active', active);\r\n        that.active = active;\r\n        that.$root.trigger('mb2lsToggle', active);\r\n        active && that.configurator.$root.attr('data-mb2ls-step-item-current-step', that.index + 1);\r\n        if (active && that.configurator.calledMaybeUpdateCriticalHtml)\r\n        {\r\n            utils.scroll({$target: that.$root});\r\n        }\r\n    }\r\n\r\n    isValid()\r\n    {\r\n        const that = this;\r\n        const fields = [];\r\n        that.$root.find('.mb2ls-conf-field').each(function ()\r\n        {\r\n            /**\r\n             * @type {Field}\r\n             */\r\n            const field = $(this).data('mb2lsField');\r\n            fields.push(field);\r\n        });\r\n        return that.valid = that.configurator.isValid(fields);\r\n    }\r\n}\r\n\r\nmodule.exports = StepItem;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/step-item/step-item.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/step-item/steps-item.scss\n// module id = 185\n// module chunks = 2","const utils = require('public/utils.js');\r\nconst Element = require('../element.js');\r\n\r\n/**\r\n * @property {Array.<Field>} fields\r\n */\r\nclass Instantiator extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-instantiator\">');\r\n        that.$stepItems = $();\r\n        that.instancesData = {};\r\n        that.fields = [];\r\n        that.currentInstanceId = that.generateId();\r\n        that.jsonKey = that.recipe.jsonKey;\r\n        that.productFrameInside = false;\r\n        that.editProductFreme = false;\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.configurator.$root.on('mb2lsRenderedElements', function ()\r\n        {\r\n            that.productFrameInside = !!that.$root.find('.mb2ls-conf-product-frame').length;\r\n            that.init();\r\n        });\r\n        that.afterRootInit();\r\n    }\r\n\r\n    initInstantiateButtonsVisibilityToggle()\r\n    {\r\n        const that = this;\r\n        let oneOfStepsIsActive = false;\r\n        let toggledSteps = 0;\r\n        that.$stepItems.on('mb2lsToggle', function (e, active)\r\n        {\r\n            toggledSteps++;\r\n            if (active) oneOfStepsIsActive = true;\r\n            if (toggledSteps === that.$stepItems.length)\r\n            {\r\n                if (that.configurator.elements.instantiateButtons)\r\n                {\r\n                    that.configurator.elements.instantiateButtons.forEach(function (instantiateButton)\r\n                    {\r\n                        instantiateButton.toggleForceVisibility(\r\n                            oneOfStepsIsActive\r\n                        );\r\n                    });\r\n                }\r\n                toggledSteps = 0;\r\n                oneOfStepsIsActive = false;\r\n            }\r\n        });\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        utils.deepRemove(that.$stepItems);\r\n        super.destroy();\r\n    }\r\n\r\n    init()\r\n    {\r\n        const that = this;\r\n        that.$stepItems = that.$root.find('.mb2ls-conf-step-item');\r\n        that.initFields();\r\n        that.initInstantiateButtonsVisibilityToggle();\r\n\r\n        if (that.configurator.elements.productFrame)\r\n        {\r\n            //\"off\" deosn't required, because we remove the element\r\n            that.configurator.elements.productFrame.$root.on('mb2lsBeforeChangeProduct', function ()\r\n            {\r\n                that.configurator.cartsManager.createUpdateItem(\r\n                    that.currentInstanceId,\r\n                    'instantiator',\r\n                    that.fields,\r\n                );\r\n                that.configurator.cartsManager.setActive(that.currentInstanceId, true);\r\n            });\r\n\r\n            //\"off\" deosn't required, because we remove the element\r\n            that.configurator.elements.productFrame.$root.on('mb2lsChangedProduct', function ()\r\n            {\r\n                that.initFields();\r\n                that.configurator.cartsManager.createUpdateItem(\r\n                    that.currentInstanceId,\r\n                    'instantiator',\r\n                    that.fields\r\n                );\r\n                if (that.instancesData[that.currentInstanceId] === undefined)\r\n                {\r\n                    that.instancesData[that.currentInstanceId] = that.getDefaultInstanceData();\r\n                }\r\n                if (that.editProductFreme)\r\n                {\r\n                    that.configurator.cartsManager.setActive(that.currentInstanceId, false);\r\n                    that.fields.forEach(function (field)\r\n                    {\r\n                        //Skip not Product Frame fields\r\n                        if (!field.configurator.parent) return true;\r\n\r\n                        const savedFieldData = that.instancesData[that.currentInstanceId].fields[field.getKey()];\r\n                        if (!savedFieldData) return true;\r\n\r\n                        //field.defaultValue = savedFieldData.rawValue;\r\n                        field.setValue(savedFieldData !== undefined ? savedFieldData.rawValue : field.defaultValue, true);\r\n                    });\r\n\r\n                    that.fields.forEach(function (field)\r\n                    {\r\n                        //Skip not Product Frame fields\r\n                        if (!field.configurator.parent) return true;\r\n                        field.onChange();\r\n                    });\r\n\r\n                    that.editProductFreme = false;\r\n                }\r\n\r\n                that.configurator.cartsManager.setActive(that.currentInstanceId)\r\n            });\r\n        }\r\n\r\n        if (that.configurator.elements.instantiateButtons)\r\n        {\r\n            that.configurator.elements.instantiateButtons.forEach(function (instantiateButton)\r\n            {\r\n                //\"off\" deosn't required, because we remove the element\r\n                instantiateButton.$root.on('mb2lsClick', function ()\r\n                {\r\n                    if (!that.configurator.stepsManager.getStepItem(that.configurator.stepsManager.currentIndex).isValid())\r\n                    {\r\n                        return;\r\n                    }\r\n\r\n                    that.configurator.cartsManager.detouchFieldsByInstance(that.currentInstanceId)\r\n                    that.collectInstanceData();\r\n\r\n                    that.currentInstanceId = that.generateId();\r\n                    that.instancesData[that.currentInstanceId] = that.getDefaultInstanceData();\r\n\r\n                    that.resetToDefault();\r\n                    that.onUpdatedCountOfInstances();\r\n                });\r\n            });\r\n        }\r\n        that.onUpdatedCountOfInstances();\r\n    }\r\n\r\n    getDefaultInstanceData()\r\n    {\r\n        return {\r\n            fields: {},\r\n            productAttributes: {}\r\n        };\r\n    }\r\n\r\n    generateId()\r\n    {\r\n        return utils.generateId('instantiator', 'inst_');\r\n    }\r\n\r\n    resetToDefault()\r\n    {\r\n        const that = this;\r\n\r\n        //Reset to default\r\n        let productFrameProductSelectorField = null;\r\n        that.fields.forEach(function (field)\r\n        {\r\n            //Skip Product Frame fields because we'll reload thise fields anyway\r\n            if (field.configurator.parent) return true;\r\n\r\n\r\n            /**\r\n             * FIXME: resetValue might work incorrectly because it based on \"getFirstVisibleOption\",\r\n             * but the visibility might change latter...\r\n             */\r\n            field.resetValue();\r\n\r\n            //We need to use the following lines beceuse on change this field we lost content of Product Frame\r\n            if (field.templateItemRecipe.productFrameProductSelector)\r\n            {\r\n                productFrameProductSelectorField = field;\r\n            } else\r\n            {\r\n                field.onChange();\r\n            }\r\n        });\r\n        if (productFrameProductSelectorField)\r\n        {\r\n            productFrameProductSelectorField.onChange();\r\n        }\r\n\r\n        that.goToFirstStep();\r\n    }\r\n\r\n    goToFirstStep()\r\n    {\r\n        const that = this;\r\n        that.configurator.stepsManager.setActive(that.$stepItems.eq(0).data('mb2lsElement').index);\r\n    }\r\n\r\n    edit(index)\r\n    {\r\n        const that = this;\r\n        console.log('edit', index, that.currentInstanceId);\r\n\r\n        if (index !== that.currentInstanceId)\r\n        {\r\n            if (that.currentInstanceId !== null)\r\n            {\r\n                that.configurator.cartsManager.detouchFieldsByInstance(that.currentInstanceId);\r\n                that.collectInstanceData();\r\n            }\r\n\r\n            that.currentInstanceId = index;\r\n\r\n            console.time('edit:setValue');\r\n            that.fields.forEach(function (field)\r\n            {\r\n                //Skip fields of Product Frame\r\n                if (field.configurator.parent)\r\n                {\r\n                    that.editProductFreme = true;\r\n                    return true;\r\n                }\r\n\r\n                const savedFieldData = that.instancesData[that.currentInstanceId].fields[field.getKey()];\r\n\r\n                //  field.defaultValue = savedFieldData.value;\r\n                field.setValue(savedFieldData !== undefined ? savedFieldData.rawValue : field.defaultValue, true);\r\n            });\r\n            console.timeEnd('edit:setValue');\r\n\r\n\r\n            console.time('edit:onChange');\r\n            that.fields.forEach(function (field)\r\n            {\r\n                //Skip fields of Product Frame\r\n                if (field.configurator.parent) return true;\r\n                field.onChange();\r\n            });\r\n            console.timeEnd('edit:onChange')\r\n        }\r\n    }\r\n\r\n    onUpdatedCountOfInstances()\r\n    {\r\n        const that = this;\r\n        let count = Object.keys(that.instancesData).length;\r\n\r\n        //On init\r\n        if (count === 0) count = 1;\r\n\r\n        that.configurator.$root.attr('data-mb2ls-instances-count', count);\r\n    }\r\n\r\n    remove(id)\r\n    {\r\n        const that = this;\r\n        delete that.instancesData[id];\r\n\r\n        if (that.getInstancesDataAmount() === 0)\r\n        {\r\n            that.currentInstanceId = that.generateId();\r\n            that.resetToDefault();\r\n        }\r\n        that.onUpdatedCountOfInstances();\r\n    }\r\n\r\n    collectInstanceData()\r\n    {\r\n        const that = this;\r\n        const instancesDataItem = that.getDefaultInstanceData();\r\n\r\n        that.fields.forEach(function (field)\r\n        {\r\n            if (field.getNewVisible())\r\n            {\r\n                if (field.templateItemRecipe.sourceOfInstanceAttributes)\r\n                {\r\n                    instancesDataItem.productAttributes =\r\n                        that.configurator.getProductAttributes(field.getValue(true));\r\n                }\r\n                instancesDataItem.fields[field.getKey()] = $.extend(true, {}, field.getData());\r\n            }\r\n        });\r\n\r\n        if (instancesDataItem.productAttributes)\r\n        {\r\n            instancesDataItem.productAttributes.hiddenAttributes.priceAdditionObjects =\r\n                that.configurator.getPriceAdditionObjects(instancesDataItem.fields);\r\n            instancesDataItem.fields = that.configurator.removePriceAdditionObjects(instancesDataItem.fields);\r\n        }\r\n\r\n        that.instancesData[that.currentInstanceId] = instancesDataItem;\r\n    }\r\n\r\n    getInstancesData()\r\n    {\r\n        const that = this;\r\n        return that.instancesData;\r\n    }\r\n\r\n    getInstancesDataAmount()\r\n    {\r\n        const that = this;\r\n        return Object.keys(that.instancesData).length;\r\n    }\r\n\r\n    initFields()\r\n    {\r\n        const that = this;\r\n        delete that.fields;\r\n        that.fields = [];\r\n        that.$root.find('.mb2ls-conf-field').each(function ()\r\n        {\r\n            const $field = $(this);\r\n            /**\r\n             * @type {Field}\r\n             */\r\n            const field = $field.data('mb2lsField');\r\n            field.insideInstantiator = true;\r\n            that.fields.push(field);\r\n        });\r\n    }\r\n}\r\n\r\nmodule.exports = Instantiator;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/instantiator/instantiator.js","const utils = require('public/utils.js');\r\nconst Element = require('../element.js');\r\n\r\n\r\nclass ProductFrame extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-product-frame\">');\r\n        that.jsonKey = that.recipe.jsonKey;\r\n        that.getRecipeXhr = null;\r\n        that.afterRootInit();\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        console.log('ProductFrame:destroy');\r\n        const that = this;\r\n        that.getRecipeXhr && that.getRecipeXhr.abort();\r\n        super.destroy();\r\n    }\r\n\r\n    setProduct(productName)\r\n    {\r\n        const that = this;\r\n        that.getRecipeXhr && that.getRecipeXhr.abort();\r\n        that.$root.trigger('mb2lsBeforeChangeProduct');\r\n        that.configurator.toggleActionsOpportunity(false);\r\n        that.configurator.setErrorBoxesMessage(false);\r\n        that.configurator.setNoticeBoxesMessage(false);\r\n\r\n\r\n        if (that.productFrameConfigurator)\r\n        {\r\n            that.productFrameConfigurator.destroy();\r\n            console.log(`Configurator (${that.productFrameConfigurator.productName}) destroyed.`);\r\n            delete that.productFrameConfigurator;\r\n            that.$root.find('>*').remove();\r\n        }\r\n\r\n        that.getRecipeXhr = utils.rest(\r\n            'GET',\r\n            'configurator/recipe',\r\n            {\r\n                productName: productName\r\n            },\r\n            function (recipe)\r\n            {\r\n                //By a reason require doesn't work when I put it at the top level of the file\r\n                const Configurator = require('../../configurator.js');\r\n\r\n                that.productFrameConfigurator = new Configurator({\r\n                    recipe: recipe,\r\n                    parent: that.configurator,\r\n                    options: that.configurator.options,\r\n                });\r\n                that.productFrameConfigurator.productName = productName;\r\n                that.configurator.fields.forEach(function (field)\r\n                {\r\n                    if (field.templateItemRecipe.productFrameField)\r\n                    {\r\n                        that.productFrameConfigurator.addParentField(field);\r\n                    }\r\n                });\r\n                that.productFrameConfigurator.initialUpdate();\r\n                that.productFrameConfigurator.$root.appendTo(that.$root);\r\n                that.configurator.toggleActionsOpportunity(true);\r\n                that.$root.trigger('mb2lsChangedProduct');\r\n            },\r\n            function (message)\r\n            {\r\n                that.configurator.setErrorBoxesMessage(message);\r\n                that.configurator.toggleActionsOpportunity(true);\r\n            }\r\n        );\r\n    }\r\n\r\n    getComplexData()\r\n    {\r\n        const that = this;\r\n        return that.productFrameConfigurator ? that.productFrameConfigurator.getComplexData() : null;\r\n    }\r\n}\r\n\r\nmodule.exports = ProductFrame;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/product-frame/product-frame.js","require('./right-sticky-panel.scss');\r\nconst StickyPanel = require('../sticky-panel/sticky-panel.js');\r\n\r\nclass RightStickyPanel extends StickyPanel {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.afterRootInit();\r\n    }\r\n\r\n    getPosition()\r\n    {\r\n        return 'right';\r\n    }\r\n}\r\n\r\nmodule.exports = RightStickyPanel;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/right-sticky-panel/right-sticky-panel.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/right-sticky-panel/right-sticky-panel.scss\n// module id = 189\n// module chunks = 2","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/sticky-panel/sticky-panel.scss\n// module id = 190\n// module chunks = 2","require('./left-sticky-panel.scss');\r\nconst StickyPanel = require('../sticky-panel/sticky-panel.js');\r\n\r\nclass LeftStickyPanel extends StickyPanel {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.afterRootInit();\r\n    }\r\n\r\n    getPosition()\r\n    {\r\n        return 'left';\r\n    }\r\n}\r\n\r\nmodule.exports = LeftStickyPanel;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/left-sticky-panel/left-sticky-panel.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/left-sticky-panel/left-sticky-panel.scss\n// module id = 192\n// module chunks = 2","require('./bottom-sticky-panel.scss');\r\nconst StickyPanel = require('../sticky-panel/sticky-panel.js');\r\n\r\nclass BottomStickyPanel extends StickyPanel {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.afterRootInit();\r\n    }\r\n\r\n    getPosition()\r\n    {\r\n        return 'bottom';\r\n    }\r\n}\r\n\r\nmodule.exports = BottomStickyPanel;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/bottom-sticky-panel/bottom-sticky-panel.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/bottom-sticky-panel/bottom-sticky-panel.scss\n// module id = 194\n// module chunks = 2","require('./summary-cart.scss');\r\nconst Cart = require('../cart.js');\r\nconst utils = require('public/utils.js');\r\nconst SummaryCartItem = require('./summary-cart-item.js');\r\n\r\nclass SummaryCart extends Cart {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n    }\r\n\r\n    getCartItemClass()\r\n    {\r\n        return SummaryCartItem;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'summary';\r\n    }\r\n}\r\n\r\nmodule.exports = SummaryCart;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/cart/summary/summary-cart.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/cart/summary/summary-cart.scss\n// module id = 196\n// module chunks = 2","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/cart/cart.scss\n// module id = 197\n// module chunks = 2","require('./summary-cart-item.scss');\r\nconst utils = require('public/utils.js');\r\nconst CartItemComplex = require('../cart-item-complex.js');\r\n\r\nclass SummaryCartItem extends CartItemComplex {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n\r\n        const that = this;\r\n        const $col1 = $('<div class=\"mb2ls-conf-cart-item__col mb2ls-conf-cart-item__col--1\">');\r\n        const $col2 = $('<div class=\"mb2ls-conf-cart-item__col mb2ls-conf-cart-item__col--2\">');\r\n        const $col3 = that.$actions.addClass('mb2ls-conf-cart-item__col mb2ls-conf-cart-item__col--3');\r\n\r\n        that.$removeBtn.appendTo($col1);\r\n        that.$img.appendTo($col1);\r\n\r\n        that.$heading.appendTo($col2);\r\n        that.$details.appendTo($col2);\r\n        //that.$couponInput.appendTo($col3);\r\n        $col1.appendTo(that.$root);\r\n        $col2.appendTo(that.$root);\r\n        $col3.appendTo(that.$root);\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'summary';\r\n    }\r\n}\r\n\r\nmodule.exports = SummaryCartItem;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/cart/summary/summary-cart-item.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/cart/summary/summary-cart-item.scss\n// module id = 199\n// module chunks = 2","require('./quantity-input.scss');\r\n\r\nclass QuantityInput {\r\n    constructor(args)\r\n    {\r\n        const that = this;\r\n        that.args = args;\r\n        that.$root = $('<div class=\"mb2ls-quantity-input\">');\r\n        that.$plus = $('<div class=\"mb2ls-quantity-input__btn mb2ls-quantity-input__btn--plus\">');\r\n        that.$minus = $('<div class=\"mb2ls-quantity-input__btn mb2ls-quantity-input__btn--minus\">');\r\n        that.$input = $('<input type=\"text\" class=\"mb2ls-quantity-input__input\">');\r\n        that.value = 1;\r\n        that.max = 1000;\r\n        that.min = 1;\r\n        that.valueOld = that.value;\r\n        that.$minus.add(that.$input).add(that.$plus).appendTo(that.$root);\r\n\r\n        that.$plus.on('click', function (e)\r\n        {\r\n            that.valueOld = that.value;\r\n            that.value++;\r\n            that.autocorrectValue();\r\n            that.renderValue();\r\n            if (that.valueOld !== that.value) that.onChange();\r\n        });\r\n        that.$minus.on('click', function (e)\r\n        {\r\n            that.valueOld = that.value;\r\n            that.value--;\r\n            that.autocorrectValue();\r\n            that.renderValue();\r\n            if (that.valueOld !== that.value) that.onChange();\r\n        });\r\n        that.$input.on('change', function ()\r\n        {\r\n            that.valueOld = that.value;\r\n            that.value = that.$input.val();\r\n            console.log('change:that.value', that.value);\r\n            that.autocorrectValue();\r\n\r\n            //renders autocorrected value\r\n            that.renderValue();\r\n\r\n            if (that.valueOld !== that.value) that.onChange();\r\n        });\r\n        that.autocorrectValue();\r\n        that.renderValue();\r\n    }\r\n\r\n    autocorrectValue()\r\n    {\r\n        const that = this;\r\n        that.value = parseInt(that.value);\r\n        if (isNaN(that.value)) that.value = that.min;\r\n        if (that.value > that.max) that.value = that.max;\r\n        if (that.value < that.min) that.value = that.min;\r\n    }\r\n\r\n    renderValue()\r\n    {\r\n        const that = this;\r\n        that.$input.val(that.value);\r\n    }\r\n\r\n    onChange()\r\n    {\r\n        const that = this;\r\n        that.args.onChange();\r\n    }\r\n}\r\n\r\nmodule.exports = QuantityInput;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/quantity-input/quantity-input.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/quantity-input/quantity-input.scss\n// module id = 201\n// module chunks = 2","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/price-display/price-display.scss\n// module id = 202\n// module chunks = 2","require('./holder-cart.scss');\r\nconst Cart = require('../cart.js');\r\nconst utils = require('public/utils.js');\r\nconst HolderCartItem = require('./holder-cart-item.js');\r\n\r\nclass HolderCart extends Cart {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root.addClass('mb2ls-conf-cart-holder');\r\n        that.$parking = $('<div class=\"mb2ls-conf-cart-holder__parking\">');\r\n        that.$body = $('<div class=\"mb2ls-conf-cart-holder__flying-content\">')\r\n        that.$body.appendTo(that.$parking);\r\n        that.$parking.appendTo(that.$root);\r\n    }\r\n\r\n    /**\r\n     * @param {HolderCartItem} holderCartItem\r\n     */\r\n    onSectionHeaderClick(holderCartItem)\r\n    {\r\n        const that = this;\r\n        holderCartItem.cartsManagerItem.onEdit();\r\n    }\r\n\r\n    getCartItemClass()\r\n    {\r\n        return HolderCartItem;\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'holder';\r\n    }\r\n}\r\n\r\nmodule.exports = HolderCart;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/cart/holder/holder-cart.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/cart/holder/holder-cart.scss\n// module id = 204\n// module chunks = 2","require('./holder-cart-item.scss');\r\nconst utils = require('public/utils.js');\r\nconst CartItem = require('../cart-item.js');\r\n\r\n/**\r\n * @property {HolderCart} cart\r\n */\r\nclass HolderCartItem extends CartItem {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-cart-holder__section\">');\r\n        that.$body = $('<div class=\"mb2ls-conf-cart-holder__sectionBody\">');\r\n        that.$head = $('<div class=\"mb2ls-conf-cart-holder__sectionHead\">');\r\n        that.$title = $('<div class=\"mb2ls-conf-cart-holder__sectionTitle\">');\r\n        that.$toggle = $('<div class=\"mb2ls-conf-cart-holder__sectionToggle\">');\r\n\r\n        that.$title.appendTo(that.$head);\r\n        that.$toggle.appendTo(that.$head);\r\n        that.$head.appendTo(that.$root);\r\n        that.$body.appendTo(that.$root);\r\n\r\n        that.$head.click(function ()\r\n        {\r\n            that.cart.onSectionHeaderClick(that);\r\n        });\r\n    }\r\n\r\n    remove()\r\n    {\r\n        const that = this;\r\n        if(that.cart.$body.parent() === that.$body) that.cart.$body.appendTo(that.cart.$parking);\r\n        super.remove();\r\n    }\r\n\r\n    setHeading(html)\r\n    {\r\n        const that = this;\r\n        that.$title.html(html);\r\n    }\r\n\r\n    toggleActive(active)\r\n    {\r\n        const that = this;\r\n        that.$root.toggleClass('mb2ls-conf-cart-holder__section--opened', active);\r\n        if (active) that.cart.$body.appendTo(that.$body);\r\n    }\r\n\r\n    getType()\r\n    {\r\n        return 'holder';\r\n    }\r\n}\r\n\r\nmodule.exports = HolderCartItem;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/cart/holder/holder-cart-item.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/cart/holder/holder-cart-item.scss\n// module id = 206\n// module chunks = 2","require('./product-summary.scss');\r\nconst Element = require('../element.js');\r\n\r\nclass ProductSummary extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-product-summary\"></div>');\r\n        that.changeTimeout = null;\r\n        that.configurator.fields.forEach(function (field)\r\n        {\r\n            //\"off\" deosn't required, because we remove the element\r\n            field.$root.on('mb2lsChange', function ()\r\n            {\r\n                //Skip changes generated while simulating the non admin\r\n                if (that.configurator.summary.simulatingNonAdmin) return;\r\n\r\n                that.refreshTimeout();\r\n            });\r\n        });\r\n        that.afterRootInit();\r\n    }\r\n\r\n    destroy()\r\n    {\r\n        const that = this;\r\n        if (that.changeTimeout) clearTimeout(that.changeTimeout);\r\n        super.destroy();\r\n    }\r\n\r\n    refreshTimeout()\r\n    {\r\n        const that = this;\r\n        if (that.changeTimeout) clearTimeout(that.changeTimeout);\r\n        that.changeTimeout = setTimeout(function ()\r\n        {\r\n            if (that.configurator.updatingVisibility) that.refreshTimeout();\r\n            else that.update();\r\n        }, 500);\r\n    }\r\n\r\n    update()\r\n    {\r\n        const that = this;\r\n        let htmlCol1 = ``;\r\n        let htmlCol2 = ``;\r\n        let counter = 0;\r\n        const uiItems = that.configurator.summary.getUiItems();\r\n        uiItems.forEach(function (uiItem)\r\n        {\r\n            if (uiItem.hiddenForPublicSummary) return true;\r\n            if (uiItem.uiValue && ['no', 'nein'].includes(uiItem.uiValue.toLowerCase())) return true;\r\n\r\n            const html =\r\n                `<div class=\"mb2ls-conf-product-summary__item\">` +\r\n                `<b>${uiItem.uiName}:</b> ${uiItem.uiValue}` +\r\n                `</div>`;\r\n            if (counter < uiItems.length / 2) htmlCol1 += html;\r\n            else htmlCol2 += html;\r\n            counter++;\r\n        });\r\n        that.$root.html(\r\n            `<div class=\"mb2ls-conf-product-summary__col\">${htmlCol1}</div>` +\r\n            `<div class=\"mb2ls-conf-product-summary__col\">${htmlCol2}</div>`\r\n        );\r\n    }\r\n}\r\n\r\nmodule.exports = ProductSummary;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/product-summary/product-summary.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/product-summary/product-summary.scss\n// module id = 208\n// module chunks = 2","require('./screen.scss');\r\nconst utils = require('public/utils.js');\r\nconst Element = require('../element.js');\r\n\r\nclass Screen extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-screen\">');\r\n        that.$body = $('<div class=\"mb2ls-conf-screen__content\">');\r\n\r\n        if (that.recipe.heading !== undefined)\r\n        {\r\n            that.$heading = $('<div class=\"mb2ls-conf-screen__heading\">');\r\n            that.$heading.html(that.recipe.heading);\r\n            that.$heading.appendTo(that.$root);\r\n        }\r\n        that.$body.appendTo(that.$root);\r\n        that.afterRootInit();\r\n    }\r\n}\r\n\r\nmodule.exports = Screen;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/screen/screen.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/screen/screen.scss\n// module id = 210\n// module chunks = 2","require('./extractor.scss');\r\nconst Element = require('../element.js');\r\n\r\nclass Extractor extends Element {\r\n    constructor()\r\n    {\r\n        super(...arguments);\r\n        const that = this;\r\n        that.$root = $('<div class=\"mb2ls-conf-extractor\">');\r\n\r\n        that.afterRootInit();\r\n\r\n        //\"off\" deosn't required, because we remove the element\r\n        that.configurator.$root.on('mb2ls.onRootHtmlInserted', function ()\r\n        {\r\n            let $content = $(that.recipe.selector);\r\n            if (!$content.length) $content = that.configurator.$root.find(that.recipe.selector);\r\n\r\n            //Ecxlude items from the critical CSS div\r\n            if ($content.closest('.mb2ls-critical-html').length) return true;\r\n\r\n            if ($content.length)\r\n            {\r\n                $content.appendTo(that.$root);\r\n            } else\r\n            {\r\n                console.warn(`Extractor: can't find the element using the selector (${that.recipe.selector}).`)\r\n            }\r\n        });\r\n    }\r\n}\r\n\r\nmodule.exports = Extractor;\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/extractor/extractor.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./_frontend/public/modules/configurator/elements/extractor/extractor.scss\n// module id = 212\n// module chunks = 2","const Element = require('../element.js');\n\nclass Mailchimp extends Element {\n    constructor()\n    {\n        super(...arguments);\n        const that = this;\n\n        that.$root = $('<div class=\"mb2ls-conf-mailchimp\">');\n\n        if (!that.getAudienceName())\n        {\n            console.error('Mailchimp: audienceName is required');\n        }\n\n        that.afterRootInit();\n    }\n\n    getTags()\n    {\n        const that = this;\n        return that.recipe.tags;\n    }\n\n    getAudienceName()\n    {\n        const that = this;\n        return that.recipe.audienceName;\n    }\n\n}\n\nmodule.exports = Mailchimp;\n\n\n\n// WEBPACK FOOTER //\n// ./_frontend/public/modules/configurator/elements/mailchimp/mailchimp.js"],"sourceRoot":""}