PageSourceSearch

https://sapelli-designer.netlify.app/static/js/70.8d929323.chunk.js

js sapelli-designer.netlify.app collected 2026-10-03 11:23:31 UTC 13,462 bytes, 2 lines download raw bytes

1(this.webpackJsonpsapelli=this.webpackJsonpsapelli||[]).push([[70],{321:function(t,e,n){"use strict";n.r(e),n.d(e,"ion_route",(function(){return a})),n.d(e,"ion_route_redirect",(function(){return c})),n.d(e,"ion_router",(function(){return k})),n.d(e,"ion_router_link",(function(){return S}));var r=n(4),o=n(56),i=(n(13),n(35)),u=n(383),a=function(){function t(t){Object(o.l)(this,t),this.url="",this.ionRouteDataChanged=Object(o.d)(this,"ionRouteDataChanged",7)}return t.prototype.onUpdate=function(t){this.ionRouteDataChanged.emit(t)},t.prototype.onComponentProps=function(t,e){if(t!==e){var n=t?Object.keys(t):[],r=e?Object.keys(e):[];if(n.length===r.length)for(var o=0,i=n;o<i.length;o++){var u=i[o];if(t[u]!==e[u])return void this.onUpdate(t)}else this.onUpdate(t)}},t.prototype.connectedCallback=function(){this.ionRouteDataChanged.emit()},Object.defineProperty(t,"watchers",{get:function(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}},enumerable:!0,configurable:!0}),t}(),c=function(){function t(t){Object(o.l)(this,t),this.ionRouteRedirectChanged=Object(o.d)(this,"ionRouteRedirectChanged",7)}return t.prototype.propDidChange=function(){this.ionRouteRedirectChanged.emit()},t.prototype.connectedCallback=function(){this.ionRouteRedirectChanged.emit()},Object.defineProperty(t,"watchers",{get:function(){return{from:["propDidChange"],to:["propDidChange"]}},enumerable:!0,configurable:!0}),t}(),s=function(t){return"/"+t.filter((function(t){return t.length>0})).join("/")},h=function(t){if(null==t)return[""];var e=t.split("/").map((function(t){return t.trim()})).filter((function(t){return t.length>0}));return 0===e.length?[""]:e},l=function t(e,n,o,i,u){return void 0===u&&(u=!1),Object(r.a)(void 0,void 0,void 0,(function(){var a,c,s,h;return Object(r.c)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),a=d(e),i>=n.length||!a?[2,u]:[4,a.componentOnReady()];case 1:return r.sent(),c=n[i],[4,a.setRouteId(c.id,c.params,o)];case 2:return(s=r.sent()).changed&&(o="root",u=!0),[4,t(s.element,n,o,i+1,u)];case 3:return u=r.sent(),s.markVisible?[4,s.markVisible()]:[3,5];case 4:r.sent(),r.label=5;case 5:return[2,u];case 6:return h=r.sent(),console.error(h),[2,!1];case 7:return[2]}}
1))}))},f=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",d=function(t){if(t){if(t.matches(f))return t;var e=t.querySelector(f);return e||void 0}},p=function(t,e){return e.find((function(e){return function(t,e){var n=e.from;if(void 0===e.to)return!1;if(n.length>t.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if("*"===o)return!0;if(o!==t[r])return!1}return n.length===t.length}(t,e)}))},v=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n&&t[r].toLowerCase()===e[r].id;r++);return r},g=function(t,e){for(var n,r=new w(t),o=!1,i=0;i<e.length;i++){var u=e[i].path;if(""===u[0])o=!0;else{for(var a=0,c=u;a<c.length;a++){var s=c[a],h=r.next();if(":"===s[0]){if(""===h)return null;((n=n||[])[i]||(n[i]={}))[s.slice(1)]=h}else if(h!==s)return null}o=!1}}return!o||o===(""===r.next())?n?e.map((function(t,e){return{id:t.id,path:t.path,params:b(t.params,n[e])}})):e:null},b=function(t,e){return!t&&e?e:t&&!e?t:t&&e?Object.assign(Object.assign({},t),e):void 0},m=function(t){for(var e=1,n=1,r=0,o=t;r<o.length;r++)for(var i=0,u=o[r].path;i<u.length;i++){var a=u[i];":"===a[0]?e+=Math.pow(1,n):""!==a&&(e+=Math.pow(2,n)),n++}return e},w=function(){function t(t){this.path=t.slice()}return t.prototype.next=function(){return this.path.length>0?this.path.shift():""},t}(),y=function(t){return Array.from(t.children).filter((function(t){return"ION-ROUTE-REDIRECT"===t.tagName})).map((function(t){var e=R(t,"to");return{from:h(R(t,"from")),to:null==e?void 0:h(e)}}))},O=function(t){return C(j(t))},j=function t(e,n){return void 0===n&&(n=e),Array.from(n.children).filter((function(t){return"ION-ROUTE"===t.tagName&&t.component})).map((function(n){var r=R(n,"component");if(null==r)throw new Error("component missing in ion-route");return{path:h(R(n,"url")),id:r.toLowerCase(),params:n.componentProps,children:t(e,n)}}))},R=function(t,e){return e in t?t[e]:t.hasAttribute(e)?t.getAttribute(e):null},C=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var o=r[n];P([],e,o)}return e},P=function t(e,n,r){var o=e.slice();if(o.push({id:r.id,path:r.path,params:r.params}),0!==r.children.length)for(var i=0,u=r.children;i<u.length;i++){t(o,n,u[i])}else n.push(o)},k=function(){function t(t){Object(o.l)(this,t),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0,this.ionRouteWillChange=Object(o.d)(this,"ionRouteWillChange",7),this.ionRouteDidChange=Object(o.d)(this,"ionRouteDidChange",7)}return t.prototype.componentWillLoad=function(){return Object(r.a)(this,void 0,void 0,(function(){return Object(r.c)(this,(function(t){switch(t.label){case 0:return console.debug("[ion-router] router will load"),[4,d(document.body)?Promise.resolve():new Promise((function(t){window.addEventListener("ionNavWillLoad",t,{once:!0})}))];case 1:return t.sent(),console.debug("[ion-router] found nav"),[4,this.onRoutesChanged()];case 2:return t.sent(),[2]}}))}))},t.prototype.componentDidLoad=function(){window.addEventListener("ionRouteRedirectChanged",Object(i.e)(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",Object(i.e)(this.onRoutesChanged.bind(this),100))},t.prototype.onPopState=function(){var t=this.historyDirection(),e=this.getPath();return console.debug("[ion-router] URL changed -> update nav",e,t),this.writeNavStateRoot(e,t)},t.prototype.onBackButton=function(t){var e=this;t.detail.register(0,(function(){return e.back()}))},t.prototype.push=function(t,e){void 0===e&&(e="forward"),t.startsWith(".")&&(t=new URL(t,window.location.href).pathname),console.debug("[ion-router] URL pushed -> updating nav",t,e);var n=h(t);return this.setPath(n,e),this.writeNavStateRoot(n,e)},t.prototype.back=function(){return window.history.back(),Promise.resolve(this.waitPromise)},t.prototype.printDebug=function(){return Object(r.a)(this,void 0,void 0,(function(){return Object(r.c)(this,(function(t){return console.debug("CURRENT PATH",this.getPath()),console.debug("PREVIOUS PATH",this.previousPath),function(t){console.group("[ion-core] ROUTES["+t.length+"]");for(var e=function(t){var e=[];t.forEach((function(t){return e.push.apply(e,t.path)}));var n=t.map((function(t){return t.id}));console.debug("%c "+s(e),"font-weight: bold; padding-left: 20px","=>\t","("+n.join(", ")+")")},n=0,r=t;n<r.length;n++){e(r[n])}console.groupEnd()}(O(this.el)),function(t){console.group("[ion-core] REDIRECTS["+t.length+"]");for(var e=0,n=t;e<n.length;e++){var r=n[e];r.to&&console.debug("FROM: ","$c "+s(r.from),"font-weight: bold"," TO: ","$c "+s(r.to),"font-weight: bold")}console.groupEnd()}(y(this.el)),[2]}))}
1))},t.prototype.navChanged=function(t){return Object(r.a)(this,void 0,void 0,(function(){var e,n,o,i,u,a;return Object(r.c)(this,(function(c){switch(c.label){case 0:return this.busy?(console.warn("[ion-router] router is busy, navChanged was cancelled"),[2,!1]):[4,(s=window.document.body,Object(r.a)(void 0,void 0,void 0,(function(){var t,e,n,o;return Object(r.c)(this,(function(r){switch(r.label){case 0:t=[],n=s,r.label=1;case 1:return(e=d(n))?[4,e.getRouteId()]:[3,3];case 2:return(o=r.sent())?(n=o.element,o.element=void 0,t.push(o),[3,4]):[3,5];case 3:return[3,5];case 4:return[3,1];case 5:return[2,{ids:t,outlet:e}]}}))})))];case 1:return e=c.sent(),n=e.ids,o=e.outlet,i=O(this.el),(u=function(t,e){for(var n=null,r=0,o=t.map((function(t){return t.id})),i=0,u=e;i<u.length;i++){var a=u[i],c=v(o,a);c>r&&(n=a,r=c)}return n?n.map((function(e,n){return{id:e.id,path:e.path,params:b(e.params,t[n]&&t[n].params)}})):null}(n,i))?(a=function(t){for(var e=[],n=0,r=t;n<r.length;n++)for(var o=r[n],i=0,u=o.path;i<u.length;i++){var a=u[i];if(":"===a[0]){var c=o.params&&o.params[a.slice(1)];if(!c)return null;e.push(c)}else""!==a&&e.push(a)}return e}(u))?(console.debug("[ion-router] nav changed -> update URL",n,a),this.setPath(a,t),[4,this.safeWriteNavState(o,u,"root",a,null,n.length)]):(console.warn("[ion-router] router could not match path because some required param is missing"),[2,!1]):(console.warn("[ion-router] no matching URL for ",n.map((function(t){return t.id}))),[2,!1]);case 2:return c.sent(),[2,!0]}var s}))}))},t.prototype.onRedirectChanged=function(){var t=this.getPath();t&&p(t,y(this.el))&&this.writeNavStateRoot(t,"root")},t.prototype.onRoutesChanged=function(){return this.writeNavStateRoot(this.getPath(),"root")},t.prototype.historyDirection=function(){var t=window;null===t.history.state&&(this.state++,t.history.replaceState(this.state,t.document.title,t.document.location&&t.document.location.href));var e=t.history.state,n=this.lastState;return this.lastState=e,e>n?"forward":e<n?"back":"root"},t.prototype.writeNavStateRoot=function(t,e){return Object(r.a)(this,void 0,void 0,(function(){var n,o,i,u,a;return Object(r.c)(this,(function(r){return t?(n=y(this.el),o=p(t,n),i=null,o&&(this.setPath(o.to,e),i=o.from,t=o.to),u=O(this.el),(a=function(t,e){for(var n=null,r=0,o=0,i=e;o<i.length;o++){var u=i[o],a=g(t,u);if(null!==a){var c=m(a);c>r&&(r=c,n=a)}}return n}(t,u))?[2,this.safeWriteNavState(document.body,a,e,t,i)]:(console.error("[ion-router] the path does not match any route"),[2,!1])):(console.error("[ion-router] URL is not part of the routing set"),[2,!1])}))}))},t.prototype.safeWriteNavState=function(t,e,n,o,i,u){return void 0===u&&(u=0),Object(r.a)(this,void 0,void 0,(function(){var a,c,s;return Object(r.c)(this,(function(r){switch(r.label){case 0:return[4,this.lock()];case 1:a=r.sent(),c=!1,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.writeNavState(t,e,n,o,i,u)];case 3:return c=r.sent(),[3,5];case 4:return s=r.sent(),console.error(s),[3,5];case 5:return a(),[2,c]}}))}))},t.prototype.lock=function(){return Object(r.a)(this,void 0,void 0,(function(){var t,e;return Object(r.c)(this,(function(n){switch(n.label){case 0:return t=this.waitPromise,this.waitPromise=new Promise((function(t){return e=t})),void 0===t?[3,2]:[4,t];case 1:n.sent(),n.label=2;case 2:return[2,e]}}))}))},t.prototype.writeNavState=function(t,e,n,o,i,u){return void 0===u&&(u=0),Object(r.a)(this,void 0,void 0,(function(){var a,c;return Object(r.c)(this,(function(r){switch(r.label){case 0:return this.busy?(console.warn("[ion-router] router is busy, transition was cancelled"),[2,!1]):(this.busy=!0,(a=this.routeChangeEvent(o,i))&&this.ionRouteWillChange.emit(a),[4,l(t,e,n,u)]);case 1:return c=r.sent(),this.busy=!1,c&&console.debug("[ion-router] route changed",o),a&&this.ionRouteDidChange.emit(a),[2,c]}}))}))},t.prototype.setPath=function(t,e){this.state++,function(t,e,n,o,i,u){var a=s(Object(r.e)(h(e),o));n&&(a="#"+a),"forward"===i?t.pushState(u,"",a):t.replaceState(u,"",a)}(window.history,this.root,this.useHash,t,e,this.state)},t.prototype.getPath=function(){return function(t,e,n){var r=t.pathname;if(n){var o=t.hash;r="#"===o[0]?o.slice(1):""}return function(t,e){if(t.length>e.length)return null;if(t.length<=1&&""===t[0])return e;for(var n=0;n<t.length;n++)if(t[n].length>0&&t[n]!==e[n])return null;return e.length===t.length?[""]:e.slice(t.length)}(h(e),h(r))}(window.location,this.root,this.useHash)},t.prototype.routeChangeEvent=function(t,e){var n=this.previousPath,r=s(t);return this.previousPath=r,r===n?null:{from:n,redirectedFrom:e?s(e):null,to:r}},Object.defineProperty(t.prototype,"el",{get:function(){return Object(o.f)(this)},enumerable:!0,configurable:!0}),t}(),S=function(){function t(t){var e=this;Object(o.l)(this,t),this.routerDirection="forward",this.onClick=function(t){Object(u.d)(e.href,t,e.routerDirection)}}return t.prototype.render=function(){var t,e=Object(o.e)(this),n={href:this.href,rel:this.rel,target:this.target};return Object(o.i)(o.a,{onClick:this.onClick,class:Object.assign(Object.assign({},Object(u.a)(this.color)),(t={},t[e]=!0,t["ion-activatable"]=!0,t))},Object(o.i)("a",Object.assign({},n),Object(o.i)("slot",null)))}
1,Object.defineProperty(t,"style",{get:function(){return":host{--background:transparent;--color:var(--ion-color-primary,#3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}"},enumerable:!0,configurable:!0}),t}()},383:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return c}));var r=n(4),o=function(t,e){return null!==e.closest(t)},i=function(t){var e;return"string"===typeof t&&t.length>0?((e={"ion-color":!0})["ion-color-"+t]=!0,e):void 0},u=function(t){var e={};return function(t){return void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter((function(t){return null!=t})).map((function(t){return t.trim()})).filter((function(t){return""!==t})):[]}(t).forEach((function(t){return e[t]=!0})),e},a=/^[a-z][a-z0-9+\-.]*:/,c=function(t,e,n){return Object(r.a)(void 0,void 0,void 0,(function(){var o;return Object(r.c)(this,(function(r){return null!=t&&"#"!==t[0]&&!a.test(t)&&(o=document.querySelector("ion-router"))?(null!=e&&e.preventDefault(),[2,o.push(t,n)]):[2,!1]}))}))}}}]);
2//# sourceMappingURL=70.8d929323.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.