// // Created by xcbosa on 2023-02-06 // #include "../../processor/processor.h" #include "../../utils/utils.h" #include "../../webuiconf.h" using namespace std; using namespace xc::processor; using namespace xc::utils; using namespace xc::processor::templates; namespace xc::controller { static string ControllerPath = "/framework7/framework7-bundle.min.js"; static ResponseData *controllerResponse(RequestData request) { return new TextResponseData(200, string("/**\n") + string(" * Framework7 7.1.2\n") + string(" * Full featured mobile HTML framework for building iOS & Android apps\n") + string(" * https://framework7.io/\n") + string(" *\n") + string(" * Copyright 2014-2023 Vladimir Kharlampidi\n") + string(" *\n") + string(" * Released under the MIT License\n") + string(" *\n") + string(" * Released on: January 18, 2023\n") + string(" */\n") + string("\n") + string("!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).Framework7=t()}(this,(function(){\"use strict\";function e(e){return null!==e&&\"object\"==typeof e&&\"constructor\"in e&&e.constructor===Object}function t(a,r){void 0===a&&(a={}),void 0===r&&(r={}),Object.keys(r).forEach((s=>{void 0===a[s]?a[s]=r[s]:e(r[s])&&e(a[s])&&Object.keys(r[s]).length>0&&t(a[s],r[s])}))}const a={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:\"\"},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:\"\",host:\"\",hostname:\"\",href:\"\",origin:\"\",pathname:\"\",protocol:\"\",search:\"\"}};function r(){const e=\"undefined\"!=typeof document?document:{};return t(e,a),e}const s={document:a,navigator:{userAgent:\"\"},location:{hash:\"\",host:\"\",hostname:\"\",href:\"\",origin:\"\",pathname:\"\",protocol:\"\",search:\"\"},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>\"\"}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>\"undefined\"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){\"undefined\"!=typeof setTimeout&&clearTimeout(e)}};function o(){const e=\"undefined\"!=typeof window?window:{};return t(e,s),e}class n extends Array{constructor(e){\"number\"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,\"__proto__\",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function i(e){void 0===e&&(e=[]);const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...i(e)):t.push(e)})),t}function l(e,t){return Array.prototype.filter.call(e,t)}function c(e,t){const a=o(),s=r();let i=[];if(!t&&e instanceof n)return e;if(!e)return new n(i);if(\"string\"==typeof e){const a=e.trim();if(a.indexOf(\"<\")>=0&&a.indexOf(\">\")>=0){let e=\"div\";0===a.indexOf(\"