PageSourceSearch

https://assets.ambiki.com/packs/js/8246-9b72011b0f0c6332059b.chunk.js

js ambiki.com collected 2026-10-04 07:21:07 UTC 9,380 bytes, 3 lines download raw bytes

1/*! For license information please see 8246-9b72011b0f0c6332059b.chunk.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkambiki||=[]).push([[8246],{68246(t,e,n){n.r(e),n.d(e,{default:()=>C});var r,i,o,a,u,c,l,f,s,p,y,b,d,v=n(19324),h=n(2888),m=n(94982);function g(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return w(l,"_invoke",function(n,r,i){var o,u,c,l=0,f=i||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return o=e,u=0,c=t,p.n=n,a}};function y(n,r){for(u=n,c=r,e=0;!s&&l&&!i&&e<f.length;e++){var i,o=f[e],y=p.p,b=o[2];n>3?(i=b===r)&&(c=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=y&&((i=n<2&&y<o[1])?(u=0,p.v=r,p.n=o[1]):y<b&&(i=n<3||o[0]>r||r>b)&&(o[4]=n,o[5]=r,p.n=b,u=0))}if(i||n>1)return a;throw s=!0,r}return function(i,f,b){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,b),u=f,c=b;(e=u<2?t:c)||!s;){o||(u?u<3?(u>1&&(p.n=-1),y(u,c)):p.n=c:p.v=c);try{if(l=2,o){if(u||(i="next"),e=o[i]){if(!(e=e.call(o,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=o.return)&&e.call(o),u<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=t}else if((e=(s=p.n<0)?c:n.call(r,p))!==a)break}catch(e){o=t,u=1,c=e}finally{l=1}}return{value:e,done:s}}}(n,i,o),!0),l}var a={};function u(){}function c(){}function l(){}e=Object.getPrototypeOf;var f=[][r]?e(e([][r]())):(w(e={},r,function(){return this}),e),s=l.prototype=u.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,w(t,i,"GeneratorFunction")),t.prototype=Object.create(s),t}return c.prototype=l,w(s,"constructor",l),w(l,"constructor",c),c.displayName="GeneratorFunction",w(l,i,"GeneratorFunction"),w(s),w(s,i,"Generator"),w(s,r,function(){return this}),w(s,"toString",function(){return"[object Generator]"}),(g=function(){return{w:o,m:p}})()}function w(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}w=function(t,e,n,r){function o(e,n){w(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},w(t,e,n,r)}function O(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return P(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function j(t,e,n,r,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,i)}function k(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){j(o,r,i,a,u,"next",t)}function u(t){j(o,r,i,a,u,"throw",t)}a(void 0)})}}function _(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,E(r.key),r)}}function A(t,e,n){return e=I(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,z()?Reflect.construct(e,n||[],I(t).constructor):e.apply(t,n))}function z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(z=function(){return!!t})()}
2function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}function E(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function B(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(t){o[t]=r[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(t,e,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer?(Object.defineProperty(t,e,o),null):o}var U="Select at least one patient to confirm.",x="Select at least one patient to clear.",G="We could not save that. Please try again.",C=(r=(0,h.kT)("patient-bulk-confirm"),i=(0,h.MZ)({type:Boolean}),o=(0,h.MZ)({type:Array}),a=(0,h.MZ)(),u=(0,h.MZ)(),c=(0,h.aC)(),r((f=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return _(t=A(this,e,[].concat(r)),"active",s,t),_(t,"selectedPatientIds",p,t),_(t,"confirmUrl",y,t),_(t,"clearUrl",b,t),_(t,"button",d,t),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}(e,t),n=e,r=[{key:"connected",value:function(){this.selectedPatientIds=this.checkedPatientIds,this.active=this.selectedPatientIds.length>0,this.syncButton()}},{key:"activeChanged",value:function(){this.syncButton()}},{key:"confirm",value:(a=k(g().m(function t(){var e,n,r,i,o,a,u;return g().w(function(t){for(;;)switch(t.p=t.n){case 0:if(0!==(e=this.selectedPatientIds).length){t.n=1;break}return(0,m.A)(U,{type:"error",delay:5e3}),t.a(2);case 1:return this.button.disabled=!0,t.p=2,t.n=3,v.A.post(this.confirmUrl,{event_patient_confirmation:{event_patient_ids:e}});case 3:n=t.v,r=n.data,i=r.skippedEventPatientIds||[],o=O(e.filter(function(t){return!i.includes(t)}));try{for(o.s();!(a=o.n()).done;)u=a.value,this.repaint(u,"confirmed")}catch(c){o.e(c)}finally{o.f()}t.n=5;break;case 4:t.p=4,t.v,(0,m.A)(G,{type:"error",delay:5e3});case 5:return t.p=5,this.button.disabled=!1,t.f(5);case 6:return t.a(2)}},t,this,[[2,4,5,6]])})),function(){return a.apply(this,arguments)})},{key:"clear",value:(o=k(g().m(function t(){var e,n,r,i;return g().w(function(t){for(;;)switch(t.p=t.n){case 0:if(0!==(e=this.selectedPatientIds).length){t.n=1;break}return(0,m.A)(x,{type:"error",delay:5e3}),t.a(2);case 1:return this.button.disabled=!0,t.p=2,t.n=3,v.A.delete(this.clearUrl,{data:{event_patient_confirmation:{event_patient_ids:e}}});case 3:n=O(e);try{for(n.s();!(r=n.n()).done;)i=r.value,this.repaint(i,"neutral")}catch(o){n.e(o)}finally{n.f()}t.n=5;break;case 4:t.p=4,t.v,(0,m.A)(G,{type:"error",delay:5e3});case 5:return t.p=5,this.button.disabled=!1,t.f(5);case 6:return t.a(2)}},t,this,[[2,4,5,6]])})),function(){return o.apply(this,arguments)})},{key:"repaint",value:function(t,e){var n,r=null===(n=this.list)||void 0===n?void 0:n.querySelector('patient-confirm[event-patient-id="'.concat(t,'"]'));r&&"cancelled"!==r.state&&(r.state=e)}},{key:"syncButton",value:function(){this.button&&(this.button.disabled=!this.active)}},{key:"checkedPatientIds",get:function(){var t;return Array.from((null===(t=this.list)||void 0===t?void 0:t.querySelectorAll('input[data-target="patient-list.checkboxes"]'))||[]).filter(function(t){return t.checked}).map(function(t){return t.value}).filter(Boolean)}},{key:"list",get:function(){return this.closest("patient-list")}}],r&&S(n.prototype,r),i&&S(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i,o,a}(h.IZ),s=B(f.prototype,"active",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=B(f.prototype,"selectedPatientIds",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),y=B(f.prototype,"confirmUrl",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b=B(f.prototype,"clearUrl",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d=B(f.prototype,"button",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=f))||l)}}]);
3//# sourceMappingURL=8246-9b72011b0f0c6332059b.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.