PageSourceSearch

https://www.mgti.fr/frontend/Files/106359/v3/frontend/app.js

js mgti.fr collected 2026-10-09 03:48:43 UTC 4,475 bytes, 3 lines download raw bytes

1/*! app veda9b4bda70d5c69409db22ff132ceafcadc8126 2022-01-20 */
2(function (window, angular, $, _){'use strict';window.appVersion='eda9b4bda70d5c69409db22ff132ceafcadc8126';
3!function(a,b,c,d){"use strict";b.module("globalModule",[]).config(["oxModuleConfigProvider",function(a){a.initModule({name:"globalModule",type:"custom",defaultConfig:{}})}]);var e=b.module("app",["oxFramework","globalModule","baseApp"]);e.config(["oxTranslationServiceProvider",function(a){a.setUseConfigFile(!0)}]),e.run(["$rootScope","$compile","oxRoute","oxModuleLoader",function(b,d,e,f){console.info("[app] run"),b.$on("platinumBuilder-complete",function(){!c("#maincontainer.sccatalog.itemdetail[ng-controller]").length||b.currentScope?d(c("#maincontainer.sccatalog.itemdetail .itemTmpl"))(b.currentScope||b.$new()):(b.platinumBuilder=b.platinumBuilder||{},b.platinumBuilder.needCompile=!0),b.safeApply()}),e.run([{condition:"#maincontainer.sccatalog",precompile:function(){0===a.oxInfos.oxLang&&c(".PBItemSku small, .PBItemSku span").each(function(){var a=c(this).text(),b=/[^:]+:([^\)]+)\)/gi.exec(a);a&&c(this).html("R&eacute;f&eacute;rence : "+b[1]).show()})}}]),f.run("app",[{name:"outOfStockScenario",places:[{condition:"#maincontainer.sccatalog.itemdetail",target:".c-cs-product-stock, .PBStockTbl"},{condition:"#maincontainer.sccatalog.itemlist",target:".PBItemStock"},{condition:"#maincontainer.sccatalog.searchpage",target:".PBItemStock"}],method:"prepend"},{name:"csProductStock",condition:"#maincontainer.sccatalog.searchpage",target:".PBItemStock",attrs:{template:"detail"},method:"add"},{name:"csProductDisplay",condition:"#maincontainer.sccatalog.searchpage",target:".PBItemName",attrs:{structure:["sku"]},method:"before"}])}]),e.value("data",{})}(window,window.angular,window.angular.element,window._),function(a,b,c,d){"use strict";b.module("app").directive("productInfo",["oxProductLnk","oxProductHelper","oxRoute","sharedData",function(b,c,d,e){return{restrict:"A",replace:!1,scope:{pdtId:"=?"},link:function(c,d,e){new(b.extend({name:"productInfo",detailLevel:["detail","brand"],getOptions:!0,defineScope:{params:{oxUser:!1}},process:function(){if(this.$scope.params.oxUser=a.oxInfos.oxUser,this.$scope.product.pricePublic){var b=(this.$scope.product.pricePublic-this.$scope.product.price)/this.$scope.product.pricePublic*100+"";b=parseFloat(b.substring(0,4));var c=parseInt(b);b=b-c>.5?Math.ceil(b):c,this.$scope.params.discount=b}}}))(c,{elem:d,attrs:e})},templateUrl:d.config("viewsPath")+"c-product-info.html"}}])}(window,window.angular,window.angular.element,window._),function(a,b,c,d){"use strict";var e="outOfStockScenario";b.module("globalModule").directive(e,["Directive","oxDirective","oxProductLnk",function(a,b,d){return new(a.extend({scope:{},link:function(a,b,f){new(d.extend({name:e,bindConfigToScope:!0,init:function(){this._super()},process:function(){const a=c(b).closest(".c-cs-product-stock, .PBStockTbl,.PBItemStock");switch(this.$scope.product.stockscenario){case 1:a.addClass("disponibile");break;case 2:a.addClass("on-demand");break;case 3:a.addClass("en-rupture");break;default:return}}}))(a,{elem:b,attrs:f})}}))({name:e})}])}(window,window.angular,window.angular.element,window._),function(a,b){b(function(){console.info("[app] bootstrap"),a.bootstrap(document.body,["app"],{strictDi:!0}),a.resumeBootstrap()})}(window.angular,window.angular.element),angular.module("app").run(["$templateCache","oxRoute","sessionData",function(a,b,c){"use strict";a.put(b.getViewPath("c-product-info.html"),'<ul><li ng-show="product.sku"><label>{{::translation.labelReference}} :</label><span>{{product.sku}}</span></li><li ng-show="product.name"><label>{{::translation.labelDesignation}} :</label><span>{{product.name}}</span></li><li ng-show="product.brand"><label>{{::translation.labelMarque}} :</label><span>{{product.brand}}</span></li><li><label>{{::translation.labelDisponibilite}} :</label><span><div cs cs-product-stock></div></span></li><li ng-show="product.pricePublic && params.oxUser"><label>{{::translation.labelPriceBrut}} :</label><span><div cs cs-price price="product.pricePublic"></div></span></li><li ng-show="product.pricePublic && params.oxUser"><label>{{::translation.labelRemise}} :</label><span>{{params.discount}} %</span></li><li ng-show="product.price"><label>{{::translation.labelPriceNet}} :</label><span><div cs cs-price price="product.price"></div></span></li></ul>')}]);})(window, window.angular, window.angular.element, window._);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.