PageSourceSearch

https://republiquetogolaise.com/js/sections.min.js

js republiquetogolaise.com collected 2026-10-02 15:05:48 UTC 2,336 bytes, 10 lines download raw bytes

1$.sections=$.customerData=window.customerData=(function(){'use strict';var data={},options=window.sectionsConfig;function canonize(url){var route=url;_.some(options.baseUrls,function(baseUrl){route=url.replace(baseUrl,'');return route!==url;});return route.replace(/^\/?index.php\/?/,'').toLowerCase();}
2return{getAffectedSections:function(url){var route=canonize(url),actions=_.find(options.sections,function(val,section){var matched;if(section.indexOf('*')>=0){section=section.replace(/\*/g,'[^/]+')+'$';matched=route.match(section);return matched&&matched[0]===route;}
3return route.indexOf(section)===0;});return _.union(_.toArray(actions),options.sections['*']);},filterClientSideSections:function(allSections){return _.difference(allSections,options.clientSideSections);},isClientSideSection:function(sectionName){return _.contains(options.clientSideSections,sectionName);},getSectionNames:function(){return options.sectionNames;},get:function(name){if(!data[name]){data[name]=ko.observable({});}
4return data[name];},set:function(name,section){this.get(name)(section);},reload:function(names,forceNewSectionTimestamp){$(document).trigger('customerData:reload',{sections:names,forceNewSectionTimestamp:forceNewSectionTimestamp});},invalidate:function(names){$(document).trigger('customerData:invalidate',{sections:names});},getExpiredSectionNames:function(){if(!window.customerDataCmp){return[];}
5return window.customerDataCmp.getExpiredSectionNames();}};})();(function(){'use strict';var sections=$.sections,storage=$.storage.ns('mage-cache-storage');$(document).on('ajaxComplete',function(event,data){var names,response=data.response,request=data.response.req,redirects=['redirect','backUrl'];if(!request.method.match(/post|put|delete/i)){return;}
6names=sections.getAffectedSections(request.url);if(!names.length){return;}
7sections.invalidate(names);if(_.isObject(response.body)&&!_.isEmpty(_.pick(response.body,redirects))){return;}
8sections.reload(names,true);});$(document).on('submit',function(event){var names;if(!event.target.method.match(/post|put|delete/i)){return;}
9names=sections.getAffectedSections(event.target.action);if(!names.length){return;}
10sections.invalidate(names);$.storage.remove(names);});$(document).on('breeze:load',function(){$.each(storage.get(),function(name,value){sections.set(name,value);});});})();

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.