(window.webpackJsonp=window.webpackJsonp||[]).push([[194],{864:function(t,e,n){var content=n(961);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(26).default)("0ea1a667",content,!0,{sourceMap:!1})},940:function(t,e,n){"use strict";n.r(e);n(36),n(61),n(38),n(37),n(8),n(17),n(44),n(47),n(19);var r={props:{missedServices:{type:Array,required:!0}},methods:{hasSuggestedQuantity:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return null!==t.suggestedQuantity&&void 0!==t.suggestedQuantity&&""!==t.suggestedQuantity},getSourceUrls:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.sourceS3Urls||t.sourceUrls||t.s3Urls||[];return Array.isArray(e)?e.map((function(t){return String(t||"").trim()})).filter(Boolean):String(e||"").split("|").map((function(t){return t.trim()})).filter(Boolean)},openUrlsInTabs:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(t)&&t.length){var e=t.filter((function(t){return"string"==typeof t&&t.trim()}));if(e.length){var n=e.map((function(){return window.open("about:blank","_blank")}));e.forEach((function(t,e){var r=n[e];if(r){try{r.opener=null}catch(t){}r.location.replace(t.trim())}else window.open(t.trim(),"_blank")}))}}}}},o=r,l=(n(960),n(10)),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"recommended-modal"},[e("div",{staticClass:"d-flex justify-content-end"},[e("button",{staticClass:"close-btn",on:{click:function(e){return t.$emit("close")}}},[t._v("✕")])]),t._v(" "),e("p",{staticClass:"modal-title"},[t._v("Missed Services")]),t._v(" "),e("div",{staticClass:"services-card"},[e("div",{staticClass:"services-table"},[t._m(0),t._v(" "),t._l(t.missedServices,(function(n,i){return e("div",{key:i,staticClass:"row"},[e("div",{staticClass:"cell service"},[t._v("\n          "+t._s(n.serviceName||n.consumableName||n.description)+"\n          "),t.hasSuggestedQuantity(n)?e("p",{staticClass:"service-quantity"},[t._v("\n            Suggested quantity: "+t._s(n.suggestedQuantity)+"\n          ")]):t._e()]),t._v(" "),e("div",{staticClass:"cell reason"},[t._v("\n          "+t._s(n.shortReason)+"\n        ")]),t._v(" "),e("div",{staticClass:"cell action"},[t.getSourceUrls(n).length?e("button",{staticClass:"record-link",attrs:{type:"button"},on:{click:function(e){t.openUrlsInTabs(t.getSourceUrls(n))}}},[t._v("\n            View Handwritten Record\n          ")]):e("span",{staticClass:"empty-action"},[t._v("No record")])])])}))],2)])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row header"},[e("div",{staticClass:"cell service"},[t._v("Service")]),t._v(" "),e("div",{staticClass:"cell reason"},[t._v("Reason")]),t._v(" "),e("div",{staticClass:"cell action"},[t._v("Action")])])}],!1,null,"27103a28",null);e.default=component.exports},960:function(t,e,n){"use strict";n(864)},961:function(t,e,n){var r=n(25)((function(i){return i[1]}));r.push([t.i,'.recommended-modal[data-v-27103a28]{background:#fff;border-radius:16px;padding:24px 32px;position:relative}.close-btn[data-v-27103a28]{background:#3c517b;border:none;border-radius:50%;color:#fff;cursor:pointer;font-size:18px;height:32px;width:32px}.modal-title[data-v-27103a28]{color:#4086ff;font-family:"Public Sans";font-size:14px;font-weight:600;line-height:20px;margin-bottom:24px}.services-card[data-v-27103a28]{background:#f0f3fa;border-radius:8px;padding:14px 23px}.services-table[data-v-27103a28]{display:flex;flex-direction:column;gap:16px}.row[data-v-27103a28]{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.4fr) 180px;grid-gap:24px;align-items:start;gap:24px}.row.header[data-v-27103a28]{color:#424242;font-weight:600}.cell[data-v-27103a28]{color:#262728;font-family:"Inter";font-size:14px;line-height:18px;word-break:break-word}.cell.reason[data-v-27103a28]{color:#3c517b;font-weight:500}.service-quantity[data-v-27103a28]{color:#5f6c84;font-family:"Inter";font-size:13px;line-height:18px;margin-bottom:0;margin-top:6px}.cell.action[data-v-27103a28]{align-items:center;display:flex}.record-link[data-v-27103a28]{background:transparent;border:none;color:#4086ff;cursor:pointer;font-weight:600;padding:0;text-align:left;-webkit-text-decoration:underline;text-decoration:underline;text-underline-offset:3px}.empty-action[data-v-27103a28],.record-link[data-v-27103a28]{font-family:"Inter";font-size:14px;line-height:18px}.empty-action[data-v-27103a28]{color:#8b95a7}@media only screen and (max-width:600px){.recommended-modal[data-v-27103a28]{padding:16px}.services-card[data-v-27103a28]{padding:12px}.row[data-v-27103a28]{gap:12px;grid-template-columns:1fr}.row.header[data-v-27103a28]{display:none}.cell.action[data-v-27103a28]{margin-top:-4px}}',""]),r.locals={},t.exports=r}}]);