PageSourceSearch

https://ipatsient.ee/entrypoint/bundle.js

js ipatsient.ee collected 2026-10-06 05:22:37 UTC 15,528 bytes, 2 lines download raw bytes

1var EntrypointApp=function(){"use strict";function t(){}const e=t=>t;function n(t){return t()}function o(){return Object.create(null)}function i(t){t.forEach(n)}function r(t){return"function"==typeof t}function l(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s;function a(t){return null==t?"":t}const u="undefined"!=typeof window;let c=u?()=>window.performance.now():()=>Date.now(),d=u?t=>requestAnimationFrame(t):t;const f=new Set;function p(t){f.forEach((e=>{e.c(t)||(f.delete(e),e.f())})),0!==f.size&&d(p)}function m(t,e){t.appendChild(e)}function h(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e.host?e:document}function g(t){const e=$("style");return function(t,e){m(t.head||t,e)}(h(t),e),e}function v(t,e,n){t.insertBefore(e,n||null)}function b(t){t.parentNode.removeChild(t)}function $(t){return document.createElement(t)}function w(t){return document.createTextNode(t)}function x(){return w(" ")}function _(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function k(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function E(t,e){t.value=null==e?"":e}function C(t,e,n){t.classList[n?"add":"remove"](e)}function j(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}const A=new Set;let z,N=0;function P(t,e,n,o,i,r,l,s=0){const a=16.666/o;let u="{\n";for(let t=0;t<=1;t+=a){const o=e+(n-e)*r(t);u+=100*t+`%{${l(o,1-o)}}\n`}const c=u+`100% {${l(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(c)}_${s}`,f=h(t);A.add(f);const p=f.__svelte_stylesheet||(f.__svelte_stylesheet=g(t).sheet),m=f.__svelte_rules||(f.__svelte_rules={});m[d]||(m[d]=!0,p.insertRule(`@keyframes ${d} ${c}`,p.cssRules.length));const v=t.style.animation||"";return t.style.animation=`${v?`${v}, `:""}${d} ${o}ms linear ${i}ms 1 both`,N+=1,d}function S(t,e){const n=(t.style.animation||"").split(", "),o=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-o.length;i&&(t.style.animation=o.join(", "),N-=i,N||d((()=>{N||(A.forEach((t=>{const e=t.__svelte_stylesheet;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.__svelte_rules={}})),A.clear())})))}function T(t){z=t}function M(){if(!z)throw new Error("Function called outside component initialization");return z}function I(){const t=M();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const i=j(e,n);o.slice().forEach((e=>{e.call(t,i)}))}}}const O=[],D=[],R=[],L=[],q=Promise.resolve();let H=!1;function J(t){R.push(t)}let K=!1;const F=new Set;function V(){if(!K){K=!0;do{for(let t=0;t<O.length;t+=1){const e=O[t];T(e),B(e.$$)}for(T(null),O.length=0;D.length;)D.pop()();for(let t=0;t<R.length;t+=1){const e=R[t];F.has(e)||(F.add(e),e())}R.length=0}while(O.length);for(;L.length;)L.pop()();H=!1,K=!1,F.clear()}}function B(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(J)}}let G;function Q(t,e,n){t.dispatchEvent(j(`${e?"intro":"outro"}${n}`))}const U=new Set;let W;function X(){W={r:0,c:[],p:W}}function Y(){W.r||i(W.c),W=W.p}function Z(t,e){t&&t.i&&(U.delete(t),t.i(e))}function tt(t,e,n,o){if(t&&t.o){if(U.has(t))return;U.add(t),W.c.push((()=>{U.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}const et={duration:0};function nt(n,o,l,s){let a=o(n,l),u=s?0:1,m=null,h=null,g=null;function v(){g&&S(n,g)}function b(t,e){const n=t.b-u;return e*=Math.abs(n),{a:u,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function $(o){const{delay:r=0,duration:l=300,easing:s=e,tick:$=t,css:w}=a||et,x={start:c()+r,b:o};o||(x.group=W,W.r+=1),m||h?h=x:(w&&(v(),g=P(n,u,o,l,r,s,w)),o&&$(0,1),m=b(x,l),J((()=>Q(n,o,"start"))),function(t){let e;0===f.size&&d(p),new Promise((n=>{f.add(e={c:t,f:n})}))}((t=>{if(h&&t>h.start&&(m=b(h,l),h=null,Q(n,m.b,"start"),w&&(v(),g=P(n,u,m.b,m.duration,0,s,a.css))),m)if(t>=m.end)$(u=m.b,1-u),Q(n,m.b,"end"),h||(m.b?v():--m.group.r||i(m.group.c)),m=null;else if(t>=m.start){const e=t-m.start;u=m.a+m.d*s(e/m.duration),$(u,1-u)}return!(!m&&!h)})))}return{run(t){r(a)?(G||(G=Promise.resolve(),G.then((()=>{G=null}))),G).then((()=>{a=a(),$(t)})):$(t)}
1,end(){v(),m=h=null}}}function ot(t){t&&t.c()}function it(t,e,o,l){const{fragment:s,on_mount:a,on_destroy:u,after_update:c}=t.$$;s&&s.m(e,o),l||J((()=>{const e=a.map(n).filter(r);u?u.push(...e):i(e),t.$$.on_mount=[]})),c.forEach(J)}function rt(t,e){const n=t.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function lt(t,e){-1===t.$$.dirty[0]&&(O.push(t),H||(H=!0,q.then(V)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function st(e,n,r,l,s,a,u,c=[-1]){const d=z;T(e);const f=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:s,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:n.context||[]),callbacks:o(),dirty:c,skip_bound:!1,root:n.target||d.$$.root};u&&u(f.root);let p=!1;if(f.ctx=r?r(e,n.props||{},((t,n,...o)=>{const i=o.length?o[0]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=i)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](i),p&&lt(e,t)),n})):[],f.update(),p=!0,i(f.before_update),f.fragment=!!l&&l(f.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(b)}else f.fragment&&f.fragment.c();n.intro&&Z(e.$$.fragment),it(e,n.target,n.anchor,n.customElement),V()}T(d)}class at{$destroy(){rt(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function ut(t,{delay:n=0,duration:o=400,easing:i=e}={}){const r=+getComputedStyle(t).opacity;return{delay:n,duration:o,easing:i,css:t=>"opacity: "+t*r}}function ct(e){let n,o,i,r,l,s;return{c(){n=$("div"),o=$("p"),o.textContent="Veenduge, et ID-kaart oleks enne jätkamist korrektselt lugejas.",i=x(),r=$("div"),r.innerHTML='<span class="v-button-wrap"><span class="v-button-caption">Jätka</span></span>',k(o,"class","svelte-1ocxwlm"),k(r,"tabindex","0"),k(r,"role","button"),k(r,"class","v-button v-widget button-small v-button-button-small button-main v-button-button-main button-forward v-button-button-forward svelte-1ocxwlm"),k(n,"id","provider-container"),k(n,"class","svelte-1ocxwlm")},m(t,e){v(t,n,e),m(n,o),m(n,i),m(n,r),l||(s=_(r,"click",dt),l=!0)},p:t,i:t,o:t,d(t){t&&b(n),l=!1,s()}}}function dt(){window.location.href=urls.idcard}function ft(t,e,n){return["idcard"]}class pt extends at{constructor(t){super(),st(this,t,ft,ct,l,{provider:0})}get provider(){return this.$$.ctx[0]}}function mt(t){let e,n,o,i,r,l,s,a,u,c,d;return{c(){e=$("p"),n=w("Kontrollkood: "),o=$("strong"),i=w(t[3]),r=x(),l=$("p"),l.textContent="Palun kontrollige, et näete mobiiltelefoni ekraanil täpselt sama koodi. Seejärel järgige juhiseid telefoni ekraanilt.",s=x(),a=$("p"),u=$("a"),u.textContent="Katkesta",k(u,"href","#cancel")},m(f,p){v(f,e,p),m(e,n),m(e,o),m(o,i),v(f,r,p),v(f,l,p),v(f,s,p),v(f,a,p),m(a,u),c||(d=_(u,"click",t[5]),c=!0)},p(t,e){8&e&&y(i,t[3])},d(t){t&&b(e),t&&b(r),t&&b(l),t&&b(s),t&&b(a),c=!1,d()}}}function ht(t){let e,n,o,r,l,s,a,u,c,d="mobileid"===t[0]&&gt(t);return{c(){e=$("div"),n=$("label"),n.textContent="Isikukood",o=x(),r=$("input"),l=x(),d&&d.c(),s=x(),a=$("div"),a.innerHTML='<span class="v-button-wrap"><span class="v-button-caption">Jätka</span></span>',k(n,"for","personalCode"),k(r,"type","text"),k(r,"class","v-textfield v-widget"),k(r,"id","personalCode"),k(r,"maxlength","15"),k(e,"class","login-form__input"),k(a,"tabindex","0"),k(a,"role","button"),k(a,"class","v-button v-widget button-small v-button-button-small button-main v-button-button-main button-forward v-button-button-forward")},m(i,f){v(i,e,f),m(e,n),m(e,o),m(e,r),E(r,t[2]),v(i,l,f),d&&d.m(i,f),v(i,s,f),v(i,a,f),u||(c=[_(r,"input",t[6]),_(a,"click",t[4])],u=!0)},p(t,e){4&e&&r.value!==t[2]&&E(r,t[2]),"mobileid"===t[0]?d?d.p(t,e):(d=gt(t),d.c(),d.m(s.parentNode,s)):d&&(d.d(1),d=null)},d(t){t&&b(e),t&&b(l),d&&d.d(t),t&&b(s),t&&b(a),u=!1,i(c)}}}function gt(t){let e,n,o,i,r,l;return{c(){e=$("div"),n=$("label"),n.textContent="Mobiilinumber",o=x(),i=$("input"),k(n,"for","mobileNumber"),k(i,"type","text"),k(i,"class","v-textfield v-widget"),k(i,"id","mobileNumber"),k(i,"maxlength","20"),k(e,"class","login-form__input")},m(s,a){v(s,e,a),m(e,n),m(e,o),m(e,i),E(i,t[1]),r||(l=_(i,"input",t[7]),r=!0)},p(t,e){2&e&&i.value!==t[1]&&E(i,t[1])},d(t){t&&b(e),r=!1,l()}}}function vt(e){let n;function o(t,e){return null===t[3]?ht:mt}let i=o(e),r=i(e);return{c(){n=$("div"),r.c(),k(n,"id","provider-container")},m(t,e){v(t,n,e),r.m(n,null)},p(t,[e]){i===(i=o(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(n,null)))},i:t,o:t,d(t){t&&b(n),r.d()}}}function bt(t,e,n){let{provider:o="mobileid"}=e,i="",r="",l=null,s=new AbortController;const a=I();var u;function c(t,e=null){n(3,l=null),e&&"name"in e&&"AbortError"===e.name||a("message",{text:t})}function d(t){const e=urls[o]+"/authenticate";n(3,l=t.verificationCode),fetch(e,{method:"POST",headers:{"Content-Type":"application/json","x-authentication-session":t.token},signal:s.signal}).then((t=>{if(t.ok)return t.json();throw Error("/authenticate API call failed")})).then(f).catch((t=>{c("Kontrollige, et sisestasite korrektsed andmed ning tegutsesite vastavalt juhistele telefoni ekraanil",t)}))}function f(t){fetch("/validate-login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({resultToken:t.token,method:o}),signal:s.signal}).then((t=>
1{if(!t.ok)throw Error("/validate-login API call failed");window.location.href="/delegate/authorization"})).catch((t=>{c("Patsiendiportaali töös esineb hetkel tõrkeid. Palun proovige mõne aja pärast uuesti",t)}))}return u=()=>s.abort(),M().$$.on_destroy.push(u),t.$$set=t=>{"provider"in t&&n(0,o=t.provider)},t.$$.update=()=>{1&t.$$.dirty&&(s.abort(),n(3,l=null))},[o,i,r,l,function(){if(n(2,r=r.replace(/\s/g,"")),n(1,i=i.replace(/\s/g,"")),!(r.match(/^[0-9]{11}$/)?"mobileid"!==o||i.match("^\\+?\\s*[0-9\\s]{5,30}")||(c("Sisestatud mobiilinumber on vigane"),0):(c("Sisestatud isikukood on vigane"),0)))return;let t;s=new AbortController,a("clearMessage"),"smartid"===o?t={nationalIdentityNumber:r}:"mobileid"===o&&(t={nationalIdentityNumber:r,phoneNumber:i}),fetch(urls[o]+"/authenticationRequest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),signal:s.signal}).then((t=>{if(t.ok)return t.json();throw Error("/authenticationRequest API call failed")})).then(d).catch((t=>{c("Autentimislahenduse töös esineb hetkel tõrkeid. Palun proovige mõne aja pärast uuesti",t)}))},function(){s.abort()},function(){r=this.value,n(2,r)},function(){i=this.value,n(1,i)}]}class $t extends at{constructor(t){super(),st(this,t,bt,vt,l,{provider:0})}}function wt(t,e,n){const o=t.slice();return o[9]=e[n],o}function xt(t){let e,n,o,i,r,l,s,u,c,d,f,p,h,g=t[1].title+"",E=t[1].text+"";return{c(){e=$("div"),n=$("p"),o=$("a"),o.textContent="peida see teade",i=x(),r=$("h1"),l=w(g),s=x(),u=$("p"),k(o,"href","#closeMessage"),k(n,"class","close"),k(r,"class","svelte-ptz2w1"),k(e,"id","page-message"),k(e,"class",c=a(t[1].class)+" svelte-ptz2w1")},m(a,c){var d;v(a,e,c),m(e,n),m(n,o),m(e,i),m(e,r),m(r,l),m(e,s),m(e,u),u.innerHTML=E,f=!0,p||(h=_(o,"click",(d=t[4],function(t){return t.preventDefault(),d.call(this,t)})),p=!0)},p(t,n){(!f||2&n)&&g!==(g=t[1].title+"")&&y(l,g),(!f||2&n)&&E!==(E=t[1].text+"")&&(u.innerHTML=E),(!f||2&n&&c!==(c=a(t[1].class)+" svelte-ptz2w1"))&&k(e,"class",c)},i(t){f||(J((()=>{d||(d=nt(e,ut,{},!0)),d.run(1)})),f=!0)},o(t){d||(d=nt(e,ut,{},!1)),d.run(0),f=!1},d(t){t&&b(e),t&&d&&d.end(),p=!1,h()}}}function _t(t){let e,n,o,i,r,l,a;function u(){return t[5](t[9])}return{c(){var l,a;e=$("button"),n=$("img"),r=x(),l=n.src,a=o="/images/buttons/"+t[9].identifier+".svg",s||(s=document.createElement("a")),s.href=a,l!==s.href&&k(n,"src",o),k(n,"alt",i=t[9].text),k(n,"class","svelte-ptz2w1"),k(e,"class","auth-box svelte-ptz2w1"),C(e,"active",t[0]===t[9])},m(t,o){v(t,e,o),m(e,n),m(e,r),l||(a=_(e,"click",u),l=!0)},p(n,o){t=n,5&o&&C(e,"active",t[0]===t[9])},d(t){t&&b(e),l=!1,a()}}}function kt(t){let e,n,o;var i=t[0].component;function r(t){return{props:{provider:t[0].identifier}}}return i&&(n=new i(r(t)),n.$on("message",t[3]),n.$on("clearMessage",t[4])),{c(){e=$("div"),n&&ot(n.$$.fragment),k(e,"id","auth-provider"),k(e,"class","auth-box svelte-ptz2w1")},m(t,i){v(t,e,i),n&&it(n,e,null),o=!0},p(t,o){const l={};if(1&o&&(l.provider=t[0].identifier),i!==(i=t[0].component)){if(n){X();const t=n;tt(t.$$.fragment,1,0,(()=>{rt(t,1)})),Y()}i?(n=new i(r(t)),n.$on("message",t[3]),n.$on("clearMessage",t[4]),ot(n.$$.fragment),Z(n.$$.fragment,1),it(n,e,null)):n=null}else i&&n.$set(l)},i(t){o||(n&&Z(n.$$.fragment,t),o=!0)},o(t){n&&tt(n.$$.fragment,t),o=!1},d(t){t&&b(e),n&&rt(n)}}}function yt(t){let e,n,o,i,r,l=t[1]&&xt(t),s=t[2],a=[];for(let e=0;e<s.length;e+=1)a[e]=_t(wt(t,s,e));let u=null!==t[0]&&kt(t);return{c(){l&&l.c(),e=x(),n=$("div"),o=$("div");for(let t=0;t<a.length;t+=1)a[t].c();i=x(),u&&u.c(),k(o,"id","auth-provider-list"),k(o,"class","svelte-ptz2w1"),C(o,"horizontal",null===t[0]),k(n,"id","auth-container"),k(n,"class","svelte-ptz2w1")},m(t,s){l&&l.m(t,s),v(t,e,s),v(t,n,s),m(n,o);for(let t=0;t<a.length;t+=1)a[t].m(o,null);m(n,i),u&&u.m(n,null),r=!0},p(t,[i]){if(t[1]?l?(l.p(t,i),2&i&&Z(l,1)):(l=xt(t),l.c(),Z(l,1),l.m(e.parentNode,e)):l&&(X(),tt(l,1,1,(()=>{l=null})),Y()),5&i){let e;for(s=t[2],e=0;e<s.length;e+=1){const n=wt(t,s,e);a[e]?a[e].p(n,i):(a[e]=_t(n),a[e].c(),a[e].m(o,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=s.length}1&i&&C(o,"horizontal",null===t[0]),null!==t[0]?u?(u.p(t,i),1&i&&Z(u,1)):(u=kt(t),u.c(),Z(u,1),u.m(n,null)):u&&(X(),tt(u,1,1,(()=>{u=null})),Y())},i(t){r||(Z(l),Z(u),r=!0)},o(t){tt(l),tt(u),r=!1},d(t){l&&l.d(t),t&&b(e),t&&b(n),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(a,t),u&&u.d()}}}function Et(t,e,n){var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Prom
1ise))((function(i,r){function l(t){try{a(o.next(t))}catch(t){r(t)}}function s(t){try{a(o.throw(t))}catch(t){r(t)}}function a(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(l,s)}a((o=o.apply(t,e||[])).next())}))};I();const i=[{identifier:"idcard",text:"ID-kaart",component:pt},{identifier:"mobileid",text:"Mobiil-ID",component:$t},{identifier:"smartid",text:"SmartID",component:$t}];let r,l=null;function s(t){t.title||(t.title="Autentimine ebaõnnestus"),t.class||(t.class="error"),n(1,r=t)}function a(){n(1,r=void 0)}var u;u=()=>o(void 0,void 0,void 0,(function*(){switch(window.location.hash){case"#idcard-login-error":s({text:'Veenduge, et ID-kaart on lugejas ja toimib. Täiendavat infot leiate lehelt <a href="https://www.id.ee/id-abikeskus/" target="_blank">id.ee</a>.'});break;case"#session-timeout":s({title:texts.session_timeout_title,text:texts.session_timeout_text});break;case"#logout":s({title:texts.logout_title,text:texts.logout_text,class:"info"});break;default:return}})),M().$$.on_mount.push(u);return t.$$.update=()=>{1&t.$$.dirty&&a()},[l,r,i,function(t){s(t.detail)},a,t=>n(0,l=t)]}return class extends at{constructor(t){super(),st(this,t,Et,yt,l,{})}}}();
2//# sourceMappingURL=bundle.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.