UNPKG

miniapp-web-jsapi

Version:

JSAPI/View adapter for miniprogram running on the web

80 lines 3.43 kB
import _createClass from "@babel/runtime/helpers/createClass"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized"; import _inherits from "@babel/runtime/helpers/inherits"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* packages/miniapp-web-jsapi/src/web/components/toast/ExceptionIcon.svelte generated by Svelte v3.49.0 */ import { SvelteComponent, append, attr, detach, init, insert, noop, safe_not_equal, svg_element } from "svelte/internal"; function create_fragment(ctx) { var svg; var g; var path0; var path1; var path2; return { c: function c() { svg = svg_element("svg"); g = svg_element("g"); path0 = svg_element("path"); path1 = svg_element("path"); path2 = svg_element("path"); attr(path0, "d", "M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"); attr(path0, "fill", "#FFF"); attr(path1, "fill", "#FFF"); attr(path1, "d", "M47 22h2v6h-2zm-24 0h2v6h-2z"); attr(path2, "d", "M21 51s4.6-7 15-7 15 7 15 7"); attr(path2, "stroke", "#FFF"); attr(path2, "stroke-width", "2"); attr(g, "fill", "none"); attr(g, "fill-rule", "evenodd"); attr(svg, "class", /*className*/ctx[0]); attr(svg, "xmlns", "http://www.w3.org/2000/svg"); attr(svg, "viewBox", "0 0 72 72"); }, m: function m(target, anchor) { insert(target, svg, anchor); append(svg, g); append(g, path0); append(g, path1); append(g, path2); }, p: function p(ctx, _ref) { var _ref2 = _slicedToArray(_ref, 1), dirty = _ref2[0]; if (dirty & /*className*/1) { attr(svg, "class", /*className*/ctx[0]); } }, i: noop, o: noop, d: function d(detaching) { if (detaching) detach(svg); } }; } function instance($$self, $$props, $$invalidate) { var className = $$props.className; $$self.$$set = function ($$props) { if ('className' in $$props) $$invalidate(0, className = $$props.className); }; return [className]; } var ExceptionIcon = /*#__PURE__*/function (_SvelteComponent) { _inherits(ExceptionIcon, _SvelteComponent); var _super = _createSuper(ExceptionIcon); function ExceptionIcon(options) { var _this; _classCallCheck(this, ExceptionIcon); _this = _super.call(this); init(_assertThisInitialized(_this), options, instance, create_fragment, safe_not_equal, { className: 0 }); return _this; } return _createClass(ExceptionIcon); }(SvelteComponent); export default ExceptionIcon;