{"version":3,"sources":["archive/product/variant-selector-provider/variant-selector-provider.ts"],"names":["Notify","DropDownVariantSelectorV1","DropDownVariantSelectorV2","DropDownVariantSelectorV3","DropDownVariantSelectorV4","TilesVariantSelectorV1","TilesVariantSelectorV2Outlet","RelImagesTilesVariantSelectorV1","RelImagesTilesVariantSelectorV2Outlet","RelImagesTilesVariantSelectorV3Outlet","FancyBoxTilesVariantSelectorV1","$","window","jQuery","createVariantSelector","name","selectorContainerElement","product","variantTypeId","translations","showPricesInclVat","loadAdditionalInfo","error"],"mappings":"OAASA,MAA6D,KAA/C,uDACdC,yBAAoE,KAAnC,2CACjCC,yBAAoE,KAAnC,2CACjCC,yBAAoE,KAAnC,2CACjCC,yBAAoE,KAAnC,2CACjCC,sBAA8D,KAAhC,wCAC9BC,4BAAoE,KAAhC,wCACpCC,+BAAkF,KAA3C,mDACvCC,qCAAwF,KAA3C,mDAC7CC,qCAAwF,KAA3C,mDAC7CC,8BAA+E,KAAzC,0CAG/C,MAAMC,EAAIC,OAAOC,OAOjBD,OAAOE,sBAAwB,SAAUC,EAAcC,EAAuCC,EAA+BC,EAAuBC,EAAmCC,EAA4BC,GAC/M,OAAQN,GACJ,IAAK,kBACD,OAAO,IAAId,0BAA0Bc,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,EACpJ,IAAK,mBACD,OAAO,IAAInB,0BAA0Ba,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,EACpJ,IAAK,mBACD,OAAO,IAAIlB,0BAA0BY,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,EACpJ,IAAK,mBACD,OAAO,IAAIjB,0BAA0BW,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,EACpJ,IAAK,eACD,OAAO,IAAIhB,uBAAuBU,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,EACjJ,IAAK,uBACD,OAAO,IAAIf,6BAA6BS,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,EACvJ,IAAK,qBACD,OAAO,IAAId,gCAAgCQ,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,EAC1J,IAAK,6BACD,OAAO,IAAIb,sCAAsCO,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,EAChK,IAAK,6BACD,OAAO,IAAIZ,sCAAsCM,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,EAChK,IAAK,6BACD,OAAO,IAAIX,+BAA+BK,EAAMC,EAA0BC,EAASC,EAAeC,EAAcC,EAAmBC,CAAkB,C,CAG7J,IAAIrB,OAAO,GAAK,EAAEsB,8DAA8DP,KAAQ,CAC5F","file":"variant-selector-provider.js","sourcesContent":["import { Notify } from \"../../../../components-shared/utils/notify.js\";\r\nimport { DropDownVariantSelectorV1 } from \"./dropdown-variant-selector-v1.js\";\r\nimport { DropDownVariantSelectorV2 } from \"./dropdown-variant-selector-v2.js\";\r\nimport { DropDownVariantSelectorV3 } from \"./dropdown-variant-selector-v3.js\";\r\nimport { DropDownVariantSelectorV4 } from \"./dropdown-variant-selector-v4.js\";\r\nimport { TilesVariantSelectorV1 } from \"./tiles-variant-selector-v1.js\";\r\nimport { TilesVariantSelectorV2Outlet } from \"./tiles-variant-selector-v2.js\";\r\nimport { RelImagesTilesVariantSelectorV1 } from \"./rel-images-tiles-variant-selector-v1.js\";\r\nimport { RelImagesTilesVariantSelectorV2Outlet } from \"./rel-images-tiles-variant-selector-v2.js\";\r\nimport { RelImagesTilesVariantSelectorV3Outlet } from \"./rel-images-tiles-variant-selector-v3.js\";\r\nimport { FancyBoxTilesVariantSelectorV1 } from \"./fancybox-tiles-variant-selector-v1.js\";\r\nimport { IProductWithVariants } from \"./variant-selector-base.js\";\r\n\r\nconst $ = window.jQuery;\r\ndeclare global {\r\n interface Window {\r\n createVariantSelector: (name: string, selectorContainerElement: HTMLElement, product: IProductWithVariants, variantTypeId: number, translations: Map, showPricesInclVat: boolean, loadAdditionalInfo: boolean) => any;\r\n }\r\n}\r\n\r\nwindow.createVariantSelector = function (name: string, selectorContainerElement: HTMLElement, product: IProductWithVariants, variantTypeId: number, translations: Map, showPricesInclVat: boolean, loadAdditionalInfo: boolean): any {\r\n switch (name) {\r\n case 'dropdownvariant':\r\n return new DropDownVariantSelectorV1(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n case 'dropdownvariant2':\r\n return new DropDownVariantSelectorV2(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n case 'dropdownvariant3':\r\n return new DropDownVariantSelectorV3(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n case 'dropdownvariant4':\r\n return new DropDownVariantSelectorV4(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n case 'tilesvariant':\r\n return new TilesVariantSelectorV1(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n case 'tilesvariant2-outlet':\r\n return new TilesVariantSelectorV2Outlet(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n case 'relimgtilesvariant':\r\n return new RelImagesTilesVariantSelectorV1(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n case 'relimgtilesvariant2-outlet':\r\n return new RelImagesTilesVariantSelectorV2Outlet(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n case 'relimgtilesvariant3-outlet':\r\n return new RelImagesTilesVariantSelectorV3Outlet(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n case 'fancyboxrelimgtilesvariant':\r\n return new FancyBoxTilesVariantSelectorV1(name, selectorContainerElement, product, variantTypeId, translations, showPricesInclVat, loadAdditionalInfo);\r\n }\r\n\r\n new Notify(10000).error(`Variant selector implementation not found for name: '${name}'.`);\r\n}"]}