PageSourceSearch

https://apply.midlandtrust.com/static/js/5592.22f4d5dc.chunk.js

js midlandtrust.com collected 2026-10-01 16:31:17 UTC 14,769 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmidland_online_app_client=self.webpackChunkmidland_online_app_client||[]).push([[5592],{5592:(t,e,n)=>{n.r(e),n.d(e,{ion_route:()=>u,ion_route_redirect:()=>c,ion_router:()=>N,ion_router_link:()=>Y});var r=n(9370),o=n(5318),i=n(9380),s=n(4670),a=n(4830),u=function(){function t(t){(0,o.r)(this,t),this.ionRouteDataChanged=(0,o.e)(this,"ionRouteDataChanged",7),this.url=""}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 s=i[o];if(t[s]!==e[s])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:!1,configurable:!0}),t}(),c=function(){function t(t){(0,o.r)(this,t),this.ionRouteRedirectChanged=(0,o.e)(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:!1,configurable:!0}),t}(),h="root",l="forward",f=function(t){return"/"+t.filter((function(t){return t.length>0})).join("/")},d=function(t,e,n,o,i,s,a){var u=function(t,e,n){var r=f(t);return e&&(r="#"+r),void 0!==n&&(r+="?"+n),r}((0,r.fX)((0,r.fX)([],p(e).segments),o),n,a);i===l?t.pushState(s,"",u):t.replaceState(s,"",u)},p=function(t){var e,n=[""];if(null!=t){var r=t.indexOf("?");r>-1&&(e=t.substr(r+1),t=t.substr(0,r)),n=t.split("/").map((function(t){return t.trim()})).filter((function(t){return t.length>0})),0===n.length&&(n=[""])}return{segments:n,queryString:e}},v=function(t,e,n,o,s,a){return void 0===s&&(s=!1),(0,r.sH)(void 0,void 0,void 0,(function(){var u,c,l,f;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),u=b(t),o>=e.length||!u?[2,s]:[4,new Promise((function(t){return(0,i.c)(u,t)}))];case 1:return r.sent(),c=e[o],[4,u.setRouteId(c.id,c.params,n,a)];case 2:return(l=r.sent()).changed&&(n=h,s=!0),[4,v(l.element,e,n,o+1,s,a)];case 3:return s=r.sent(),l.markVisible?[4,l.markVisible()]:[3,5];case 4:r.sent(),r.label=5;case 5:return[2,s];case 6:return f=r.sent(),console.error(f),[2,!1];case 7:return[2]}}
1))}))},g=function(t){return(0,r.sH)(void 0,void 0,void 0,(function(){var e,n,o,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:e=[],o=t,r.label=1;case 1:return(n=b(o))?[4,n.getRouteId()]:[3,3];case 2:return(i=r.sent())?(o=i.element,i.element=void 0,e.push(i),[3,4]):[3,5];case 3:return[3,5];case 4:return[3,1];case 5:return[2,{ids:e,outlet:n}]}}))}))},m=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",b=function(t){if(t){if(t.matches(m))return t;var e=t.querySelector(m);return null!==e&&void 0!==e?e:void 0}},y=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)}))},w=function(t,e){for(var n=Math.min(t.length,e.length),r=0,o=0;o<n;o++){var i=t[o],s=e[o];if(i.id.toLowerCase()!==s.id)break;if(i.params){var a=Object.keys(i.params);if(a.length===s.path.length)for(var u=a.map((function(t){return":"+t})),c=0;c<u.length&&u[c].toLowerCase()===s.path[c];c++)r++}r++}return r},R=function(t,e){for(var n,r=new k(t),o=!1,i=0;i<e.length;i++){var s=e[i].path;if(""===s[0])o=!0;else{for(var a=0,u=s;a<u.length;a++){var c=u[a],h=r.next();if(":"===c[0]){if(""===h)return null;((n=n||[])[i]||(n[i]={}))[c.slice(1)]=h}else if(h!==c)return null}o=!1}}return!o||o===(""===r.next())?n?e.map((function(t,e){return{id:t.id,path:t.path,params:C(t.params,n[e]),beforeEnter:t.beforeEnter,beforeLeave:t.beforeLeave}})):e:null},C=function(t,e){return t||e?Object.assign(Object.assign({},t),e):void 0},H=function(t,e){for(var n=null,r=0,o=0,i=e;o<i.length;o++){var s=i[o],a=R(t,s);if(null!==a){var u=P(a);u>r&&(r=u,n=a)}}return n},P=function(t){for(var e=1,n=1,r=0,o=t;r<o.length;r++)for(var i=0,s=o[r].path;i<s.length;i++){var a=s[i];":"===a[0]?e+=Math.pow(1,n):""!==a&&(e+=Math.pow(2,n)),n++}return e},k=function(){function t(t){this.path=t.slice()}return t.prototype.next=function(){return this.path.length>0?this.path.shift():""},t}(),S=function(t,e){return e in t?t[e]:t.hasAttribute(e)?t.getAttribute(e):null},E=function(t){return Array.from(t.children).filter((function(t){return"ION-ROUTE-REDIRECT"===t.tagName})).map((function(t){var e=S(t,"to");return{from:p(S(t,"from")).segments,to:null==e?void 0:p(e)}}))},D=function(t){return O(L(t))},L=function(t){return Array.from(t.children).filter((function(t){return"ION-ROUTE"===t.tagName&&t.component})).map((function(t){var e=S(t,"component");return{path:p(S(t,"url")).segments,id:e.toLowerCase(),params:t.componentProps,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter,children:L(t)}}))},O=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var o=r[n];j([],e,o)}return e},j=function(t,e,n){if((t=t.slice()).push({id:n.id,path:n.path,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}),0!==n.children.length)for(var r=0,o=n.children;r<o.length;r++){var i=o[r];j(t,e,i)}else e.push(t)},N=function(){function t(t){(0,o.r)(this,t),this.ionRouteWillChange=(0,o.e)(this,"ionRouteWillChange",7),this.ionRouteDidChange=(0,o.e)(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}return t.prototype.componentWillLoad=function(){return(0,r.sH)(this,void 0,void 0,(function(){var t,e,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,b(document.body)?Promise.resolve():new Promise((function(t){window.addEventListener("ionNavWillLoad",t,{once:!0})}))];case 1:return r.sent(),[4,this.runGuards(this.getPath())];case 2:return!0===(t=r.sent())?[3,5]:"object"!==typeof t?[3,4]:(e=t.redirect,n=p(e),this.setPath(n.segments,h,n.queryString),[4,this.writeNavStateRoot(n.segments,h)]);case 3:r.sent(),r.label=4;case 4:return[3,7];case 5:return[4,this.onRoutesChanged()];case 6:r.sent(),r.label=7;case 7:return[2]}}
1))}))},t.prototype.componentDidLoad=function(){window.addEventListener("ionRouteRedirectChanged",(0,i.o)(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",(0,i.o)(this.onRoutesChanged.bind(this),100))},t.prototype.onPopState=function(){return(0,r.sH)(this,void 0,void 0,(function(){var t,e,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=this.historyDirection(),e=this.getPath(),[4,this.runGuards(e)];case 1:if(!0!==(n=r.sent())){if("object"!==typeof n)return[2,!1];e=p(n.redirect).segments}return[2,this.writeNavStateRoot(e,t)]}}))}))},t.prototype.onBackButton=function(t){var e=this;t.detail.register(0,(function(t){e.back(),t()}))},t.prototype.canTransition=function(){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this.runGuards()];case 1:return!0!==(t=e.sent())?"object"===typeof t?[2,t.redirect]:[2,!1]:[2,!0]}}))}))},t.prototype.push=function(t,e,n){return void 0===e&&(e="forward"),(0,r.sH)(this,void 0,void 0,(function(){var o,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t.startsWith(".")&&(t=new URL(t,window.location.href).pathname),o=p(t),[4,this.runGuards(o.segments)];case 1:if(!0!==(i=r.sent())){if("object"!==typeof i)return[2,!1];o=p(i.redirect)}return this.setPath(o.segments,e,o.queryString),[2,this.writeNavStateRoot(o.segments,e,n)]}}))}))},t.prototype.back=function(){return window.history.back(),Promise.resolve(this.waitPromise)},t.prototype.printDebug=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return 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 "+f(e),"font-weight: bold; padding-left: 20px","=>\t","("+n.join(", ")+")")},n=0,r=t;n<r.length;n++)e(r[n]);console.groupEnd()}(D(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 "+f(r.from),"font-weight: bold"," TO: ","$c "+f(r.to.segments),"font-weight: bold")}console.groupEnd()}(E(this.el)),[2]}))}))},t.prototype.navChanged=function(t){return(0,r.sH)(this,void 0,void 0,(function(){var e,n,o,i,s,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.busy?(console.warn("[ion-router] router is busy, navChanged was cancelled"),[2,!1]):[4,g(window.document.body)];case 1:return e=r.sent(),n=e.ids,o=e.outlet,i=D(this.el),s=function(t,e){for(var n=null,r=0,o=0,i=e;o<i.length;o++){var s=i[o],a=w(t,s);a>r&&(n=s,r=a)}return n?n.map((function(e,n){return{id:e.id,path:e.path,params:C(e.params,t[n]&&t[n].params)}})):null}(n,i),s?(a=function(t){for(var e=[],n=0,r=t;n<r.length;n++)for(var o=r[n],i=0,s=o.path;i<s.length;i++){var a=s[i];if(":"===a[0]){var u=o.params&&o.params[a.slice(1)];if(!u)return null;e.push(u)}else""!==a&&e.push(a)}return e}(s),a?(this.setPath(a,t),[4,this.safeWriteNavState(o,s,h,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 r.sent(),[2,!0]}}))}))},t.prototype.onRedirectChanged=function(){var t=this.getPath();t&&y(t,E(this.el))&&this.writeNavStateRoot(t,h)},t.prototype.onRoutesChanged=function(){return this.writeNavStateRoot(this.getPath(),h)},t.prototype.historyDirection=function(){var t,e=window;null===e.history.state&&(this.state++,e.history.replaceState(this.state,e.document.title,null===(t=e.document.location)||void 0===t?void 0:t.href));var n=e.history.state,r=this.lastState;return this.lastState=n,n>r||n>=r&&r>0?l:n<r?"back":h},t.prototype.writeNavStateRoot=function(t,e,n){return(0,r.sH)(this,void 0,void 0,(function(){var o,i,s,a,u,c,h,l;return(0,r.YH)(this,(function(r){return t?(o=E(this.el),i=y(t,o),s=null,i&&(a=i.to,u=a.segments,c=a.queryString,this.setPath(u,e,c),s=i.from,t=u),h=D(this.el),(l=H(t,h))?[2,this.safeWriteNavState(document.body,l,e,t,s,0,n)]:(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,s,a){return void 0===s&&(s=0),(0,r.sH)(this,void 0,void 0,(function(){var u,c,h;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,this.lock()];case 1:u=r.sent(),c=!1,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.writeNavState(t,e,n,o,i,s,a)];case 3:return c=r.sent(),[3,5];case 4:return h=r.sent(),console.error(h),[3,5];case 5:return u(),[2,c]}}))}))},t.prototype.lock=function(){return(0,r.sH)(this,void 0,void 0,(function(){var t,e;return(0,r.YH)(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.runGuards=function(t,e){return void 0===t&&(t=this.getPath()),(0,r.sH)(this,void 0,void 0,(function(){var n,o,i,s,a,u,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return void 0===e&&(e=p(this.previousPath).segments),t&&e?(n=D(this.el),o=H(e,n),(i=o&&o[o.length-1].beforeLeave)?[4,i()]:[3,2]):[2,!0];case 1:return a=r.sent(),[3,3];case 2:a=!0,r.label=3;case 3:return!1===(s=a)||"object"===typeof s?[2,s]:(u=H(t,n),[2,!(c=u&&u[u.length-1].beforeEnter)||c()])}}))}))},t.prototype.writeNavState=function(t,e,n,o,i,s,a){return void 0===s&&(s=0),(0,r.sH)(this,void 0,void 0,(function(){var u,c;return(0,r.YH)(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,(u=this.routeChangeEvent(o,i))&&this.ionRouteWillChange.emit(u),[4,v(t,e,n,s,!1,a)]);case 1:return c=r.sent(),this.busy=!1,u&&this.ionRouteDidChange.emit(u),[2,c]}}))}))},t.prototype.setPath=function(t,e,n){this.state++,d(window.history,this.root,this.useHash,t,e,this.state,n)},t.prototype.getPath=function(){return function(t,e,n){var r=p(e).segments,o=n?t.hash.slice(1):t.pathname;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]!==e[n])return null;return e.length===t.length?[""]:e.slice(t.length)}(r,p(o).segments)}(window.location,this.root,this.useHash)},t.prototype.routeChangeEvent=function(t,e){var n=this.previousPath,r=f(t);return this.previousPath=r,r===n?null:{from:n,redirectedFrom:e?f(e):null,to:r}},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.i)(this)}
1,enumerable:!1,configurable:!0}),t}(),Y=function(){function t(t){var e=this;(0,o.r)(this,t),this.routerDirection="forward",this.onClick=function(t){(0,a.o)(e.href,t,e.routerDirection,e.routerAnimation)}}return t.prototype.render=function(){var t,e=(0,s.b)(this),n={href:this.href,rel:this.rel,target:this.target};return(0,o.h)(o.H,{onClick:this.onClick,class:(0,a.c)(this.color,(t={},t[e]=!0,t["ion-activatable"]=!0,t))},(0,o.h)("a",Object.assign({},n),(0,o.h)("slot",null)))},t}();Y.style=":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-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}"},4830:(t,e,n)=>{n.d(e,{c:()=>i,g:()=>s,h:()=>o,o:()=>u});var r=n(9370),o=function(t,e){return null!==e.closest(t)},i=function(t,e){var n;return"string"===typeof t&&t.length>0?Object.assign(((n={"ion-color":!0})["ion-color-"+t]=!0,n),e):e},s=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+\-.]*:/,u=function(t,e,n,o){return(0,r.sH)(void 0,void 0,void 0,(function(){var i;return(0,r.YH)(this,(function(r){return null!=t&&"#"!==t[0]&&!a.test(t)&&(i=document.querySelector("ion-router"))?(null!=e&&e.preventDefault(),[2,i.push(t,n,o)]):[2,!1]}))}))}}}]);
2//# sourceMappingURL=5592.22f4d5dc.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.