Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o
},{"./menu":2,"cyclejs":"cyclejs"}],2:[function(require,module,exports){
"use strict";
// IMPORTS =========================================================================================
var Cycle = require("cyclejs");
var Rx = Cycle.Rx;
var h = Cycle.h;
var makeClass = require("classnames");
// COMPONENTS ======================================================================================
Cycle.registerCustomElement("Menu", function (User, Props) {
var Model = Cycle.createModel(function (Intent, Props) {
var items$ = Props.get("items$");
var active$ = Props.get("active$");
var selectActive$ = Intent.get("selectActive$");
return {
items$: items$,
active$: active$.merge(selectActive$) };
});
var View = Cycle.createView(function (Model) {
},{"../../common/scripts/shims":2,"cyclejs":"cyclejs"}],2:[function(require,module,exports){
"use strict";
// IMPORTS =========================================================================================
require("babel/polyfill");
// SHIMS ===========================================================================================
var Cycle = require("cyclejs");
var Rx = Cycle.Rx;
Cycle.latest = function (DataNode, keys, resultSelector) {
var observables = keys.map(function (key) {
return DataNode.get(key);
});
var args = observables.concat([function selector() {
for (var _len = arguments.length, list = Array(_len), _key = 0; _key < _len; _key++) {
list[_key] = arguments[_key];
}
var item = keys.reduce(function (item, key) {
item[key.slice(0, -1)] = list[keys.indexOf(key)];
return item;
}, {});
return resultSelector(item);
}]);
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o
},{"cyclejs":"cyclejs"}],5:[function(require,module,exports){
"use strict";
// IMPORTS =========================================================================================
require("babel/polyfill");
// SHIMS ===========================================================================================
var Cycle = require("cyclejs");
var Rx = Cycle.Rx;
Cycle.latest = function (DataNode, keys, resultSelector) {
var observables = keys.map(function (key) {
return DataNode.get(key);
});
var args = observables.concat([function selector() {
for (var _len = arguments.length, list = Array(_len), _key = 0; _key < _len; _key++) {
list[_key] = arguments[_key];
}
var item = keys.reduce(function (item, key) {
item[key.slice(0, -1)] = list[keys.indexOf(key)];
return item;
}, {});
return resultSelector(item);
}]);
},{"cyclejs":"cyclejs"}],6:[function(require,module,exports){
"use strict";
// IMPORTS =========================================================================================
var Cycle = require("cyclejs");
var Rx = Cycle.Rx;
var h = Cycle.h;
// VIEWS ===========================================================================================
module.exports = Cycle.createView(function (Model) {
return {
vtree$: Model.get("pictures$").map(function (pictures) {
return h("div", null, [h("h2", null, ["Pictures"]), h("Pictures", { data: pictures.filter(function (m) {
return !m.favorite;
}) }), h("h2", null, ["Favorites"]), h("Pictures", { data: pictures.filter(function (m) {
return m.favorite;
}) })]);
}) };
});
},{"cyclejs":"cyclejs"}],7:[function(require,module,exports){
"use strict";
},{"./slider":4,"cyclejs":"cyclejs"}],6:[function(require,module,exports){
"use strict";
// IMPORTS =========================================================================================
require("babel/polyfill");
// SHIMS ===========================================================================================
var Cycle = require("cyclejs");
var Rx = Cycle.Rx;
Cycle.latest = function (DataNode, keys, resultSelector) {
var observables = keys.map(function (key) {
return DataNode.get(key);
});
var args = observables.concat([function selector() {
for (var _len = arguments.length, list = Array(_len), _key = 0; _key < _len; _key++) {
list[_key] = arguments[_key];
}
var item = keys.reduce(function (item, key) {
item[key.slice(0, -1)] = list[keys.indexOf(key)];
return item;
}, {});
return resultSelector(item);
}]);
},{"./intent":2,"./model":3,"./shims":4,"./view":5,"cyclejs":"cyclejs"}],2:[function(require,module,exports){
"use strict";
// IMPORTS =========================================================================================
var Cycle = require("cyclejs");
var Rx = Cycle.Rx;
// EXPORTS =========================================================================================
var Intent = Cycle.createIntent(function (User) {
return {
changeQuery$: User.event$(".query", "input").map(function (event) {
return event.target.value.trim();
}) };
});
module.exports = Intent;
},{"cyclejs":"cyclejs"}],3:[function(require,module,exports){
"use strict";
},{"../../common/scripts/shims":2,"classnames":"classnames","cyclejs":"cyclejs"}],2:[function(require,module,exports){
"use strict";
// IMPORTS =========================================================================================
require("babel/polyfill");
// SHIMS ===========================================================================================
var Cycle = require("cyclejs");
var Rx = Cycle.Rx;
Cycle.latest = function (DataNode, keys, resultSelector) {
var observables = keys.map(function (key) {
return DataNode.get(key);
});
var args = observables.concat([function selector() {
for (var _len = arguments.length, list = Array(_len), _key = 0; _key < _len; _key++) {
list[_key] = arguments[_key];
}
var item = keys.reduce(function (item, key) {
item[key.slice(0, -1)] = list[keys.indexOf(key)];
return item;
}, {});
return resultSelector(item);
}]);