Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var m = require('mithril');
module.exports = m.trust('<svg xml:space="preserve" viewBox="0 0 24.00 24.00" height="24" width="24" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><path d="M 16,17L 16,14L 9,14L 9,10L 16,10L 16,7L 21,12L 16,17 Z M 14,2C 15.1,2 16,2.9 16,4L 16,6L 14,6L 14,4L 5,4L 5,20L 14,20L 14,18L 16,18L 16,20C 16,21.1 15.1,22 14,22L 5,22C 3.9,22 3,21.1 3,20L 3,4C 3,2.9 3.9,2 5,2L 14,2 Z" stroke-linejoin="miter" stroke-width="1.33333" fill-opacity="1" fill="#000000"></path></svg>');
m.trust(""),
HTML([
HEAD([
LINK({href: '/css/reset.css', rel:'stylesheet'}),
LINK({href: '/css/style.css', rel:'stylesheet'}),
// Add in the misoGlobal object...
SCRIPT("var misoGlobal = "+(ctrl.misoGlobal? JSON.stringify(ctrl.misoGlobal): {})+";")
]),
BODY({"class": 'fixed-header' }, [
HEADER({id: "misoHeaderNode"}, ctrl.headerContent(ctrl)),
SECTION({id: ctrl.misoAttachmentNode}, ctrl.content),
SECTION({id: "loader"}, [
DIV({"class": "loader"})
]),
SECTION({id: "footer"}, [
DIV({"class": 'cw cf'}, m.trust("Copyright © 2015 jsguy"))
]),
//SCRIPT({src: '/miso.js' + (ctrl.reload? "?cacheKey=" + (new Date()).getTime(): "")}),
SCRIPT({src: '/miso.js'}),
(ctrl.reload? SCRIPT({src: '/reload.js'}): "")
])
])
];
}
};
var m = require('mithril');
module.exports = m.trust('<svg xml:space="preserve" viewBox="0 0 24.00 24.00" height="24" width="24" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><path d="M 14,17L 17,17L 19,13L 19,7L 13,7L 13,13L 16,13M 6,17L 9,17L 11,13L 11,7L 5,7L 5,13L 8,13L 6,17 Z" stroke-linejoin="round" fill-opacity="1" fill="#000000"></path></svg>');
var m = require('mithril');
module.exports = m.trust('<svg xml:space="preserve" viewBox="0 0 24.00 24.00" height="24" width="24" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><path d="M 8,16.6132L 8,15.3715L 14,11.9074L 14,7.23205L 9,10.1188L 4,7.23204L 4,13L 3,13.5774L 2,13L 2,5L 3.06699,4.38397L 9,7.8094L 12.933,5.53867L 14.933,4.38397L 16,5L 16,13.0621L 10.9246,15.9924L 14.9748,18.3308L 20,15.4295L 20,11L 21,10.4227L 22,11L 22,16.5842L 14.9748,20.6402L 8,16.6132 Z M 22,9.75001L 21,10.3274L 20,9.75001L 20,8.57736L 21,8.00001L 22,8.57736L 22,9.75001 Z" stroke-linejoin="round" fill-opacity="1" fill="#000000"></path></svg>');
var m = require('mithril');
module.exports = m.trust('<svg xml:space="preserve" viewBox="0 0 24.00 24.00" height="24" width="24" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><path d="M 17.8446,16.9391L 15.9653,16.9391L 15.9653,10.7943L 17.8446,10.7943L 17.8446,16.9391 Z M 18.0222,8.5767C 18.0222,9.19378 17.5221,9.69403 16.9048,9.69403C 16.2881,9.69403 15.7876,9.19378 15.7876,8.5767C 15.7876,7.95988 16.2881,7.4594 16.9048,7.4594C 17.5221,7.4594 18.0222,7.95988 18.0222,8.5767 Z M 21.8223,16.9391L 19.9433,16.9391L 19.9433,10.7943L 21.8223,10.7943L 21.8223,16.9391 Z M 22,8.5767C 22,9.19378 21.4998,9.69403 20.8828,9.69403C 20.2658,9.69403 19.7657,9.19378 19.7657,8.5767C 19.7657,7.95988 20.2658,7.4594 20.8828,7.4594C 21.4998,7.4594 22,7.95988 22,8.5767 Z M 12.9014,8.0519L 14.899,8.0519L 12.783,15.5C 12.783,15.5 12.4952,17.0406 11.2848,17.0406C 10.0744,17.0406 9.78683,15.5 9.78683,15.5L 8.44935,10.6418L 7.11239,15.5C 7.11239,15.5 6.82456,17.0406 5.61418,17.0406C 4.4038,17.0406 4.11597,15.5 4.11597,15.5L 2.00001,8.0519L 3.9976,8.0519L 5.72407,14.6708L 7.11239,9.30462C 7.43385,7.95035 8.44935,7.9674 8.44935,7.9674C 8.44935,7.9674 9.46511,7.95035 9.78683,9.30462L 11.1749,14.6708L 12.9014,8.0519 Z" stroke-linejoin="round" fill-opacity="1" fill="#000000"></path></svg>');
var m = require('mithril');
module.exports = m.trust('<svg xml:space="preserve" viewBox="0 0 24.00 24.00" height="24" width="24" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><path d="M 13,2.00001C 11.8954,2.00001 11,2.89544 11,4.00001L 11,20C 11,21.1045 11.8954,22 13,22L 22,22L 22,2L 13,2.00001 Z M 20,10L 20,14L 13,14L 13,10L 20,10 Z M 20,16L 20,20L 13,20L 13,16L 20,16 Z M 20,4L 20,8L 13,7.99999L 13,4L 20,4 Z M 9.00002,11L 6.00001,11L 6.00001,8L 4.00001,8L 4.00001,11L 1.00002,11L 1.00002,13L 4.00001,13L 4.00001,16L 6.00001,16L 6.00001,13L 9.00002,13L 9.00002,11 Z" stroke-linejoin="round" stroke-width="0.2" fill-opacity="1" fill="#000000"></path></svg>');
var m = require('mithril');
module.exports = m.trust('<svg xml:space="preserve" viewBox="0 0 24.00 24.00" height="24" width="24" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><path d="M 4,10C 3.44771,10 3,9.55229 3,9C 3,8.44772 3.44772,8 4,8L 12,8C 13.1046,8 14,7.10457 14,6C 14,4.89543 13.1046,4 12,4C 11.4477,4 10.9477,4.22386 10.5858,4.58578C 10.1953,4.97631 9.56209,4.97631 9.17157,4.58578C 8.78104,4.19526 8.78104,3.56209 9.17157,3.17157C 9.89543,2.44772 10.8954,2.00001 12,2.00001C 14.2091,2.00001 16,3.79086 16,6C 16,8.20914 14.2091,10 12,10L 4,10 Z M 19,12C 19.5523,12 20,11.5523 20,11C 20,10.4477 19.5523,10 19,10C 18.7238,10 18.4738,10.1119 18.2929,10.2929C 17.9024,10.6834 17.2692,10.6834 16.8787,10.2929C 16.4881,9.90237 16.4882,9.2692 16.8787,8.87868C 17.4216,8.33579 18.1716,8 19,8C 20.6568,8 22,9.34315 22,11C 22,12.6569 20.6568,14 19,14L 5,14C 4.44771,14 4,13.5523 4,13C 4,12.4477 4.44772,12 5,12L 19,12 Z M 18,18L 4,18C 3.44772,18 3,17.5523 3,17C 3,16.4477 3.44771,16 4,16L 18,16C 19.6568,16 21,17.3431 21,19C 21,20.6569 19.6568,22 18,22C 17.1716,22 16.4216,21.6642 15.8787,21.1213C 15.4882,20.7308 15.4881,20.0976 15.8787,19.7071C 16.2692,19.3166 16.9024,19.3166 17.2929,19.7071C 17.4738,19.8881 17.7238,20 18,20C 18.5523,20 19,19.5523 19,19C 19,18.4477 18.5523,18 18,18 Z" stroke-linejoin="round" stroke-width="0.2" fill-opacity="1" fill="#000000"></path></svg>');
var m = require('mithril');
module.exports = m.trust('<svg xml:space="preserve" viewBox="0 0 24.00 24.00" height="24" width="24" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><path d="M 11.1464,15.182L 9.73223,13.7678L 11.1464,12.3536L 12.5607,13.7678L 13.9749,12.3536L 12.5607,10.9393L 13.9749,9.52512L 15.3891,10.9393L 16.8033,9.52513L 13.9749,6.6967L 6.9038,13.7678L 9.73223,16.5962L 11.1464,15.182 Z M 3.07538,19.0104L 6.1967,15.8891L 4.07538,13.7678L 13.9749,3.86827L 16.0962,5.98959L 17.5104,4.57538L 16.0962,3.16117L 17.5104,1.74695L 21.753,5.98959L 20.3388,7.4038L 18.9246,5.98959L 17.5104,7.4038L 19.6317,9.52512L 9.73223,19.4246L 7.61091,17.3033L 3.07538,21.8388L 3.07538,19.0104 Z" stroke-linejoin="round" stroke-width="0.2" fill-opacity="1" fill="#000000"></path></svg>');
),
m('.fontcolor-secondary.fontsize-smallest.u-marginbottom-10',
`${reward.description.substring(0, 90)}...`
),
m('.fontcolor-secondary.fontsize-smallest', [
m('span.fontcolor-terciary',
'Entrega prevista:'
),
m.trust(' '),
h.momentify(reward.deliver_at, 'MMMM/YYYY')
]),
m('.fontcolor-secondary.fontsize-smallest', [
m('span.fontcolor-terciary',
'Envio:'
),
m.trust(' '),
window.I18n.t(`shipping_options.${reward.shipping_options}`, I18nScope())
])
]),
m('.table-col.w-col.w-col-9',
m('.u-margintop-20.w-row', [
m('.u-text-center-big-only.w-col.w-col-4.w-col-small-4.w-col-tiny-4',
m('.w-row', [
m('.w-col.w-col-6',
(!canBeCreated(reward) && !cannotBeCreated(reward)) ?
m('.fontsize-base', [
m('span.fa.fa-paper-plane.fontcolor-terciary',
' '
),
` ${reward.sentCount}`
]) : ''
),
const createBottomBarTemplate = function(currentLink) {
let text = '';
if (currentLink.name) {
text += currentLink.name;
}
if (currentLink.sub) {
text += ' - ';
text += currentLink.sub;
}
return m.trust('<div class="bottom indent title">' + text + '</div>');
};