| 12345678910 |
- import{_ as e}from"./uni-icons.CCSIFyQK.js";import{J as t,o as n,c as r,w as i,b as a,k as o,K as s,i as l,h as c}from"./index-ESTWQ1DK.js";import{r as f}from"./uni-app.es.B2O8FBxl.js";import{_ as u}from"./_plugin-vue_export-helper.BCo6x5W8.js";var h;
- /**
- * SVGInject - Version 1.2.3
- * A tiny, intuitive, robust, caching solution for injecting SVG files inline into the DOM.
- *
- * https://github.com/iconfu/svg-inject
- *
- * Copyright (c) 2018 INCORS, the creators of iconfu.com
- * @license MIT License - https://github.com/iconfu/svg-inject/blob/master/LICENSE
- */h={exports:{}},function(e,t){var n,r,i="style",a="title",o="undefined",s=null,l="--inject-",c=new RegExp("--inject-\\d+","g"),f="LOAD_FAIL",u="SVG_INVALID",p=["src","alt","onload","onerror"],v=t.createElement("a"),d=typeof SVGRect!=o,m={useCache:!0,copyAttributes:!0,makeIdsUnique:!0},g={clipPath:["clip-path"],"color-profile":s,cursor:s,filter:s,linearGradient:["fill","stroke"],marker:["marker","marker-end","marker-mid","marker-start"],mask:s,pattern:["fill","stroke"],radialGradient:["fill","stroke"]},b=1;function k(e){return(n=n||new XMLSerializer).serializeToString(e)}function w(e,t){var n,r,a,o,c=l+b++,f=/url\("?#([a-zA-Z][\w:.-]*)"?\)/g,u=e.querySelectorAll("[id]"),h=t?[]:s,p={},v=[],d=!1;if(u.length){for(a=0;a<u.length;a++)(r=u[a].localName)in g&&(p[r]=1);for(r in p)(g[r]||[r]).forEach((function(e){v.indexOf(e)<0&&v.push(e)}));v.length&&v.push(i);var m,k,w,C=e.getElementsByTagName("*"),y=e;for(a=-1;y!=s;){if(y.localName==i)(w=(k=y.textContent)&&k.replace(f,(function(e,t){return h&&(h[t]=1),"url(#"+t+c+")"})))!==k&&(y.textContent=w);else if(y.hasAttributes()){for(o=0;o<v.length;o++)m=v[o],(w=(k=y.getAttribute(m))&&k.replace(f,(function(e,t){return h&&(h[t]=1),"url(#"+t+c+")"})))!==k&&y.setAttribute(m,w);["xlink:href","href"].forEach((function(e){var t=y.getAttribute(e);/^\s*#/.test(t)&&(t=t.trim(),y.setAttribute(e,t+c),h&&(h[t.substring(1)]=1))}))}y=C[++a]}for(a=0;a<u.length;a++)n=u[a],h&&!h[n.id]||(n.id+=c,d=!0)}return d}function C(e,n,r,i){if(n){n.setAttribute("data-inject-url",r);var o=e.parentNode;if(o){i.copyAttributes&&function(e,n){for(var r,i,o,s=e.attributes,l=0;l<s.length;l++)if(i=(r=s[l]).name,-1==p.indexOf(i))if(o=r.value,i==a){var c,f=n.firstElementChild;f&&f.localName.toLowerCase()==a?c=f:(c=t.createElementNS("http://www.w3.org/2000/svg",a),n.insertBefore(c,f)),c.textContent=o}else n.setAttribute(i,o)}(e,n);var s=i.beforeInject,l=s&&s(e,n)||n;o.replaceChild(l,e),e.__svgInject=1,x(e);var c=i.afterInject;c&&c(e,l)}}else j(e,i)}function y(){for(var e={},t=arguments,n=0;n<t.length;n++){var r=t[n];for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}function _(e,n){if(n){var i;try{i=function(e){return(r=r||new DOMParser).parseFromString(e,"text/xml")}(e)}catch(o){return s}return i.getElementsByTagName("parsererror").length?s:i.documentElement}var a=t.createElement("div");return a.innerHTML=e,a.firstElementChild}function x(e){e.removeAttribute("onload")}function A(e){console.error("SVGInject: "+e)}function E(e,t,n){e.__svgInject=2,n.onFail?n.onFail(e,t):A(t)}function j(e,t){x(e),E(e,u,t)}function I(e,t){x(e),E(e,"SVG_NOT_SUPPORTED",t)}function S(e,t){E(e,f,t)}function T(e){e.onload=s,e.onerror=s}function L(e){A("no img element")}var V=function n(r,a){var h=y(m,a),p={};function g(e,t){t=y(h,t);var n=function(n){var r=function(){var e=t.onAllFinish;e&&e(),n&&n()};if(e&&typeof e.length!=o){var i=0,a=e.length;if(0==a)r();else for(var s=function(){++i==a&&r()},l=0;l<a;l++)A(e[l],t,s)}else A(e,t,r)};return typeof Promise==o?n():new Promise(n)}function A(e,t,n){if(e){var r=e.__svgInject;if(r)Array.isArray(r)?r.push(n):n();else{if(T(e),!d)return I(e,t),void n();var i=t.beforeLoad,a=i&&i(e)||e.getAttribute("src");if(!a)return""===a&&S(e,t),void n();var h=[];e.__svgInject=h;var m=function(){n(),h.forEach((function(e){e()}))},g=(B=a,v.href=B,v.href),y=t.useCache,x=t.makeIdsUnique,A=function(e){y&&(p[g].forEach((function(t){t(e)})),p[g]=e)};if(y){var E,V=function(n){if(n===f)S(e,t);else if(n===u)j(e,t);else{var r,i=n[0],a=n[1],o=n[2];x&&(i===s?(i=w(r=_(a,!1),!1),n[0]=i,n[2]=i&&k(r)):i&&(a=function(e){return e.replace(c,l+b++)}(o))),r=r||_(a,!1),C(e,r,g,t)}m()};if(typeof(E=p[g])!=o)return void(E.isCallbackQueue?E.push(V):V(E));(E=[]).isCallbackQueue=!0,p[g]=E}!function(e,t,n){if(e){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4==r.readyState){var e=r.status;200==e?t(r.responseXML,r.responseText.trim()):(e>=400||0==e)&&n()}},r.open("GET",e,!0),r.send()}}(g,(function(n,r){var i=n instanceof Document?n.documentElement:_(r,!0),a=t.afterLoad;if(a){var o=a(i,r)||i;if(o){var l="string"==typeof o;r=l?o:k(i),i=l?_(o,!0):o}}if(i instanceof SVGElement){var c=s;if(x&&(c=w(i,!1)),y){var f=c&&k(i);A([c,r,f])}C(e,i,g,t)}else j(e,t),A(u);m()}),(function(){S(e,t),A(f),m()}))}}else L();var B}return d&&function(e){var n=t.getElementsByTagName("head")[0];if(n){var r=t.createElement(i);r.type="text/css",r.appendChild(t.createTextNode(e)),n.appendChild(r)}}('img[onload^="'+r+'("]{visibility:hidden;}'),g.setOptions=function(e){h=y(h,e)},g.create=n,g.err=function(e,t){e?2!=e.__svgInject&&(T(e),d?(x(e),S(e,h)):I(e,h),t&&(x(e),e.src=t)):L()},e[r]=g,g}("SVGInject");h.exports=V}(window,document);const p=u({name:"my-topbar",props:{title:{type:String,default:""},showBack:{type:Boolean,default:!0}},emits:["btnBackClick","btnInfoClick","btnSettingsClick"],data:()=>({}),onLoad(){},methods:{btnBack(){this.$emit("btnBackClick")},btnInfo(){this.$emit("btnInfoClick")},btnFullscreen(){this.$global.fullscreen(),this.$emit("btnSettingsClick")}}},[["render",function(u,h,p,v,d,m){const g=f(t("uni-icons"),e),b=l,k=c;return n(),r(b,{class:"topbar uni-row"},{default:i((()=>[a(b,{class:"topbar-left-right uni-row uni-jct"},{default:i((()=>[p.showBack?(n(),r(g,{key:0,type:"back",class:"topbar-ico topbar-ico-back",onClick:m.btnBack},null,8,["onClick"])):o("",!0)])),_:1}),a(k,{class:"title",innerHTML:p.title},null,8,["innerHTML"]),a(b,{class:"topbar-left-right uni-row uni-jce"},{default:i((()=>[a(b,{class:"uni-row",onClick:m.btnFullscreen},{default:i((()=>[s("img",{class:"topbar-ico-fullscreen",src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1736233574266'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5393'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M983.04%20727.04a40.96%2040.96%200%200%200-40.96%2040.96v173.592381h-174.08a40.96%2040.96%200%201%200%200%2082.407619h173.592381A82.407619%2082.407619%200%200%200%201024%20941.592381v-173.592381a40.96%2040.96%200%200%200-40.96-40.96zM941.592381%200h-173.592381a40.96%2040.96%200%201%200%200%2082.407619h173.592381v173.592381a40.96%2040.96%200%201%200%2082.407619%200V82.407619A82.407619%2082.407619%200%200%200%20941.592381%200zM256%20941.592381H82.407619v-173.592381a40.96%2040.96%200%201%200-82.407619%200v173.592381A82.407619%2082.407619%200%200%200%2082.407619%201024h173.592381a40.96%2040.96%200%201%200%200-82.407619zM40.96%20296.96a40.96%2040.96%200%200%200%2040.96-40.96V82.407619h174.08a40.96%2040.96%200%201%200%200-82.407619H82.407619A82.407619%2082.407619%200%200%200%200%2082.407619v173.592381a40.96%2040.96%200%200%200%2040.96%2040.96z%20m682.666667%20425.20381H301.83619V301.83619h420.815239z%20m82.407619%200V301.83619a82.407619%2082.407619%200%200%200-83.870476-82.407619H301.83619A82.407619%2082.407619%200%200%200%20219.428571%20301.83619v420.815239a82.407619%2082.407619%200%200%200%2082.407619%2081.92h420.815239a82.407619%2082.407619%200%200%200%2081.92-82.407619z'%20fill='currentColor'%20p-id='5394'%3e%3c/path%3e%3c/svg%3e",onload:"SVGInject(this)"})])),_:1},8,["onClick"])])),_:1})])),_:1})}],["__scopeId","data-v-03e3c343"]]);export{p as _};
|