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WhB,EAAnE,EEtHAiB,EAAmB,G","sources":["webpack://waves/./src/projects/shopping-cart/cart-bridger-pay/enums/cart-steps.ts","webpack://waves/./src/projects/products/enums/product-department-enum.ts","webpack://waves/./src/projects/shopping-cart/cart-bridger-pay/enums/last-payment-option-enum.ts","webpack://waves/./src/projects/shopping-cart/cart-bridger-pay/enums/payment-tabs-enum.ts","webpack://waves/./src/projects/shopping-cart/cart-bridger-pay/enums/credit-card-service-enum.ts","webpack://waves/./src/projects/shopping-cart/cart-bridger-pay/enums/credit-card-tab.ts","webpack://waves/./src/projects/products/product-page/data-services/data-service.ts","webpack://waves/external var \"React\"","webpack://waves/./src/projects/emotion-lv1/index.tsx"],"sourcesContent":["export enum CartSteps {\r\n First = 1,\r\n Second = 2,\r\n Third = 3,\r\n}","export enum ProductDepartmentEnum {\r\n Bundles = 1,\r\n Plugins = 2,\r\n General = 5,\r\n Books = 6,\r\n InactiveItems = 7,\r\n LiveSound = 8,\r\n Hardware = 9,\r\n Software = 10,\r\n Subscription = 12,\r\n Consumer = 13,\r\n RentToOwnDynamic = 14,\r\n RentToOwnStatic = 15,\r\n Merch = 16,\r\n WavesUpdatePlan = 17,\r\n Upgrades = 18,\r\n Courses = 19,\r\n SubscriptionDynamic = 20,\r\n Gifts = 21,\r\n CoursesWithSoftware = 22,\r\n SubscriptionNonRecurring = 23,\r\n Mastering = 24,\r\n}","/**\r\n * https://wavesaudio.atlassian.net/browse/DSWEB-3278\r\n * ap = alipay, pp = paypal, cc = credit card, null = no previous purchase\r\n */\r\nexport enum LastPaymentOption {\r\n NONE = '',\r\n CreditCard = 'cc',\r\n PayPal = 'pp',\r\n AliPay = 'ap',\r\n}","export enum PaymentTabsEnum {\r\n CreditCard = 1,\r\n PayPal = 2,\r\n AliPay = 3,\r\n}","export enum CreditCardServiceEnum {\r\n None = 0,\r\n FirstData = 1,\r\n Pinnacle = 2,\r\n Stripe = 3\r\n}","export enum CreditCardTabTabsEnum {\r\n NewCreditCard = 1,\r\n SavedCreditCards = 2,\r\n}","import {get} from '../../../../DAL/data-provider';\r\nimport {Response, ProductsRelDocs} from '../interfaces';\r\nimport {getJSONFromHtml} from '../../../../domain/common';\r\nimport {\r\n getCategoryFromURL,\r\n sendGaEventProductDetails\r\n} from \"../../../../domain/marketing/gtm-provider\";\r\n\r\nexport const getInvertryData = async (nodeGUID: string) : Promise => {\r\n return get('/api/productpage/get-invertry-data', {\r\n nodeGUID\r\n });\r\n};\r\n\r\nexport const getProductsRelDocs = () : ProductsRelDocs[] => {\r\n const data = getJSONFromHtml(document.getElementById('efs-data')) as ProductsRelDocs[];\r\n if(!data || !Array.isArray(data)) return [];\r\n //console.log('getProductsRelDocs: ',product);\r\n\r\n\r\n for(let i=0; i 1 && data[0].isProductOptions)\r\n {\r\n //data.sort((a,b) => a.skuPrice - b.skuPrice);\r\n data.sort((a:any, b:any) => (a.minPrice > b.minPrice) ? 1 : -1)\r\n }\r\n\r\n return data;\r\n\r\n\r\n};\r\n\r\n\r\nexport const normalizeProduct = (product: ProductsRelDocs) => {\r\n\r\n if(!product) return product;\r\n\r\n // properties with inner HTML - normalizations\r\n // product.note = product.note ? GeneralHelper.decodeURL(product.note) : '';\r\n // product.documentPageDescription = product.documentPageDescription ? GeneralHelper.decodeURL(product.documentPageDescription) : '';\r\n\r\n // computed properties\r\n product.withCouponEnabled = product.couponCampaignID > 0;\r\n product.isProductVisible = product.skuid > 0 && product.skuEnabled;\r\n product.isSamePrice = product.msrp === product.skuPrice;\r\n product.minPrice = !!product.note ? 'fake' : (product.couponPrice > 0 ? Math.min(product.skuPrice, product.couponPrice) : product.skuPrice);\r\n\r\n // https://wavesaudio.atlassian.net/browse/DSWEB-1264\r\n // Edited by Raz Liveyatan, 06.06.2021\r\n product.expectedShipping = product.expectedShipping !== '' ? product.expectedShipping : null;\r\n\r\n //Check for banners\r\n const bannerAbove = getJSONFromHtml(document.getElementById('product-page-banner-above')) as string;\r\n if(bannerAbove && bannerAbove.length > 0)\r\n product.bannerAbove = bannerAbove;\r\n\r\n return product;\r\n};\r\n\r\nexport const createProductDetailsGA = (product: ProductsRelDocs) => {\r\n\r\n const skunumber = product.skuNumber;\r\n const name = product.documentName;\r\n const skuPrice = product.skuPrice;\r\n const productType = product.documentUrlPath !== '' ? getCategoryFromURL(product.documentUrlPath) : getCategoryFromURL(window.location.pathname);\r\n\r\n //console.log('createProductDetailsGA: ',product);\r\n const analyticsData = [{\r\n name: name\r\n ,id: skunumber\r\n ,price: skuPrice\r\n ,category: productType\r\n }];\r\n\r\n\r\n //console.log('sendProductDetailsGA:',analyticsData);\r\n sendGaEventProductDetails( analyticsData);\r\n\r\n};\r\n\r\n/*\r\n* Waves.Misc ProductType\r\n* */\r\nexport enum ProductTypeEnum{\r\n plugin=\"plugin\",\r\n bundle=\"bundle\",\r\n hardware=\"hardware\",\r\n mixerrack=\"mixerrack\",\r\n course=\"course\",\r\n subscription=\"subscription\",\r\n merch=\"merch\"\r\n}\r\n\r\n\r\nexport const rewriteWavesalias = () => {\r\n let _searchReplaced = \"\";\r\n\r\n if(!window.location.search || window.location.search === '' || window.location.search.indexOf('wavesalias') === -1)\r\n return _searchReplaced;\r\n\r\n let wavesaliasParam = '';\r\n let otherParam = '';\r\n const _search = window.location.search.substring(1);\r\n var _searchArr = _search.split('&');\r\n for (var i = 0; i < _searchArr.length; i++) {\r\n var pair = _searchArr[i].split('=');\r\n if (decodeURIComponent(pair[0]) === 'wavesalias') {\r\n wavesaliasParam = `#${decodeURIComponent(pair[1])}`;\r\n }\r\n else if(otherParam === ''){\r\n otherParam = `?${pair[0]}=${pair[1]}`;\r\n }\r\n else\r\n otherParam += `&${pair[0]}=${pair[1]}`;\r\n }\r\n _searchReplaced = otherParam + wavesaliasParam;\r\n //console.log('rewriteUrl: ',_searchReplaced);\r\n //const _searchReplaced = _search.replace(\"?wavesalias=\",\"#\").replace(\"&\",\"?\");\r\n //console.log('_searchReplaced: ',_searchReplaced);\r\n window.history.replaceState(null, '', document.location.pathname + _searchReplaced);\r\n};","const __WEBPACK_NAMESPACE_OBJECT__ = React;","import { rewriteWavesalias } from '../products/product-page/data-services/data-service';\r\n\r\n/**\r\n * https://dev.waves.com/mixers-racks/emotion-lv1?wavesalias=video\r\n */\r\nwindow.addEventListener('DOMContentLoaded', () => {\r\n rewriteWavesalias();\r\n});"],"names":["CartSteps","ProductDepartmentEnum","LastPaymentOption","PaymentTabsEnum","CreditCardServiceEnum","CreditCardTabTabsEnum","ProductTypeEnum","React","window","addEventListener","_searchReplaced","location","search","indexOf","wavesaliasParam","otherParam","_searchArr","substring","split","i","length","pair","decodeURIComponent","history","replaceState","document","pathname","rewriteWavesalias"],"sourceRoot":""}