@iankibetsh/shframework 5.2.8 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/library.js +479 -534
  2. package/dist/library.mjs +480 -535
  3. package/package.json +13 -13
package/dist/library.js CHANGED
@@ -2105,7 +2105,7 @@ var script$A = {
2105
2105
  }
2106
2106
  };
2107
2107
 
2108
- const _hoisted_1$s = {
2108
+ const _hoisted_1$q = {
2109
2109
  class: "sh-phone mb-3",
2110
2110
  style: {"display":"flex"}
2111
2111
  };
@@ -2113,15 +2113,15 @@ const _hoisted_2$i = {
2113
2113
  key: 0,
2114
2114
  style: {"display":"contents"}
2115
2115
  };
2116
- const _hoisted_3$g = ["src"];
2117
- const _hoisted_4$g = ["value"];
2118
- const _hoisted_5$e = ["disabled"];
2116
+ const _hoisted_3$f = ["src"];
2117
+ const _hoisted_4$e = ["value"];
2118
+ const _hoisted_5$c = ["disabled"];
2119
2119
 
2120
2120
  function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2121
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
2121
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
2122
2122
  ($data.selectedCountry)
2123
2123
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, [
2124
- vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$g),
2124
+ vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$f),
2125
2125
  vue.createTextVNode(" " + vue.toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
2126
2126
  ]))
2127
2127
  : vue.createCommentVNode("v-if", true),
@@ -2134,7 +2134,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2134
2134
  return (vue.openBlock(), vue.createElementBlock("option", {
2135
2135
  value: country,
2136
2136
  key: country.dialCode
2137
- }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$g))
2137
+ }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$e))
2138
2138
  }), 128 /* KEYED_FRAGMENT */))
2139
2139
  ], 544 /* NEED_HYDRATION, NEED_PATCH */), [
2140
2140
  [vue.vModelSelect, $data.selectedCountry]
@@ -2147,7 +2147,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2147
2147
  onInput: _cache[2] || (_cache[2] = (...args) => ($options.updateValue && $options.updateValue(...args))),
2148
2148
  placeholder: "712345678",
2149
2149
  "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (($data.input) = $event))
2150
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$e), [
2150
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$c), [
2151
2151
  [vue.vModelText, $data.input]
2152
2152
  ])
2153
2153
  ]))
@@ -2156,22 +2156,22 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2156
2156
  script$A.render = render$4;
2157
2157
  script$A.__file = "src/lib/components/form-components/PhoneInput.vue";
2158
2158
 
2159
- const _hoisted_1$r = {
2159
+ const _hoisted_1$p = {
2160
2160
  key: 0,
2161
2161
  class: "dropdown sh-suggest"
2162
2162
  };
2163
2163
  const _hoisted_2$h = ["id"];
2164
- const _hoisted_3$f = { class: "sh-suggestions-holder" };
2165
- const _hoisted_4$f = { class: "badge bg-secondary m-1 sh-selected-item" };
2166
- const _hoisted_5$d = ["onClick"];
2167
- const _hoisted_6$a = ["id"];
2168
- const _hoisted_7$9 = ["id", "aria-labelledby"];
2169
- const _hoisted_8$8 = ["onClick"];
2170
- const _hoisted_9$8 = {
2164
+ const _hoisted_3$e = { class: "sh-suggestions-holder" };
2165
+ const _hoisted_4$d = { class: "badge bg-secondary m-1 sh-selected-item" };
2166
+ const _hoisted_5$b = ["onClick"];
2167
+ const _hoisted_6$9 = ["id"];
2168
+ const _hoisted_7$8 = ["id", "aria-labelledby"];
2169
+ const _hoisted_8$7 = ["onClick"];
2170
+ const _hoisted_9$7 = {
2171
2171
  key: 1,
2172
2172
  class: "dropdown-item sh-suggest-no-results"
2173
2173
  };
2174
- const _hoisted_10$8 = {
2174
+ const _hoisted_10$5 = {
2175
2175
  key: 2,
2176
2176
  class: "dropdown-item sh-suggest-no-input"
2177
2177
  };
@@ -2322,23 +2322,23 @@ vue.watch(()=>props.modelValue, (newValue)=>{
2322
2322
 
2323
2323
  return (_ctx, _cache) => {
2324
2324
  return (vue.unref(id))
2325
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
2325
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
2326
2326
  vue.createElementVNode("div", {
2327
2327
  id: vue.unref(id),
2328
2328
  "data-bs-toggle": "dropdown",
2329
2329
  class: "p-0 d-flex sh-suggest-control dropdown-toggle",
2330
2330
  "aria-expanded": "false"
2331
2331
  }, [
2332
- vue.createElementVNode("div", _hoisted_3$f, [
2332
+ vue.createElementVNode("div", _hoisted_3$e, [
2333
2333
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedSuggestions), (sgt) => {
2334
- return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_4$f, [
2334
+ return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_4$d, [
2335
2335
  vue.createTextVNode(vue.toDisplayString(sgt.name) + " ", 1 /* TEXT */),
2336
2336
  vue.createElementVNode("button", {
2337
2337
  onClick: $event => (removeSuggestion(sgt.id)),
2338
2338
  type: "button",
2339
2339
  class: "btn-close border-start border-1 ms-1",
2340
2340
  "aria-label": "Close"
2341
- }, null, 8 /* PROPS */, _hoisted_5$d)
2341
+ }, null, 8 /* PROPS */, _hoisted_5$b)
2342
2342
  ]))
2343
2343
  }), 256 /* UNKEYED_FRAGMENT */))
2344
2344
  ]),
@@ -2348,7 +2348,7 @@ return (_ctx, _cache) => {
2348
2348
  onInput: filterData,
2349
2349
  onChange: filterData,
2350
2350
  class: "flex-fill h-100 sh-suggestion-input"
2351
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_6$a)
2351
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_6$9)
2352
2352
  ], 8 /* PROPS */, _hoisted_2$h),
2353
2353
  vue.createElementVNode("ul", {
2354
2354
  class: vue.normalizeClass([(!vue.unref(suggestions) || vue.unref(suggestions).length === 0) ? 'no-sh-suggestions':'sh-found-suggestions', "dropdown-menu w-100"]),
@@ -2376,14 +2376,14 @@ return (_ctx, _cache) => {
2376
2376
  class: vue.normalizeClass(["dropdown-item", vue.unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
2377
2377
  href: "#"
2378
2378
  }, vue.toDisplayString(suggestion.name ?? suggestion.text), 3 /* TEXT, CLASS */))
2379
- ], 8 /* PROPS */, _hoisted_8$8))
2379
+ ], 8 /* PROPS */, _hoisted_8$7))
2380
2380
  : vue.createCommentVNode("v-if", true)
2381
2381
  ], 64 /* STABLE_FRAGMENT */))
2382
2382
  }), 128 /* KEYED_FRAGMENT */))
2383
2383
  : (vue.unref(searchText))
2384
- ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$8, " No results found "))
2385
- : (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$8, " Type to search... "))
2386
- ], 10 /* CLASS, PROPS */, _hoisted_7$9)
2384
+ ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$7, " No results found "))
2385
+ : (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$5, " Type to search... "))
2386
+ ], 10 /* CLASS, PROPS */, _hoisted_7$8)
2387
2387
  ]))
2388
2388
  : vue.createCommentVNode("v-if", true)
2389
2389
  }
@@ -2748,83 +2748,59 @@ var script$y = {
2748
2748
  }
2749
2749
  };
2750
2750
 
2751
- const _hoisted_1$q = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
2752
- const _hoisted_2$g = {
2751
+ const _hoisted_1$o = {
2753
2752
  ref: "ShAutoForm",
2754
2753
  class: "sh-form"
2755
2754
  };
2756
- const _hoisted_3$e = {
2755
+ const _hoisted_2$g = {
2757
2756
  key: 0,
2758
2757
  class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
2759
2758
  role: "alert"
2760
2759
  };
2761
- const _hoisted_4$e = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2762
- const _hoisted_5$c = { key: 0 };
2763
- const _hoisted_6$9 = { key: 1 };
2764
- const _hoisted_7$8 = { class: "row" };
2765
- const _hoisted_8$7 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2766
- const _hoisted_9$7 = { class: "col-md-12" };
2767
- const _hoisted_10$7 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2768
- const _hoisted_11$7 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2769
- const _hoisted_12$6 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2770
- const _hoisted_13$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2771
- const _hoisted_14$4 = ["data-cy", "name", "onFocus", "onUpdate:modelValue"];
2772
- const _hoisted_15$3 = ["disabled", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2773
- const _hoisted_16$3 = ["name", "onFocus", "onUpdate:modelValue"];
2774
- const _hoisted_17$3 = ["name", "onFocus", "onUpdate:modelValue"];
2775
- const _hoisted_18$3 = ["value"];
2776
- const _hoisted_19$1 = {
2760
+ const _hoisted_3$d = { key: 0 };
2761
+ const _hoisted_4$c = { key: 1 };
2762
+ const _hoisted_5$a = { class: "row" };
2763
+ const _hoisted_6$8 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2764
+ const _hoisted_7$7 = { class: "col-md-12" };
2765
+ const _hoisted_8$6 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2766
+ const _hoisted_9$6 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2767
+ const _hoisted_10$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2768
+ const _hoisted_11$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2769
+ const _hoisted_12$3 = ["data-cy", "name", "onFocus", "onUpdate:modelValue"];
2770
+ const _hoisted_13$3 = ["disabled", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2771
+ const _hoisted_14$3 = ["name", "onFocus", "onUpdate:modelValue"];
2772
+ const _hoisted_15$3 = ["name", "onFocus", "onUpdate:modelValue"];
2773
+ const _hoisted_16$1 = ["value"];
2774
+ const _hoisted_17$1 = {
2777
2775
  key: 11,
2778
2776
  class: "invalid-feedback"
2779
2777
  };
2780
- const _hoisted_20$1 = { class: "form-check me-1" };
2781
- const _hoisted_21$1 = ["value", "disabled", "checked"];
2782
- const _hoisted_22$1 = { class: "form-check-label" };
2783
- const _hoisted_23$1 = { class: "form-check me-1" };
2784
- const _hoisted_24$1 = ["name", "value"];
2785
- const _hoisted_25$1 = { class: "form-check-label" };
2786
- const _hoisted_26$1 = {
2778
+ const _hoisted_18$1 = { class: "form-check me-1" };
2779
+ const _hoisted_19$1 = ["value", "disabled", "checked"];
2780
+ const _hoisted_20$1 = { class: "form-check-label" };
2781
+ const _hoisted_21$1 = { class: "form-check me-1" };
2782
+ const _hoisted_22$1 = ["name", "value"];
2783
+ const _hoisted_23$1 = { class: "form-check-label" };
2784
+ const _hoisted_24$1 = {
2787
2785
  key: 1,
2788
2786
  class: "row"
2789
2787
  };
2790
- const _hoisted_27$1 = /*#__PURE__*/vue.createElementVNode("h5", null, "Confirm and Submit", -1 /* HOISTED */);
2791
- const _hoisted_28$1 = /*#__PURE__*/vue.createElementVNode("p", null, [
2792
- /*#__PURE__*/vue.createTextVNode("By clicking submit, you agree to our "),
2793
- /*#__PURE__*/vue.createElementVNode("a", {
2794
- target: "_blank",
2795
- href: "/"
2796
- }, "terms and conditions"),
2797
- /*#__PURE__*/vue.createTextVNode(" and that you have read our "),
2798
- /*#__PURE__*/vue.createElementVNode("a", {
2799
- target: "_blank",
2800
- href: "https://hauzisha.co.ke/privacy-policy"
2801
- }, "privacy policy")
2802
- ], -1 /* HOISTED */);
2803
- const _hoisted_29$1 = [
2804
- _hoisted_27$1,
2805
- _hoisted_28$1
2806
- ];
2807
- const _hoisted_30$1 = /*#__PURE__*/vue.createElementVNode("span", {
2808
- class: "spinner-border spinner-border-sm",
2809
- role: "status",
2810
- "aria-hidden": "true"
2811
- }, null, -1 /* HOISTED */);
2812
2788
 
2813
2789
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2814
2790
  const _component_phone_input = vue.resolveComponent("phone-input");
2815
2791
  const _component_ShSuggest = vue.resolveComponent("ShSuggest");
2816
2792
 
2817
2793
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2818
- _hoisted_1$q,
2819
- vue.createElementVNode("form", _hoisted_2$g, [
2794
+ _cache[5] || (_cache[5] = vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */)),
2795
+ vue.createElementVNode("form", _hoisted_1$o, [
2820
2796
  vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
2821
2797
  vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
2822
2798
  (_ctx.form_status == 3)
2823
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
2824
- _hoisted_4$e,
2799
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$g, [
2800
+ _cache[2] || (_cache[2] = vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */)),
2825
2801
  (_ctx.errorText)
2826
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$c, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
2827
- : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$9, "Unexpected Error Occurred")),
2802
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$d, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
2803
+ : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$c, "Unexpected Error Occurred")),
2828
2804
  vue.createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
2829
2805
  ]))
2830
2806
  : vue.createCommentVNode("v-if", true),
@@ -2834,14 +2810,14 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2834
2810
  }, null, 512 /* NEED_PATCH */), [
2835
2811
  [vue.vModelText, _ctx.form_elements['id']]
2836
2812
  ]),
2837
- vue.createElementVNode("div", _hoisted_7$8, [
2813
+ vue.createElementVNode("div", _hoisted_5$a, [
2838
2814
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.fields, (field) => {
2839
2815
  return (vue.openBlock(), vue.createElementBlock("div", {
2840
2816
  class: vue.normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
2841
2817
  key: field
2842
2818
  }, [
2843
- vue.createElementVNode("label", _hoisted_8$7, vue.toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2844
- vue.createElementVNode("div", _hoisted_9$7, [
2819
+ vue.createElementVNode("label", _hoisted_6$8, vue.toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2820
+ vue.createElementVNode("div", _hoisted_7$7, [
2845
2821
  ($options.getFieldType(field) === 'component')
2846
2822
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.customComponent[field]), {
2847
2823
  key: 0,
@@ -2866,7 +2842,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2866
2842
  ref: 'file_'+field,
2867
2843
  onChange: $event => ($options.handleFileUpload(field)),
2868
2844
  type: "file"
2869
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$7))
2845
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_8$6))
2870
2846
  : vue.createCommentVNode("v-if", true),
2871
2847
  ($options.getFieldType(field) === 'numeric')
2872
2848
  ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
@@ -2878,7 +2854,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2878
2854
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2879
2855
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2880
2856
  type: "number"
2881
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11$7)), [
2857
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_9$6)), [
2882
2858
  [vue.vModelText, _ctx.form_elements[field]]
2883
2859
  ])
2884
2860
  : vue.createCommentVNode("v-if", true),
@@ -2892,7 +2868,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2892
2868
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2893
2869
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2894
2870
  type: "password"
2895
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_12$6)), [
2871
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$4)), [
2896
2872
  [vue.vModelText, _ctx.form_elements[field]]
2897
2873
  ])
2898
2874
  : vue.createCommentVNode("v-if", true),
@@ -2907,7 +2883,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2907
2883
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2908
2884
  type: "email",
2909
2885
  required: ""
2910
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_13$4)), [
2886
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11$3)), [
2911
2887
  [vue.vModelText, _ctx.form_elements[field]]
2912
2888
  ])
2913
2889
  : vue.createCommentVNode("v-if", true),
@@ -2920,7 +2896,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2920
2896
  onFocus: $event => ($options.removeErrors(field)),
2921
2897
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control active"]),
2922
2898
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2923
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14$4)), [
2899
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_12$3)), [
2924
2900
  [vue.vModelText, _ctx.form_elements[field]]
2925
2901
  ])
2926
2902
  : vue.createCommentVNode("v-if", true),
@@ -2959,7 +2935,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2959
2935
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2960
2936
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2961
2937
  type: "text"
2962
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15$3)), [
2938
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_13$3)), [
2963
2939
  [vue.vModelText, _ctx.form_elements[field]]
2964
2940
  ])
2965
2941
  : vue.createCommentVNode("v-if", true),
@@ -2970,7 +2946,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2970
2946
  onFocus: $event => ($options.removeErrors(field)),
2971
2947
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2972
2948
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2973
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_16$3)), [
2949
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14$3)), [
2974
2950
  [vue.vModelText, _ctx.form_elements[field]]
2975
2951
  ])
2976
2952
  : vue.createCommentVNode("v-if", true),
@@ -2986,28 +2962,28 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2986
2962
  return (vue.openBlock(), vue.createElementBlock("option", {
2987
2963
  key: $props.fillSelects[field].value ? item[$props.fillSelects[field].value]:item.id,
2988
2964
  value: $props.fillSelects[field].value ? item[$props.fillSelects[field].value]:item.id
2989
- }, vue.toDisplayString($props.fillSelects[field].column ? item[$props.fillSelects[field].column]:item.name), 9 /* TEXT, PROPS */, _hoisted_18$3))
2965
+ }, vue.toDisplayString($props.fillSelects[field].column ? item[$props.fillSelects[field].column]:item.name), 9 /* TEXT, PROPS */, _hoisted_16$1))
2990
2966
  }), 128 /* KEYED_FRAGMENT */))
2991
- ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_17$3)), [
2967
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15$3)), [
2992
2968
  [vue.vModelSelect, _ctx.form_elements[field]]
2993
2969
  ])
2994
2970
  : vue.createCommentVNode("v-if", true),
2995
2971
  (_ctx.form_errors[field] != null )
2996
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19$1, vue.toDisplayString(_ctx.form_errors[field][0]), 1 /* TEXT */))
2972
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, vue.toDisplayString(_ctx.form_errors[field][0]), 1 /* TEXT */))
2997
2973
  : vue.createCommentVNode("v-if", true),
2998
2974
  vue.createElementVNode("div", {
2999
2975
  class: vue.normalizeClass($props.checkBoxes?.display ? ($props.checkBoxes.display =='row' ? 'd-flex': '' ) : '' )
3000
2976
  }, [
3001
2977
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.checkboxData[field], (item) => {
3002
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$1, [
2978
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$1, [
3003
2979
  vue.createElementVNode("input", {
3004
2980
  class: "form-check-input",
3005
2981
  type: "checkbox",
3006
2982
  value: item.id,
3007
2983
  disabled: item.disabled,
3008
2984
  checked: item.checked
3009
- }, null, 8 /* PROPS */, _hoisted_21$1),
3010
- vue.createElementVNode("label", _hoisted_22$1, vue.toDisplayString(item.label), 1 /* TEXT */)
2985
+ }, null, 8 /* PROPS */, _hoisted_19$1),
2986
+ vue.createElementVNode("label", _hoisted_20$1, vue.toDisplayString(item.label), 1 /* TEXT */)
3011
2987
  ]))
3012
2988
  }), 256 /* UNKEYED_FRAGMENT */))
3013
2989
  ], 2 /* CLASS */),
@@ -3015,14 +2991,14 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3015
2991
  class: vue.normalizeClass($props.radioBoxes?.display ? ($props.radioBoxes.display =='row' ? 'd-flex': '' ) : '' )
3016
2992
  }, [
3017
2993
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.radioboxData[field], (item) => {
3018
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_23$1, [
2994
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_21$1, [
3019
2995
  vue.createElementVNode("input", {
3020
2996
  class: "form-check-input",
3021
2997
  type: "radio",
3022
2998
  name: field,
3023
2999
  value: item.value
3024
- }, null, 8 /* PROPS */, _hoisted_24$1),
3025
- vue.createElementVNode("label", _hoisted_25$1, vue.toDisplayString(item.label), 1 /* TEXT */)
3000
+ }, null, 8 /* PROPS */, _hoisted_22$1),
3001
+ vue.createElementVNode("label", _hoisted_23$1, vue.toDisplayString(item.label), 1 /* TEXT */)
3026
3002
  ]))
3027
3003
  }), 256 /* UNKEYED_FRAGMENT */))
3028
3004
  ], 2 /* CLASS */)
@@ -3031,7 +3007,21 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3031
3007
  }), 128 /* KEYED_FRAGMENT */))
3032
3008
  ]),
3033
3009
  ($props.hasTerms)
3034
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26$1, [..._hoisted_29$1]))
3010
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24$1, _cache[3] || (_cache[3] = [
3011
+ vue.createElementVNode("h5", null, "Confirm and Submit", -1 /* HOISTED */),
3012
+ vue.createElementVNode("p", null, [
3013
+ vue.createTextVNode("By clicking submit, you agree to our "),
3014
+ vue.createElementVNode("a", {
3015
+ target: "_blank",
3016
+ href: "/"
3017
+ }, "terms and conditions"),
3018
+ vue.createTextVNode(" and that you have read our "),
3019
+ vue.createElementVNode("a", {
3020
+ target: "_blank",
3021
+ href: "https://hauzisha.co.ke/privacy-policy"
3022
+ }, "privacy policy")
3023
+ ], -1 /* HOISTED */)
3024
+ ])))
3035
3025
  : vue.createCommentVNode("v-if", true),
3036
3026
  (_ctx.form_status == 1)
3037
3027
  ? (vue.openBlock(), vue.createElementBlock("button", {
@@ -3039,10 +3029,14 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3039
3029
  class: vue.normalizeClass(["btn btn-primary", $options.getSubmitBtnClass()]),
3040
3030
  type: "button",
3041
3031
  disabled: ""
3042
- }, [
3043
- _hoisted_30$1,
3032
+ }, _cache[4] || (_cache[4] = [
3033
+ vue.createElementVNode("span", {
3034
+ class: "spinner-border spinner-border-sm",
3035
+ role: "status",
3036
+ "aria-hidden": "true"
3037
+ }, null, -1 /* HOISTED */),
3044
3038
  vue.createTextVNode(" Processing... ")
3045
- ], 2 /* CLASS */))
3039
+ ]), 2 /* CLASS */))
3046
3040
  : (vue.openBlock(), vue.createElementBlock("button", {
3047
3041
  key: 3,
3048
3042
  "data-cy": "sh_form_submit",
@@ -3097,7 +3091,7 @@ return (_ctx, _cache) => {
3097
3091
 
3098
3092
  script$x.__file = "src/lib/components/form-components/EmailInput.vue";
3099
3093
 
3100
- const _hoisted_1$p = ["min", "max"];
3094
+ const _hoisted_1$n = ["min", "max"];
3101
3095
 
3102
3096
 
3103
3097
  var script$w = {
@@ -3132,7 +3126,7 @@ return (_ctx, _cache) => {
3132
3126
  onChange: modelValueUpdated,
3133
3127
  onKeydown: modelValueUpdated,
3134
3128
  onUpdated: modelValueUpdated
3135
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$p)), [
3129
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$n)), [
3136
3130
  [vue.vModelText, inputModel.value]
3137
3131
  ])
3138
3132
  }
@@ -3224,7 +3218,7 @@ return (_ctx, _cache) => {
3224
3218
 
3225
3219
  script$u.__file = "src/lib/components/form-components/TextAreaInput.vue";
3226
3220
 
3227
- const _hoisted_1$o = ["value"];
3221
+ const _hoisted_1$m = ["value"];
3228
3222
 
3229
3223
 
3230
3224
  var script$t = {
@@ -3282,7 +3276,7 @@ return (_ctx, _cache) => {
3282
3276
  return (vue.openBlock(), vue.createElementBlock("option", {
3283
3277
  key: option.id,
3284
3278
  value: option.id
3285
- }, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$o))
3279
+ }, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$m))
3286
3280
  }), 128 /* KEYED_FRAGMENT */))
3287
3281
  ], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
3288
3282
  [vue.vModelSelect, inputModel.value]
@@ -3372,35 +3366,26 @@ return (_ctx, _cache) => {
3372
3366
 
3373
3367
  script$r.__file = "src/lib/components/form-components/DateInput.vue";
3374
3368
 
3375
- const _hoisted_1$n = /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /* HOISTED */);
3376
- const _hoisted_2$f = ["name", "onUpdate:modelValue"];
3377
- const _hoisted_3$d = ["innerHTML"];
3378
- const _hoisted_4$d = {
3369
+ const _hoisted_1$l = ["name", "onUpdate:modelValue"];
3370
+ const _hoisted_2$f = ["innerHTML"];
3371
+ const _hoisted_3$c = {
3379
3372
  key: 0,
3380
3373
  class: "text-danger sh-required"
3381
3374
  };
3382
- const _hoisted_5$b = ["innerHTML"];
3383
- const _hoisted_6$8 = {
3375
+ const _hoisted_4$b = ["innerHTML"];
3376
+ const _hoisted_5$9 = {
3384
3377
  key: 2,
3385
3378
  class: "form-notch"
3386
3379
  };
3387
- const _hoisted_7$7 = /*#__PURE__*/vue.createElementVNode("div", { class: "form-notch-leading" }, null, -1 /* HOISTED */);
3388
- const _hoisted_8$6 = /*#__PURE__*/vue.createElementVNode("div", { class: "form-notch-middle" }, null, -1 /* HOISTED */);
3389
- const _hoisted_9$6 = /*#__PURE__*/vue.createElementVNode("div", { class: "form-notch-trailing" }, null, -1 /* HOISTED */);
3390
- const _hoisted_10$6 = [
3391
- _hoisted_7$7,
3392
- _hoisted_8$6,
3393
- _hoisted_9$6
3394
- ];
3395
- const _hoisted_11$6 = ["innerHTML"];
3396
- const _hoisted_12$5 = ["disabled"];
3397
- const _hoisted_13$3 = {
3380
+ const _hoisted_6$7 = ["innerHTML"];
3381
+ const _hoisted_7$6 = ["disabled"];
3382
+ const _hoisted_8$5 = {
3398
3383
  key: 0,
3399
3384
  class: "spinner-border spinner-border-sm",
3400
3385
  role: "status",
3401
3386
  "aria-hidden": "true"
3402
3387
  };
3403
- const _hoisted_14$3 = { key: 1 };
3388
+ const _hoisted_9$5 = { key: 1 };
3404
3389
 
3405
3390
 
3406
3391
  var script$q = {
@@ -3647,7 +3632,7 @@ vue.onMounted((ev) => {
3647
3632
 
3648
3633
  return (_ctx, _cache) => {
3649
3634
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3650
- _hoisted_1$n,
3635
+ _cache[2] || (_cache[2] = vue.createElementVNode("div", null, null, -1 /* HOISTED */)),
3651
3636
  vue.createElementVNode("form", {
3652
3637
  class: vue.normalizeClass([__props.formClass, "sh-auto-form"]),
3653
3638
  ref_key: "shAutoForm",
@@ -3665,7 +3650,7 @@ return (_ctx, _cache) => {
3665
3650
  type: "hidden",
3666
3651
  name: field.field,
3667
3652
  "onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
3668
- }, null, 8 /* PROPS */, _hoisted_2$f)), [
3653
+ }, null, 8 /* PROPS */, _hoisted_1$l)), [
3669
3654
  [vue.vModelText, formFields.value[index].value]
3670
3655
  ])
3671
3656
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -3677,9 +3662,9 @@ return (_ctx, _cache) => {
3677
3662
  vue.createElementVNode("span", {
3678
3663
  innerHTML: field.label,
3679
3664
  class: "sh-label"
3680
- }, null, 8 /* PROPS */, _hoisted_3$d),
3665
+ }, null, 8 /* PROPS */, _hoisted_2$f),
3681
3666
  (field.required)
3682
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$d, "*"))
3667
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$c, "*"))
3683
3668
  : vue.createCommentVNode("v-if", true)
3684
3669
  ], 2 /* CLASS */))
3685
3670
  : vue.createCommentVNode("v-if", true),
@@ -3695,17 +3680,21 @@ return (_ctx, _cache) => {
3695
3680
  key: 1,
3696
3681
  class: vue.normalizeClass(getElementClass('formLabel')),
3697
3682
  innerHTML: field.label
3698
- }, null, 10 /* CLASS, PROPS */, _hoisted_5$b))
3683
+ }, null, 10 /* CLASS, PROPS */, _hoisted_4$b))
3699
3684
  : vue.createCommentVNode("v-if", true),
3700
3685
  (vue.unref(isFloating))
3701
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$8, [..._hoisted_10$6]))
3686
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$9, [...(_cache[1] || (_cache[1] = [
3687
+ vue.createElementVNode("div", { class: "form-notch-leading" }, null, -1 /* HOISTED */),
3688
+ vue.createElementVNode("div", { class: "form-notch-middle" }, null, -1 /* HOISTED */),
3689
+ vue.createElementVNode("div", { class: "form-notch-trailing" }, null, -1 /* HOISTED */)
3690
+ ]))]))
3702
3691
  : vue.createCommentVNode("v-if", true),
3703
3692
  (field.helper)
3704
3693
  ? (vue.openBlock(), vue.createElementBlock("div", {
3705
3694
  key: 3,
3706
3695
  class: vue.normalizeClass(getElementClass('helperText')),
3707
3696
  innerHTML: field.helper
3708
- }, null, 10 /* CLASS, PROPS */, _hoisted_11$6))
3697
+ }, null, 10 /* CLASS, PROPS */, _hoisted_6$7))
3709
3698
  : vue.createCommentVNode("v-if", true),
3710
3699
  (validationErrors.value[field.field])
3711
3700
  ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -3728,12 +3717,12 @@ return (_ctx, _cache) => {
3728
3717
  class: vue.normalizeClass(getElementClass('actionBtn'))
3729
3718
  }, [
3730
3719
  (loading.value)
3731
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13$3))
3720
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$5))
3732
3721
  : vue.createCommentVNode("v-if", true),
3733
3722
  (!loading.value)
3734
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14$3, "Submit"))
3723
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9$5, "Submit"))
3735
3724
  : vue.createCommentVNode("v-if", true)
3736
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_12$5)
3725
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_7$6)
3737
3726
  ], 2 /* CLASS */)
3738
3727
  ], 34 /* CLASS, NEED_HYDRATION */)
3739
3728
  ], 64 /* STABLE_FRAGMENT */))
@@ -3744,18 +3733,12 @@ return (_ctx, _cache) => {
3744
3733
 
3745
3734
  script$q.__file = "src/lib/components/ShAutoForm.vue";
3746
3735
 
3747
- const _hoisted_1$m = ["id", "data-bs-backdrop"];
3736
+ const _hoisted_1$k = ["id", "data-bs-backdrop"];
3748
3737
  const _hoisted_2$e = { class: "modal-content" };
3749
- const _hoisted_3$c = { class: "modal-header" };
3750
- const _hoisted_4$c = { class: "modal-title flex-fill" };
3751
- const _hoisted_5$a = /*#__PURE__*/vue.createElementVNode("button", {
3752
- type: "button",
3753
- class: "btn-close sh-modal-close",
3754
- "data-bs-dismiss": "modal",
3755
- "aria-label": "Close"
3756
- }, null, -1 /* HOISTED */);
3757
- const _hoisted_6$7 = { class: "modal-body" };
3758
- const _hoisted_7$6 = { class: "section" };
3738
+ const _hoisted_3$b = { class: "modal-header" };
3739
+ const _hoisted_4$a = { class: "modal-title flex-fill" };
3740
+ const _hoisted_5$8 = { class: "modal-body" };
3741
+ const _hoisted_6$6 = { class: "section" };
3759
3742
 
3760
3743
 
3761
3744
  var script$p = {
@@ -3817,18 +3800,23 @@ return (_ctx, _cache) => {
3817
3800
  class: vue.normalizeClass(["modal-dialog", modalClasses.value])
3818
3801
  }, [
3819
3802
  vue.createElementVNode("div", _hoisted_2$e, [
3820
- vue.createElementVNode("div", _hoisted_3$c, [
3821
- vue.createElementVNode("h3", _hoisted_4$c, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
3822
- _hoisted_5$a
3803
+ vue.createElementVNode("div", _hoisted_3$b, [
3804
+ vue.createElementVNode("h3", _hoisted_4$a, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
3805
+ _cache[0] || (_cache[0] = vue.createElementVNode("button", {
3806
+ type: "button",
3807
+ class: "btn-close sh-modal-close",
3808
+ "data-bs-dismiss": "modal",
3809
+ "aria-label": "Close"
3810
+ }, null, -1 /* HOISTED */))
3823
3811
  ]),
3824
- vue.createElementVNode("div", _hoisted_6$7, [
3825
- vue.createElementVNode("div", _hoisted_7$6, [
3812
+ vue.createElementVNode("div", _hoisted_5$8, [
3813
+ vue.createElementVNode("div", _hoisted_6$6, [
3826
3814
  vue.renderSlot(_ctx.$slots, "default")
3827
3815
  ])
3828
3816
  ])
3829
3817
  ])
3830
3818
  ], 2 /* CLASS */)
3831
- ], 8 /* PROPS */, _hoisted_1$m))
3819
+ ], 8 /* PROPS */, _hoisted_1$k))
3832
3820
  }
3833
3821
  }
3834
3822
 
@@ -3836,10 +3824,9 @@ return (_ctx, _cache) => {
3836
3824
 
3837
3825
  script$p.__file = "src/lib/components/ShModal.vue";
3838
3826
 
3839
- const _hoisted_1$l = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
3840
- const _hoisted_2$d = { class: "dropdown sh-dropdown-form" };
3841
- const _hoisted_3$b = ["id"];
3842
- const _hoisted_4$b = ["aria-labelledby"];
3827
+ const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
3828
+ const _hoisted_2$d = ["id"];
3829
+ const _hoisted_3$a = ["aria-labelledby"];
3843
3830
 
3844
3831
  var script$o = {
3845
3832
  __name: 'ShDropDownForm',
@@ -3889,8 +3876,8 @@ const formError = (res)=>{
3889
3876
 
3890
3877
  return (_ctx, _cache) => {
3891
3878
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3892
- _hoisted_1$l,
3893
- vue.createElementVNode("div", _hoisted_2$d, [
3879
+ _cache[0] || (_cache[0] = vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */)),
3880
+ vue.createElementVNode("div", _hoisted_1$j, [
3894
3881
  vue.createElementVNode("a", {
3895
3882
  class: vue.normalizeClass(vue.unref(btnClass)),
3896
3883
  href: "#",
@@ -3901,7 +3888,7 @@ return (_ctx, _cache) => {
3901
3888
  "aria-expanded": "false"
3902
3889
  }, [
3903
3890
  vue.renderSlot(_ctx.$slots, "default")
3904
- ], 10 /* CLASS, PROPS */, _hoisted_3$b),
3891
+ ], 10 /* CLASS, PROPS */, _hoisted_2$d),
3905
3892
  vue.createElementVNode("div", {
3906
3893
  class: "dropdown-menu px-2 py-1",
3907
3894
  "aria-labelledby": _ctx.dropdownId
@@ -3913,7 +3900,7 @@ return (_ctx, _cache) => {
3913
3900
  onFormError: formError,
3914
3901
  key: JSON.stringify(__props.currentData ?? {})
3915
3902
  }, props), null, 16 /* FULL_PROPS */))
3916
- ], 8 /* PROPS */, _hoisted_4$b)
3903
+ ], 8 /* PROPS */, _hoisted_3$a)
3917
3904
  ])
3918
3905
  ], 64 /* STABLE_FRAGMENT */))
3919
3906
  }
@@ -3923,7 +3910,7 @@ return (_ctx, _cache) => {
3923
3910
 
3924
3911
  script$o.__file = "src/lib/components/ShDropDownForm.vue";
3925
3912
 
3926
- const _hoisted_1$k = ["href"];
3913
+ const _hoisted_1$i = ["href"];
3927
3914
 
3928
3915
  var script$n = {
3929
3916
  __name: 'ShModalForm',
@@ -3985,7 +3972,7 @@ return (_ctx, _cache) => {
3985
3972
  onClick: emitClick
3986
3973
  }, [
3987
3974
  vue.renderSlot(_ctx.$slots, "default")
3988
- ], 10 /* CLASS, PROPS */, _hoisted_1$k),
3975
+ ], 10 /* CLASS, PROPS */, _hoisted_1$i),
3989
3976
  vue.createVNode(script$p, {
3990
3977
  "modal-size": __props.modalSize,
3991
3978
  "modal-id": vue.unref(realModalId),
@@ -4010,7 +3997,7 @@ return (_ctx, _cache) => {
4010
3997
 
4011
3998
  script$n.__file = "src/lib/components/ShModalForm.vue";
4012
3999
 
4013
- const _hoisted_1$j = ["href"];
4000
+ const _hoisted_1$h = ["href"];
4014
4001
 
4015
4002
  var script$m = {
4016
4003
  __name: 'ShModalFormAuto',
@@ -4051,7 +4038,7 @@ return (_ctx, _cache) => {
4051
4038
  "data-bs-toggle": "modal"
4052
4039
  }, [
4053
4040
  vue.renderSlot(_ctx.$slots, "default")
4054
- ], 10 /* CLASS, PROPS */, _hoisted_1$j),
4041
+ ], 10 /* CLASS, PROPS */, _hoisted_1$h),
4055
4042
  vue.createVNode(script$p, {
4056
4043
  "modal-id": modalId,
4057
4044
  "modal-title": __props.modalTitle,
@@ -4070,20 +4057,20 @@ return (_ctx, _cache) => {
4070
4057
 
4071
4058
  script$m.__file = "src/lib/components/ShModalFormAuto.vue";
4072
4059
 
4073
- const _hoisted_1$i = ["data-bs-scroll", "id"];
4060
+ const _hoisted_1$g = ["data-bs-scroll", "id"];
4074
4061
  const _hoisted_2$c = { class: "offcanvas-header" };
4075
- const _hoisted_3$a = {
4062
+ const _hoisted_3$9 = {
4076
4063
  class: "offcanvas-title",
4077
4064
  id: "offcanvasScrollingLabel"
4078
4065
  };
4079
- const _hoisted_4$a = {
4066
+ const _hoisted_4$9 = {
4080
4067
  type: "button",
4081
4068
  ref: "closecanvas",
4082
4069
  class: "btn-close sh-offcanvas-close",
4083
4070
  "data-bs-dismiss": "offcanvas",
4084
4071
  "aria-label": "Close"
4085
4072
  };
4086
- const _hoisted_5$9 = { class: "offcanvas-body" };
4073
+ const _hoisted_5$7 = { class: "offcanvas-body" };
4087
4074
 
4088
4075
  var script$l = {
4089
4076
  __name: 'ShCanvas',
@@ -4132,13 +4119,13 @@ return (_ctx, _cache) => {
4132
4119
  "aria-labelledby": "offcanvasScrollingLabel"
4133
4120
  }, [
4134
4121
  vue.createElementVNode("div", _hoisted_2$c, [
4135
- vue.createElementVNode("h5", _hoisted_3$a, vue.toDisplayString(__props.canvasTitle), 1 /* TEXT */),
4136
- vue.createElementVNode("button", _hoisted_4$a, null, 512 /* NEED_PATCH */)
4122
+ vue.createElementVNode("h5", _hoisted_3$9, vue.toDisplayString(__props.canvasTitle), 1 /* TEXT */),
4123
+ vue.createElementVNode("button", _hoisted_4$9, null, 512 /* NEED_PATCH */)
4137
4124
  ]),
4138
- vue.createElementVNode("div", _hoisted_5$9, [
4125
+ vue.createElementVNode("div", _hoisted_5$7, [
4139
4126
  vue.renderSlot(_ctx.$slots, "default")
4140
4127
  ])
4141
- ], 10 /* CLASS, PROPS */, _hoisted_1$i))
4128
+ ], 10 /* CLASS, PROPS */, _hoisted_1$g))
4142
4129
  }
4143
4130
  }
4144
4131
 
@@ -4146,12 +4133,12 @@ return (_ctx, _cache) => {
4146
4133
 
4147
4134
  script$l.__file = "src/lib/components/ShCanvas.vue";
4148
4135
 
4149
- const _hoisted_1$h = { class: "callout callout-info" };
4136
+ const _hoisted_1$f = { class: "callout callout-info" };
4150
4137
 
4151
4138
  function render$2(_ctx, _cache) {
4152
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
4139
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
4153
4140
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
4154
- vue.createTextVNode(" No records found ")
4141
+ _cache[0] || (_cache[0] = vue.createTextVNode(" No records found "))
4155
4142
  ])
4156
4143
  ]))
4157
4144
  }
@@ -4259,13 +4246,6 @@ const useUserStore = pinia.defineStore('user-store', {
4259
4246
  }
4260
4247
  });
4261
4248
 
4262
- const _hoisted_1$g = /*#__PURE__*/vue.createElementVNode("span", {
4263
- class: "spinner-border spinner-border-sm me-1",
4264
- role: "status",
4265
- "aria-hidden": "true"
4266
- }, null, -1 /* HOISTED */);
4267
-
4268
-
4269
4249
  var script$j = {
4270
4250
  __name: 'ShConfirmAction',
4271
4251
  props: {
@@ -4342,7 +4322,11 @@ return (_ctx, _cache) => {
4342
4322
  }, [
4343
4323
  (processing.value)
4344
4324
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
4345
- _hoisted_1$g,
4325
+ _cache[0] || (_cache[0] = vue.createElementVNode("span", {
4326
+ class: "spinner-border spinner-border-sm me-1",
4327
+ role: "status",
4328
+ "aria-hidden": "true"
4329
+ }, null, -1 /* HOISTED */)),
4346
4330
  vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
4347
4331
  ], 64 /* STABLE_FRAGMENT */))
4348
4332
  : vue.createCommentVNode("v-if", true),
@@ -4357,12 +4341,6 @@ return (_ctx, _cache) => {
4357
4341
 
4358
4342
  script$j.__file = "src/lib/components/ShConfirmAction.vue";
4359
4343
 
4360
- const _hoisted_1$f = /*#__PURE__*/vue.createElementVNode("span", {
4361
- class: "spinner-border spinner-border-sm me-1",
4362
- role: "status",
4363
- "aria-hidden": "true"
4364
- }, null, -1 /* HOISTED */);
4365
-
4366
4344
  var script$i = {
4367
4345
  __name: 'ShSilentAction',
4368
4346
  props: {
@@ -4441,7 +4419,11 @@ return (_ctx, _cache) => {
4441
4419
  }, [
4442
4420
  (processing.value)
4443
4421
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
4444
- _hoisted_1$f,
4422
+ _cache[0] || (_cache[0] = vue.createElementVNode("span", {
4423
+ class: "spinner-border spinner-border-sm me-1",
4424
+ role: "status",
4425
+ "aria-hidden": "true"
4426
+ }, null, -1 /* HOISTED */)),
4445
4427
  vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
4446
4428
  ], 64 /* STABLE_FRAGMENT */))
4447
4429
  : vue.createCommentVNode("v-if", true),
@@ -4619,15 +4601,15 @@ const _hoisted_2$a = {
4619
4601
  "data-bs-toggle": "dropdown",
4620
4602
  "aria-expanded": "false"
4621
4603
  };
4622
- const _hoisted_3$9 = {
4604
+ const _hoisted_3$8 = {
4623
4605
  key: 1,
4624
4606
  class: "bi bi-three-dots"
4625
4607
  };
4626
- const _hoisted_4$9 = {
4608
+ const _hoisted_4$8 = {
4627
4609
  key: 2,
4628
4610
  class: "bi bi-three-dots-vertical"
4629
4611
  };
4630
- const _hoisted_5$8 = { class: "dropdown-menu" };
4612
+ const _hoisted_5$6 = { class: "dropdown-menu" };
4631
4613
 
4632
4614
 
4633
4615
  var script$g = {
@@ -4651,10 +4633,10 @@ return (_ctx, _cache) => {
4651
4633
  class: vue.normalizeClass(vue.unref(icon))
4652
4634
  }, null, 2 /* CLASS */))
4653
4635
  : (vue.unref(type) === 'dropdown-horizontal')
4654
- ? (vue.openBlock(), vue.createElementBlock("i", _hoisted_3$9))
4655
- : (vue.openBlock(), vue.createElementBlock("i", _hoisted_4$9))
4636
+ ? (vue.openBlock(), vue.createElementBlock("i", _hoisted_3$8))
4637
+ : (vue.openBlock(), vue.createElementBlock("i", _hoisted_4$8))
4656
4638
  ]),
4657
- vue.createElementVNode("ul", _hoisted_5$8, [
4639
+ vue.createElementVNode("ul", _hoisted_5$6, [
4658
4640
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(actionItems), (act) => {
4659
4641
  return (vue.openBlock(), vue.createElementBlock("li", {
4660
4642
  key: act.label
@@ -4767,45 +4749,37 @@ var script$f = {
4767
4749
 
4768
4750
  const _hoisted_1$c = { key: 0 };
4769
4751
  const _hoisted_2$9 = { class: "record_count_body mb-3" };
4770
- const _hoisted_3$8 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
4771
- const _hoisted_4$8 = ["value"];
4772
- const _hoisted_5$7 = { class: "record_counts" };
4773
- const _hoisted_6$6 = {
4752
+ const _hoisted_3$7 = ["value"];
4753
+ const _hoisted_4$7 = { class: "record_counts" };
4754
+ const _hoisted_5$5 = {
4774
4755
  key: 0,
4775
4756
  "aria-label": "Page navigation"
4776
4757
  };
4777
- const _hoisted_7$5 = { class: "pagination" };
4778
- const _hoisted_8$5 = {
4758
+ const _hoisted_6$5 = { class: "pagination" };
4759
+ const _hoisted_7$5 = {
4779
4760
  key: 0,
4780
4761
  class: "page-link"
4781
4762
  };
4782
- const _hoisted_9$5 = {
4763
+ const _hoisted_8$4 = {
4783
4764
  key: 1,
4784
4765
  class: "page-link"
4785
4766
  };
4786
- const _hoisted_10$5 = ["onClick"];
4787
- const _hoisted_11$5 = { key: 1 };
4788
- const _hoisted_12$4 = {
4767
+ const _hoisted_9$4 = ["onClick"];
4768
+ const _hoisted_10$3 = { key: 1 };
4769
+ const _hoisted_11$2 = {
4789
4770
  key: 0,
4790
4771
  class: "text-center"
4791
4772
  };
4792
- const _hoisted_13$2 = /*#__PURE__*/vue.createElementVNode("div", {
4793
- class: "spinner-border",
4794
- role: "status"
4795
- }, null, -1 /* HOISTED */);
4796
- const _hoisted_14$2 = [
4797
- _hoisted_13$2
4798
- ];
4799
- const _hoisted_15$2 = {
4773
+ const _hoisted_12$2 = {
4800
4774
  key: 1,
4801
4775
  class: "text-center"
4802
4776
  };
4803
- const _hoisted_16$2 = { class: "per_page_show" };
4804
- const _hoisted_17$2 = {
4777
+ const _hoisted_13$2 = { class: "per_page_show" };
4778
+ const _hoisted_14$2 = {
4805
4779
  key: 2,
4806
4780
  class: "text-center"
4807
4781
  };
4808
- const _hoisted_18$2 = {
4782
+ const _hoisted_15$2 = {
4809
4783
  key: 1,
4810
4784
  class: "spinner-border"
4811
4785
  };
@@ -4814,24 +4788,24 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4814
4788
  return ($props.paginationStyle !== 'loadMore')
4815
4789
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
4816
4790
  vue.createElementVNode("div", _hoisted_2$9, [
4817
- _hoisted_3$8,
4818
- vue.createTextVNode("  "),
4791
+ _cache[5] || (_cache[5] = vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */)),
4792
+ _cache[6] || (_cache[6] = vue.createTextVNode("  ")),
4819
4793
  vue.withDirectives(vue.createElementVNode("select", {
4820
4794
  class: "select_per_page",
4821
4795
  onChange: _cache[0] || (_cache[0] = (...args) => ($options.changePerPage && $options.changePerPage(...args))),
4822
4796
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($data.per_page) = $event))
4823
4797
  }, [
4824
4798
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.pageOptions, (option) => {
4825
- return (vue.openBlock(), vue.createElementBlock("option", { value: option }, vue.toDisplayString(option), 9 /* TEXT, PROPS */, _hoisted_4$8))
4799
+ return (vue.openBlock(), vue.createElementBlock("option", { value: option }, vue.toDisplayString(option), 9 /* TEXT, PROPS */, _hoisted_3$7))
4826
4800
  }), 256 /* UNKEYED_FRAGMENT */))
4827
4801
  ], 544 /* NEED_HYDRATION, NEED_PATCH */), [
4828
4802
  [vue.vModelSelect, $data.per_page]
4829
4803
  ]),
4830
- vue.createElementVNode("span", _hoisted_5$7, " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
4804
+ vue.createElementVNode("span", _hoisted_4$7, " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
4831
4805
  ]),
4832
4806
  ($props.pagination_data != null)
4833
- ? (vue.openBlock(), vue.createElementBlock("nav", _hoisted_6$6, [
4834
- vue.createElementVNode("ul", _hoisted_7$5, [
4807
+ ? (vue.openBlock(), vue.createElementBlock("nav", _hoisted_5$5, [
4808
+ vue.createElementVNode("ul", _hoisted_6$5, [
4835
4809
  vue.createElementVNode("li", {
4836
4810
  class: vue.normalizeClass([$options.getActivePage === 1 ? 'disabled' : '' , "page-item"])
4837
4811
  }, [
@@ -4846,14 +4820,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4846
4820
  key: page
4847
4821
  }, [
4848
4822
  ($options.getActivePage === page)
4849
- ? (vue.openBlock(), vue.createElementBlock("a", _hoisted_8$5, vue.toDisplayString(page), 1 /* TEXT */))
4823
+ ? (vue.openBlock(), vue.createElementBlock("a", _hoisted_7$5, vue.toDisplayString(page), 1 /* TEXT */))
4850
4824
  : (['..','...'].includes(page))
4851
- ? (vue.openBlock(), vue.createElementBlock("a", _hoisted_9$5, vue.toDisplayString(page), 1 /* TEXT */))
4825
+ ? (vue.openBlock(), vue.createElementBlock("a", _hoisted_8$4, vue.toDisplayString(page), 1 /* TEXT */))
4852
4826
  : (vue.openBlock(), vue.createElementBlock("a", {
4853
4827
  key: 2,
4854
4828
  onClick: $event => ($options.changeTableKey('page',page)),
4855
4829
  class: "page-link"
4856
- }, vue.toDisplayString(page), 9 /* TEXT, PROPS */, _hoisted_10$5))
4830
+ }, vue.toDisplayString(page), 9 /* TEXT, PROPS */, _hoisted_9$4))
4857
4831
  ], 2 /* CLASS */))
4858
4832
  }), 128 /* KEYED_FRAGMENT */)),
4859
4833
  vue.createElementVNode("li", {
@@ -4868,24 +4842,29 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4868
4842
  ]))
4869
4843
  : vue.createCommentVNode("v-if", true)
4870
4844
  ]))
4871
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$5, [
4845
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$3, [
4872
4846
  (this.pagination_data.loading === 1 && $props.loadMore && $props.hideLoadMore)
4873
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$4, [..._hoisted_14$2]))
4847
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$2, _cache[7] || (_cache[7] = [
4848
+ vue.createElementVNode("div", {
4849
+ class: "spinner-border",
4850
+ role: "status"
4851
+ }, null, -1 /* HOISTED */)
4852
+ ])))
4874
4853
  : vue.createCommentVNode("v-if", true),
4875
4854
  (!$props.hideCount)
4876
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$2, [
4877
- vue.createElementVNode("span", _hoisted_16$2, "Showing " + vue.toDisplayString($props.pagination_data.displayCount) + " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
4855
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, [
4856
+ vue.createElementVNode("span", _hoisted_13$2, "Showing " + vue.toDisplayString($props.pagination_data.displayCount) + " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
4878
4857
  ]))
4879
4858
  : vue.createCommentVNode("v-if", true),
4880
4859
  ($props.pagination_data.displayCount < $props.pagination_data.record_count && !$props.hideLoadMore)
4881
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$2, [
4860
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$2, [
4882
4861
  (this.pagination_data.loading !== 1)
4883
4862
  ? (vue.openBlock(), vue.createElementBlock("button", {
4884
4863
  key: 0,
4885
4864
  class: "btn btn-sm btn-primary mt-1",
4886
4865
  onClick: _cache[4] || (_cache[4] = (...args) => ($options.loadMoreRecords && $options.loadMoreRecords(...args)))
4887
4866
  }, " Load More "))
4888
- : (vue.openBlock(), vue.createElementBlock("span", _hoisted_18$2))
4867
+ : (vue.openBlock(), vue.createElementBlock("span", _hoisted_15$2))
4889
4868
  ]))
4890
4869
  : vue.createCommentVNode("v-if", true)
4891
4870
  ]))
@@ -4896,7 +4875,7 @@ script$f.__file = "src/lib/components/list_templates/Pagination.vue";
4896
4875
 
4897
4876
  const _hoisted_1$b = { class: "sh-range" };
4898
4877
  const _hoisted_2$8 = { class: "dropdown" };
4899
- const _hoisted_3$7 = {
4878
+ const _hoisted_3$6 = {
4900
4879
  class: "form-control dropdown-toggle",
4901
4880
  href: "#",
4902
4881
  role: "button",
@@ -4904,17 +4883,15 @@ const _hoisted_3$7 = {
4904
4883
  "data-bs-toggle": "dropdown",
4905
4884
  "aria-expanded": "false"
4906
4885
  };
4907
- const _hoisted_4$7 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-calendar text-dark" }, null, -1 /* HOISTED */);
4908
- const _hoisted_5$6 = ["innerHTML"];
4909
- const _hoisted_6$5 = {
4886
+ const _hoisted_4$6 = ["innerHTML"];
4887
+ const _hoisted_5$4 = {
4910
4888
  class: "dropdown-menu sh-range-dropdown",
4911
4889
  "aria-labelledby": "dropdownMenuLink"
4912
4890
  };
4913
- const _hoisted_7$4 = { class: "sh-range-preset" };
4914
- const _hoisted_8$4 = ["onClick"];
4915
- const _hoisted_9$4 = { class: "border-top" };
4916
- const _hoisted_10$4 = { class: "dropdown-item d-flex flex-column" };
4917
- const _hoisted_11$4 = /*#__PURE__*/vue.createElementVNode("span", null, "Custom", -1 /* HOISTED */);
4891
+ const _hoisted_6$4 = { class: "sh-range-preset" };
4892
+ const _hoisted_7$4 = ["onClick"];
4893
+ const _hoisted_8$3 = { class: "border-top" };
4894
+ const _hoisted_9$3 = { class: "dropdown-item d-flex flex-column" };
4918
4895
 
4919
4896
 
4920
4897
 
@@ -5029,13 +5006,13 @@ vue.onMounted(() => {
5029
5006
  return (_ctx, _cache) => {
5030
5007
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
5031
5008
  vue.createElementVNode("div", _hoisted_2$8, [
5032
- vue.createElementVNode("div", _hoisted_3$7, [
5033
- _hoisted_4$7,
5034
- vue.createTextVNode(),
5035
- vue.createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_5$6)
5009
+ vue.createElementVNode("div", _hoisted_3$6, [
5010
+ _cache[2] || (_cache[2] = vue.createElementVNode("i", { class: "bi-calendar text-dark" }, null, -1 /* HOISTED */)),
5011
+ _cache[3] || (_cache[3] = vue.createTextVNode()),
5012
+ vue.createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_4$6)
5036
5013
  ]),
5037
- vue.createElementVNode("div", _hoisted_6$5, [
5038
- vue.createElementVNode("ul", _hoisted_7$4, [
5014
+ vue.createElementVNode("div", _hoisted_5$4, [
5015
+ vue.createElementVNode("ul", _hoisted_6$4, [
5039
5016
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dates.value, (date) => {
5040
5017
  return (vue.openBlock(), vue.createElementBlock("li", {
5041
5018
  key: date.label,
@@ -5045,13 +5022,13 @@ return (_ctx, _cache) => {
5045
5022
  class: vue.normalizeClass(["dropdown-item", date.value === selectedDate.value ? 'active' : '']),
5046
5023
  href: "#"
5047
5024
  }, vue.toDisplayString(date.label), 3 /* TEXT, CLASS */)
5048
- ], 8 /* PROPS */, _hoisted_8$4))
5025
+ ], 8 /* PROPS */, _hoisted_7$4))
5049
5026
  }), 128 /* KEYED_FRAGMENT */))
5050
5027
  ]),
5051
5028
  vue.createElementVNode("ul", null, [
5052
- vue.createElementVNode("li", _hoisted_9$4, [
5053
- vue.createElementVNode("div", _hoisted_10$4, [
5054
- _hoisted_11$4,
5029
+ vue.createElementVNode("li", _hoisted_8$3, [
5030
+ vue.createElementVNode("div", _hoisted_9$3, [
5031
+ _cache[4] || (_cache[4] = vue.createElementVNode("span", null, "Custom", -1 /* HOISTED */)),
5055
5032
  vue.createElementVNode("div", null, [
5056
5033
  vue.withDirectives(vue.createElementVNode("input", {
5057
5034
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((customFrom).value = $event)),
@@ -5091,170 +5068,119 @@ const _hoisted_2$7 = {
5091
5068
  key: 0,
5092
5069
  class: "col-md-4 mb-2"
5093
5070
  };
5094
- const _hoisted_3$6 = ["disabled"];
5095
- const _hoisted_4$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
5096
- const _hoisted_5$5 = /*#__PURE__*/vue.createElementVNode("span", {
5097
- class: "spinner-border spinner-border-sm",
5098
- role: "status",
5099
- "aria-hidden": "true"
5100
- }, null, -1 /* HOISTED */);
5101
- const _hoisted_6$4 = /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
5102
- const _hoisted_7$3 = {
5071
+ const _hoisted_3$5 = ["disabled"];
5072
+ const _hoisted_4$5 = {
5103
5073
  key: 1,
5104
5074
  class: "row"
5105
5075
  };
5106
- const _hoisted_8$3 = { class: "col-12 mb-3 d-flex justify-content-between flex-column flex-md-row flex-lg-row" };
5107
- const _hoisted_9$3 = ["placeholder"];
5108
- const _hoisted_10$3 = {
5076
+ const _hoisted_5$3 = { class: "col-12 mb-3 d-flex justify-content-between flex-column flex-md-row flex-lg-row" };
5077
+ const _hoisted_6$3 = ["placeholder"];
5078
+ const _hoisted_7$3 = {
5109
5079
  key: 0,
5110
5080
  class: "input-group-text exact_checkbox"
5111
5081
  };
5112
- const _hoisted_11$3 = /*#__PURE__*/vue.createElementVNode("span", { class: "ms-1" }, "Exact", -1 /* HOISTED */);
5113
- const _hoisted_12$3 = {
5082
+ const _hoisted_8$2 = {
5114
5083
  key: 0,
5115
5084
  class: "sh-range-selector"
5116
5085
  };
5117
- const _hoisted_13$1 = {
5086
+ const _hoisted_9$2 = {
5118
5087
  key: 0,
5119
5088
  class: "text-center"
5120
5089
  };
5121
- const _hoisted_14$1 = /*#__PURE__*/vue.createElementVNode("div", {
5122
- class: "spinner-border",
5123
- role: "status"
5124
- }, [
5125
- /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5126
- ], -1 /* HOISTED */);
5127
- const _hoisted_15$1 = [
5128
- _hoisted_14$1
5129
- ];
5130
- const _hoisted_16$1 = {
5090
+ const _hoisted_10$2 = {
5131
5091
  key: 1,
5132
5092
  class: "alert alert-danger"
5133
5093
  };
5134
- const _hoisted_17$1 = {
5094
+ const _hoisted_11$1 = {
5135
5095
  key: 0,
5136
5096
  class: "text-center"
5137
5097
  };
5138
- const _hoisted_18$1 = /*#__PURE__*/vue.createElementVNode("div", {
5139
- class: "spinner-border",
5140
- role: "status"
5141
- }, [
5142
- /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5143
- ], -1 /* HOISTED */);
5144
- const _hoisted_19 = [
5145
- _hoisted_18$1
5146
- ];
5147
- const _hoisted_20 = {
5098
+ const _hoisted_12$1 = {
5148
5099
  key: 1,
5149
5100
  class: "alert alert-danger error-loading"
5150
5101
  };
5151
- const _hoisted_21 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */);
5152
- const _hoisted_22 = { class: "sh-thead" };
5153
- const _hoisted_23 = ["onClick"];
5154
- const _hoisted_24 = ["onClick"];
5155
- const _hoisted_25 = ["onClick"];
5156
- const _hoisted_26 = ["onClick"];
5157
- const _hoisted_27 = {
5102
+ const _hoisted_13$1 = { class: "sh-thead" };
5103
+ const _hoisted_14$1 = ["onClick"];
5104
+ const _hoisted_15$1 = ["onClick"];
5105
+ const _hoisted_16 = ["onClick"];
5106
+ const _hoisted_17 = ["onClick"];
5107
+ const _hoisted_18 = {
5158
5108
  key: 0,
5159
5109
  class: "text-capitalize"
5160
5110
  };
5161
- const _hoisted_28 = { class: "sh-tbody" };
5162
- const _hoisted_29 = {
5111
+ const _hoisted_19 = { class: "sh-tbody" };
5112
+ const _hoisted_20 = {
5163
5113
  key: 0,
5164
5114
  class: "text-center"
5165
5115
  };
5166
- const _hoisted_30 = ["colspan"];
5167
- const _hoisted_31 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-center" }, [
5168
- /*#__PURE__*/vue.createElementVNode("div", {
5169
- class: "spinner-border",
5170
- role: "status"
5171
- }, [
5172
- /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5173
- ])
5174
- ], -1 /* HOISTED */);
5175
- const _hoisted_32 = [
5176
- _hoisted_31
5177
- ];
5178
- const _hoisted_33 = {
5116
+ const _hoisted_21 = ["colspan"];
5117
+ const _hoisted_22 = {
5179
5118
  key: 1,
5180
5119
  class: "text-center alert alert-danger"
5181
5120
  };
5182
- const _hoisted_34 = ["colspan"];
5183
- const _hoisted_35 = {
5121
+ const _hoisted_23 = ["colspan"];
5122
+ const _hoisted_24 = {
5184
5123
  key: 2,
5185
5124
  class: "text-center alert alert-info no_records"
5186
5125
  };
5187
- const _hoisted_36 = ["colspan"];
5188
- const _hoisted_37 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */);
5189
- const _hoisted_38 = ["onClick"];
5190
- const _hoisted_39 = { key: 1 };
5191
- const _hoisted_40 = {
5126
+ const _hoisted_25 = ["colspan"];
5127
+ const _hoisted_26 = ["onClick"];
5128
+ const _hoisted_27 = { key: 1 };
5129
+ const _hoisted_28 = {
5192
5130
  key: 2,
5193
5131
  class: "text-success fw-bold"
5194
5132
  };
5195
- const _hoisted_41 = { key: 3 };
5196
- const _hoisted_42 = ["innerHTML"];
5197
- const _hoisted_43 = ["innerHTML"];
5198
- const _hoisted_44 = ["innerHTML"];
5199
- const _hoisted_45 = ["innerHTML"];
5200
- const _hoisted_46 = ["innerHTML"];
5201
- const _hoisted_47 = ["innerHTML"];
5202
- const _hoisted_48 = {
5133
+ const _hoisted_29 = { key: 3 };
5134
+ const _hoisted_30 = ["innerHTML"];
5135
+ const _hoisted_31 = ["innerHTML"];
5136
+ const _hoisted_32 = ["innerHTML"];
5137
+ const _hoisted_33 = ["innerHTML"];
5138
+ const _hoisted_34 = ["innerHTML"];
5139
+ const _hoisted_35 = ["innerHTML"];
5140
+ const _hoisted_36 = {
5203
5141
  key: 0,
5204
5142
  style: {"white-space":"nowrap"}
5205
5143
  };
5206
- const _hoisted_49 = { key: 5 };
5207
- const _hoisted_50 = {
5144
+ const _hoisted_37 = { key: 5 };
5145
+ const _hoisted_38 = {
5208
5146
  key: 0,
5209
5147
  class: "text-center"
5210
5148
  };
5211
- const _hoisted_51 = /*#__PURE__*/vue.createElementVNode("div", { class: "text-center" }, [
5212
- /*#__PURE__*/vue.createElementVNode("div", {
5213
- class: "spinner-border",
5214
- role: "status"
5215
- }, [
5216
- /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5217
- ])
5218
- ], -1 /* HOISTED */);
5219
- const _hoisted_52 = [
5220
- _hoisted_51
5221
- ];
5222
- const _hoisted_53 = { key: 1 };
5223
- const _hoisted_54 = {
5149
+ const _hoisted_39 = { key: 1 };
5150
+ const _hoisted_40 = {
5224
5151
  key: 2,
5225
5152
  class: "mobile-list-items"
5226
5153
  };
5227
- const _hoisted_55 = ["onClick"];
5228
- const _hoisted_56 = {
5154
+ const _hoisted_41 = ["onClick"];
5155
+ const _hoisted_42 = {
5229
5156
  key: 0,
5230
5157
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
5231
5158
  };
5232
- const _hoisted_57 = {
5159
+ const _hoisted_43 = {
5233
5160
  key: 1,
5234
5161
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
5235
5162
  };
5236
- const _hoisted_58 = {
5163
+ const _hoisted_44 = {
5237
5164
  key: 2,
5238
5165
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
5239
5166
  };
5240
- const _hoisted_59 = {
5167
+ const _hoisted_45 = {
5241
5168
  key: 3,
5242
5169
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
5243
5170
  };
5244
- const _hoisted_60 = { key: 1 };
5245
- const _hoisted_61 = {
5171
+ const _hoisted_46 = { key: 1 };
5172
+ const _hoisted_47 = {
5246
5173
  key: 2,
5247
5174
  class: "text-primary fw-bold"
5248
5175
  };
5249
- const _hoisted_62 = { key: 3 };
5250
- const _hoisted_63 = ["innerHTML"];
5251
- const _hoisted_64 = ["innerHTML"];
5252
- const _hoisted_65 = ["innerHTML"];
5253
- const _hoisted_66 = ["innerHTML"];
5254
- const _hoisted_67 = ["innerHTML"];
5255
- const _hoisted_68 = ["innerHTML"];
5256
- const _hoisted_69 = /*#__PURE__*/vue.createElementVNode("hr", { class: "my-2" }, null, -1 /* HOISTED */);
5257
- const _hoisted_70 = { key: 0 };
5176
+ const _hoisted_48 = { key: 3 };
5177
+ const _hoisted_49 = ["innerHTML"];
5178
+ const _hoisted_50 = ["innerHTML"];
5179
+ const _hoisted_51 = ["innerHTML"];
5180
+ const _hoisted_52 = ["innerHTML"];
5181
+ const _hoisted_53 = ["innerHTML"];
5182
+ const _hoisted_54 = ["innerHTML"];
5183
+ const _hoisted_55 = { key: 0 };
5258
5184
 
5259
5185
  const __default__ = {
5260
5186
  name: 'sh-table',
@@ -5583,7 +5509,7 @@ const __default__ = {
5583
5509
  };
5584
5510
 
5585
5511
 
5586
- var script$d = /*#__PURE__*/Object.assign(__default__, {
5512
+ var script$d = /*@__PURE__*/Object.assign(__default__, {
5587
5513
  setup(__props) {
5588
5514
 
5589
5515
  const noRecordsComponent = vue.inject('noRecordsComponent', script$k);
@@ -5612,19 +5538,23 @@ return (_ctx, _cache) => {
5612
5538
  }, [
5613
5539
  (!_ctx.downloading)
5614
5540
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
5615
- _hoisted_4$6,
5616
- vue.createTextVNode(" Export ")
5541
+ _cache[7] || (_cache[7] = vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */)),
5542
+ _cache[8] || (_cache[8] = vue.createTextVNode(" Export "))
5617
5543
  ], 64 /* STABLE_FRAGMENT */))
5618
5544
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
5619
- _hoisted_5$5,
5620
- _hoisted_6$4
5545
+ _cache[9] || (_cache[9] = vue.createElementVNode("span", {
5546
+ class: "spinner-border spinner-border-sm",
5547
+ role: "status",
5548
+ "aria-hidden": "true"
5549
+ }, null, -1 /* HOISTED */)),
5550
+ _cache[10] || (_cache[10] = vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */))
5621
5551
  ], 64 /* STABLE_FRAGMENT */))
5622
- ], 8 /* PROPS */, _hoisted_3$6)
5552
+ ], 8 /* PROPS */, _hoisted_3$5)
5623
5553
  ]))
5624
5554
  : vue.createCommentVNode("v-if", true),
5625
5555
  (!__props.hideSearch)
5626
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
5627
- vue.createElementVNode("div", _hoisted_8$3, [
5556
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$5, [
5557
+ vue.createElementVNode("div", _hoisted_5$3, [
5628
5558
  vue.createElementVNode("div", {
5629
5559
  class: vue.normalizeClass(["sh-search-bar input-group", __props.hasRange ? 'me-2':''])
5630
5560
  }, [
@@ -5636,11 +5566,11 @@ return (_ctx, _cache) => {
5636
5566
  "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((_ctx.filter_value) = $event)),
5637
5567
  placeholder: __props.searchPlaceholder ? __props.searchPlaceholder : 'Search',
5638
5568
  class: "form-control sh-search-input"
5639
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_9$3), [
5569
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_6$3), [
5640
5570
  [vue.vModelText, _ctx.filter_value]
5641
5571
  ]),
5642
5572
  (_ctx.filter_value.length > 1)
5643
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10$3, [
5573
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$3, [
5644
5574
  vue.withDirectives(vue.createElementVNode("input", {
5645
5575
  onChange: _cache[5] || (_cache[5] = (...args) => (_ctx.reloadData && _ctx.reloadData(...args))),
5646
5576
  value: true,
@@ -5649,12 +5579,12 @@ return (_ctx, _cache) => {
5649
5579
  }, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
5650
5580
  [vue.vModelCheckbox, _ctx.exactMatch]
5651
5581
  ]),
5652
- _hoisted_11$3
5582
+ _cache[11] || (_cache[11] = vue.createElementVNode("span", { class: "ms-1" }, "Exact", -1 /* HOISTED */))
5653
5583
  ]))
5654
5584
  : vue.createCommentVNode("v-if", true)
5655
5585
  ], 2 /* CLASS */),
5656
5586
  (__props.hasRange)
5657
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$3, [
5587
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$2, [
5658
5588
  vue.createVNode(script$e, {
5659
5589
  onRangeSelected: _ctx.rangeChanged,
5660
5590
  selected: __props.selectedRange
@@ -5667,9 +5597,16 @@ return (_ctx, _cache) => {
5667
5597
  (_ctx.hasDefaultSlot)
5668
5598
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
5669
5599
  (_ctx.loading === 'loading')
5670
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$1, [..._hoisted_15$1]))
5600
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$2, _cache[12] || (_cache[12] = [
5601
+ vue.createElementVNode("div", {
5602
+ class: "spinner-border",
5603
+ role: "status"
5604
+ }, [
5605
+ vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5606
+ ], -1 /* HOISTED */)
5607
+ ])))
5671
5608
  : (_ctx.loading === 'error')
5672
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1, [
5609
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$2, [
5673
5610
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
5674
5611
  ]))
5675
5612
  : vue.createCommentVNode("v-if", true),
@@ -5685,9 +5622,16 @@ return (_ctx, _cache) => {
5685
5622
  : (_ctx.hasRecordsSlot)
5686
5623
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
5687
5624
  (_ctx.loading === 'loading' && !__props.cacheKey)
5688
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, [..._hoisted_19]))
5625
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$1, _cache[13] || (_cache[13] = [
5626
+ vue.createElementVNode("div", {
5627
+ class: "spinner-border",
5628
+ role: "status"
5629
+ }, [
5630
+ vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5631
+ ], -1 /* HOISTED */)
5632
+ ])))
5689
5633
  : (_ctx.loading === 'error' && !__props.cacheKey)
5690
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
5634
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, [
5691
5635
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
5692
5636
  ]))
5693
5637
  : vue.createCommentVNode("v-if", true),
@@ -5696,7 +5640,7 @@ return (_ctx, _cache) => {
5696
5640
  (!_ctx.records || _ctx.records.length === 0)
5697
5641
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(noRecordsComponent)), { key: 0 }, {
5698
5642
  default: vue.withCtx(() => [
5699
- _hoisted_21,
5643
+ _cache[14] || (_cache[14] = vue.createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */)),
5700
5644
  vue.createTextVNode(" " + vue.toDisplayString(__props.noRecordsMessage ?? 'No records found'), 1 /* TEXT */)
5701
5645
  ]),
5702
5646
  _: 1 /* STABLE */
@@ -5711,7 +5655,7 @@ return (_ctx, _cache) => {
5711
5655
  key: 4,
5712
5656
  class: vue.normalizeClass(["table sh-table", __props.tableHover ? 'table-hover':''])
5713
5657
  }, [
5714
- vue.createElementVNode("thead", _hoisted_22, [
5658
+ vue.createElementVNode("thead", _hoisted_13$1, [
5715
5659
  vue.createElementVNode("tr", null, [
5716
5660
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tableHeaders, (title) => {
5717
5661
  return (vue.openBlock(), vue.createElementBlock("th", { key: title }, [
@@ -5720,54 +5664,63 @@ return (_ctx, _cache) => {
5720
5664
  key: 0,
5721
5665
  class: "text-capitalize",
5722
5666
  onClick: $event => (_ctx.changeKey('order_by',title))
5723
- }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_23))
5667
+ }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_14$1))
5724
5668
  : (typeof title === 'object')
5725
5669
  ? (vue.openBlock(), vue.createElementBlock("a", {
5726
5670
  key: 1,
5727
5671
  class: "text-capitalize",
5728
5672
  onClick: $event => (_ctx.changeKey('order_by',title.key))
5729
- }, vue.toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
5673
+ }, vue.toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_15$1))
5730
5674
  : (typeof title === 'function')
5731
5675
  ? (vue.openBlock(), vue.createElementBlock("a", {
5732
5676
  key: 2,
5733
5677
  class: "text-capitalize",
5734
5678
  onClick: $event => (_ctx.changeKey('order_by',title(null)))
5735
- }, vue.toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_25))
5679
+ }, vue.toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_16))
5736
5680
  : (typeof title !== 'undefined')
5737
5681
  ? (vue.openBlock(), vue.createElementBlock("a", {
5738
5682
  key: 3,
5739
5683
  class: "text-capitalize",
5740
5684
  onClick: $event => (_ctx.changeKey('order_by',title))
5741
- }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_26))
5685
+ }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_17))
5742
5686
  : vue.createCommentVNode("v-if", true)
5743
5687
  ]))
5744
5688
  }), 128 /* KEYED_FRAGMENT */)),
5745
5689
  (__props.actions)
5746
- ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_27, vue.toDisplayString(__props.actions.label), 1 /* TEXT */))
5690
+ ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_18, vue.toDisplayString(__props.actions.label), 1 /* TEXT */))
5747
5691
  : vue.createCommentVNode("v-if", true)
5748
5692
  ])
5749
5693
  ]),
5750
- vue.createElementVNode("tbody", _hoisted_28, [
5694
+ vue.createElementVNode("tbody", _hoisted_19, [
5751
5695
  (_ctx.loading === 'loading')
5752
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_29, [
5696
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_20, [
5753
5697
  vue.createElementVNode("td", {
5754
5698
  colspan: _ctx.tableHeaders.length
5755
- }, [..._hoisted_32], 8 /* PROPS */, _hoisted_30)
5699
+ }, _cache[15] || (_cache[15] = [
5700
+ vue.createElementVNode("div", { class: "text-center" }, [
5701
+ vue.createElementVNode("div", {
5702
+ class: "spinner-border",
5703
+ role: "status"
5704
+ }, [
5705
+ vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5706
+ ])
5707
+ ], -1 /* HOISTED */)
5708
+ ]), 8 /* PROPS */, _hoisted_21)
5756
5709
  ]))
5757
5710
  : (_ctx.loading === 'error')
5758
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_33, [
5711
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_22, [
5759
5712
  vue.createElementVNode("td", {
5760
5713
  colspan: _ctx.tableHeaders.length
5761
- }, vue.toDisplayString(_ctx.loading_error), 9 /* TEXT, PROPS */, _hoisted_34)
5714
+ }, vue.toDisplayString(_ctx.loading_error), 9 /* TEXT, PROPS */, _hoisted_23)
5762
5715
  ]))
5763
5716
  : (_ctx.records.length === 0)
5764
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_35, [
5717
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_24, [
5765
5718
  vue.createElementVNode("td", {
5766
5719
  colspan: __props.actions ? _ctx.tableHeaders.length + 1 : _ctx.tableHeaders.length
5767
- }, [
5768
- _hoisted_37,
5720
+ }, _cache[16] || (_cache[16] = [
5721
+ vue.createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */),
5769
5722
  vue.createTextVNode(" No records found ")
5770
- ], 8 /* PROPS */, _hoisted_36)
5723
+ ]), 8 /* PROPS */, _hoisted_25)
5771
5724
  ]))
5772
5725
  : (_ctx.loading === 'done')
5773
5726
  ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 3 }, vue.renderList(_ctx.records, (record, index) => {
@@ -5787,31 +5740,31 @@ return (_ctx, _cache) => {
5787
5740
  innerHTML: record[key]
5788
5741
  }, null, 8 /* PROPS */, ["target", "to", "class", "innerHTML"]))
5789
5742
  : (_ctx.getFieldType(key) === 'numeric')
5790
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_39, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5743
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_27, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5791
5744
  : (_ctx.getFieldType(key) === 'money')
5792
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_40, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5745
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_28, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5793
5746
  : (_ctx.getFieldType(key) === 'date')
5794
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_41, vue.toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
5747
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_29, vue.toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
5795
5748
  : (typeof key === 'string')
5796
5749
  ? (vue.openBlock(), vue.createElementBlock("span", {
5797
5750
  key: 4,
5798
5751
  innerHTML: record[key]
5799
- }, null, 8 /* PROPS */, _hoisted_42))
5752
+ }, null, 8 /* PROPS */, _hoisted_30))
5800
5753
  : (typeof key === 'function')
5801
5754
  ? (vue.openBlock(), vue.createElementBlock("span", {
5802
5755
  key: 5,
5803
5756
  innerHTML: key(record, index)
5804
- }, null, 8 /* PROPS */, _hoisted_43))
5757
+ }, null, 8 /* PROPS */, _hoisted_31))
5805
5758
  : (typeof key === 'object' && key.callBack)
5806
5759
  ? (vue.openBlock(), vue.createElementBlock("span", {
5807
5760
  key: 6,
5808
5761
  innerHTML: key.callBack(record, index)
5809
- }, null, 8 /* PROPS */, _hoisted_44))
5762
+ }, null, 8 /* PROPS */, _hoisted_32))
5810
5763
  : (typeof key === 'object' && key.callback)
5811
5764
  ? (vue.openBlock(), vue.createElementBlock("span", {
5812
5765
  key: 7,
5813
5766
  innerHTML: key.callback(record, index)
5814
- }, null, 8 /* PROPS */, _hoisted_45))
5767
+ }, null, 8 /* PROPS */, _hoisted_33))
5815
5768
  : (typeof key === 'object' && key.component)
5816
5769
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(key.component), vue.mergeProps({
5817
5770
  key: 8,
@@ -5822,15 +5775,15 @@ return (_ctx, _cache) => {
5822
5775
  ? (vue.openBlock(), vue.createElementBlock("span", {
5823
5776
  key: 9,
5824
5777
  innerHTML: record[key.key ?? key.field]
5825
- }, null, 8 /* PROPS */, _hoisted_46))
5778
+ }, null, 8 /* PROPS */, _hoisted_34))
5826
5779
  : (vue.openBlock(), vue.createElementBlock("span", {
5827
5780
  key: 10,
5828
5781
  innerHTML: record[key[0]]
5829
- }, null, 8 /* PROPS */, _hoisted_47))
5782
+ }, null, 8 /* PROPS */, _hoisted_35))
5830
5783
  ]))
5831
5784
  }), 128 /* KEYED_FRAGMENT */)),
5832
5785
  (__props.actions)
5833
- ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_48, [
5786
+ ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_36, [
5834
5787
  vue.createVNode(script$g, {
5835
5788
  emitAction: _ctx.doEmitAction,
5836
5789
  actions: __props.actions,
@@ -5838,20 +5791,29 @@ return (_ctx, _cache) => {
5838
5791
  }, null, 8 /* PROPS */, ["emitAction", "actions", "record"])
5839
5792
  ]))
5840
5793
  : vue.createCommentVNode("v-if", true)
5841
- ], 10 /* CLASS, PROPS */, _hoisted_38))
5794
+ ], 10 /* CLASS, PROPS */, _hoisted_26))
5842
5795
  }), 128 /* KEYED_FRAGMENT */))
5843
5796
  : vue.createCommentVNode("v-if", true)
5844
5797
  ])
5845
5798
  ], 2 /* CLASS */))
5846
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_49, [
5799
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_37, [
5847
5800
  (_ctx.loading === 'loading')
5848
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_50, [..._hoisted_52]))
5801
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_38, _cache[17] || (_cache[17] = [
5802
+ vue.createElementVNode("div", { class: "text-center" }, [
5803
+ vue.createElementVNode("div", {
5804
+ class: "spinner-border",
5805
+ role: "status"
5806
+ }, [
5807
+ vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5808
+ ])
5809
+ ], -1 /* HOISTED */)
5810
+ ])))
5849
5811
  : (_ctx.loading === 'error')
5850
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_53, [
5812
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_39, [
5851
5813
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
5852
5814
  ]))
5853
5815
  : (_ctx.loading === 'done')
5854
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_54, [
5816
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_40, [
5855
5817
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.records, (record, index) => {
5856
5818
  return (vue.openBlock(), vue.createElementBlock("div", {
5857
5819
  key: record.id,
@@ -5863,12 +5825,12 @@ return (_ctx, _cache) => {
5863
5825
  key: key[0]
5864
5826
  }, [
5865
5827
  (typeof key === 'string' )
5866
- ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_56, vue.toDisplayString(key.replace(/_/g, ' ')), 1 /* TEXT */))
5828
+ ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_42, vue.toDisplayString(key.replace(/_/g, ' ')), 1 /* TEXT */))
5867
5829
  : (typeof key === 'function')
5868
- ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_57, vue.toDisplayString(key(null).replace(/_/g, ' ')), 1 /* TEXT */))
5830
+ ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_43, vue.toDisplayString(key(null).replace(/_/g, ' ')), 1 /* TEXT */))
5869
5831
  : (typeof key === 'object')
5870
- ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_58, vue.toDisplayString(key.label ?? key.key.replace(/_/g, ' ')), 1 /* TEXT */))
5871
- : (vue.openBlock(), vue.createElementBlock("p", _hoisted_59, vue.toDisplayString(key[1].replace(/_/g, ' ')), 1 /* TEXT */)),
5832
+ ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_44, vue.toDisplayString(key.label ?? key.key.replace(/_/g, ' ')), 1 /* TEXT */))
5833
+ : (vue.openBlock(), vue.createElementBlock("p", _hoisted_45, vue.toDisplayString(key[1].replace(/_/g, ' ')), 1 /* TEXT */)),
5872
5834
  vue.createElementVNode("span", null, [
5873
5835
  (typeof key === 'string' && __props.links && __props.links[key])
5874
5836
  ? (vue.openBlock(), vue.createBlock(_component_router_link, {
@@ -5878,26 +5840,26 @@ return (_ctx, _cache) => {
5878
5840
  innerHTML: record[key]
5879
5841
  }, null, 8 /* PROPS */, ["to", "class", "innerHTML"]))
5880
5842
  : (_ctx.getFieldType(key) === 'numeric')
5881
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_60, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5843
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_46, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5882
5844
  : (_ctx.getFieldType(key) === 'money')
5883
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_61, "KES " + vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5845
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_47, "KES " + vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5884
5846
  : (_ctx.getFieldType(key) === 'date')
5885
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_62, vue.toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
5847
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_48, vue.toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
5886
5848
  : (typeof key === 'string')
5887
5849
  ? (vue.openBlock(), vue.createElementBlock("span", {
5888
5850
  key: 4,
5889
5851
  innerHTML: record[key]
5890
- }, null, 8 /* PROPS */, _hoisted_63))
5852
+ }, null, 8 /* PROPS */, _hoisted_49))
5891
5853
  : (typeof key === 'object' && key.callBack)
5892
5854
  ? (vue.openBlock(), vue.createElementBlock("span", {
5893
5855
  key: 5,
5894
5856
  innerHTML: key.callBack(record, index)
5895
- }, null, 8 /* PROPS */, _hoisted_64))
5857
+ }, null, 8 /* PROPS */, _hoisted_50))
5896
5858
  : (typeof key === 'object' && key.callback)
5897
5859
  ? (vue.openBlock(), vue.createElementBlock("span", {
5898
5860
  key: 6,
5899
5861
  innerHTML: key.callback(record, index)
5900
- }, null, 8 /* PROPS */, _hoisted_65))
5862
+ }, null, 8 /* PROPS */, _hoisted_51))
5901
5863
  : (typeof key === 'object' && key.component)
5902
5864
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(key.component), vue.mergeProps({
5903
5865
  key: 7,
@@ -5908,22 +5870,22 @@ return (_ctx, _cache) => {
5908
5870
  ? (vue.openBlock(), vue.createElementBlock("span", {
5909
5871
  key: 8,
5910
5872
  innerHTML: record[key.key ?? key.field]
5911
- }, null, 8 /* PROPS */, _hoisted_66))
5873
+ }, null, 8 /* PROPS */, _hoisted_52))
5912
5874
  : (typeof key === 'function')
5913
5875
  ? (vue.openBlock(), vue.createElementBlock("span", {
5914
5876
  key: 9,
5915
5877
  innerHTML: key(record, index )
5916
- }, null, 8 /* PROPS */, _hoisted_67))
5878
+ }, null, 8 /* PROPS */, _hoisted_53))
5917
5879
  : (vue.openBlock(), vue.createElementBlock("span", {
5918
5880
  key: 10,
5919
5881
  innerHTML: record[key[0]]
5920
- }, null, 8 /* PROPS */, _hoisted_68))
5882
+ }, null, 8 /* PROPS */, _hoisted_54))
5921
5883
  ]),
5922
- _hoisted_69
5884
+ _cache[18] || (_cache[18] = vue.createElementVNode("hr", { class: "my-2" }, null, -1 /* HOISTED */))
5923
5885
  ], 64 /* STABLE_FRAGMENT */))
5924
5886
  }), 128 /* KEYED_FRAGMENT */)),
5925
5887
  (__props.actions)
5926
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_70, [
5888
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_55, [
5927
5889
  vue.createVNode(script$g, {
5928
5890
  emitAction: _ctx.doEmitAction,
5929
5891
  actions: __props.actions,
@@ -5931,7 +5893,7 @@ return (_ctx, _cache) => {
5931
5893
  }, null, 8 /* PROPS */, ["emitAction", "actions", "record"])
5932
5894
  ]))
5933
5895
  : vue.createCommentVNode("v-if", true)
5934
- ], 8 /* PROPS */, _hoisted_55))
5896
+ ], 8 /* PROPS */, _hoisted_41))
5935
5897
  }), 128 /* KEYED_FRAGMENT */))
5936
5898
  ]))
5937
5899
  : vue.createCommentVNode("v-if", true)
@@ -6146,9 +6108,8 @@ const _hoisted_1$9 = {
6146
6108
  role: "presentation"
6147
6109
  };
6148
6110
  const _hoisted_2$6 = ["onClick"];
6149
- const _hoisted_3$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
6150
- const _hoisted_4$5 = { class: "sh_tab_count" };
6151
- const _hoisted_5$4 = { class: "tab-content" };
6111
+ const _hoisted_3$4 = { class: "sh_tab_count" };
6112
+ const _hoisted_4$4 = { class: "tab-content" };
6152
6113
 
6153
6114
  var script$b = {
6154
6115
  __name: 'ShDynamicTabs',
@@ -6190,15 +6151,15 @@ return (_ctx, _cache) => {
6190
6151
  vue.createTextVNode(vue.toDisplayString(tab.label) + " ", 1 /* TEXT */),
6191
6152
  (tab.count || tab.tabCount)
6192
6153
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
6193
- _hoisted_3$5,
6194
- vue.createElementVNode("sup", _hoisted_4$5, vue.toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
6154
+ _cache[0] || (_cache[0] = vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */)),
6155
+ vue.createElementVNode("sup", _hoisted_3$4, vue.toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
6195
6156
  ], 64 /* STABLE_FRAGMENT */))
6196
6157
  : vue.createCommentVNode("v-if", true)
6197
6158
  ], 10 /* CLASS, PROPS */, _hoisted_2$6)
6198
6159
  ]))
6199
6160
  }), 256 /* UNKEYED_FRAGMENT */))
6200
6161
  ], 2 /* CLASS */),
6201
- vue.createElementVNode("div", _hoisted_5$4, [
6162
+ vue.createElementVNode("div", _hoisted_4$4, [
6202
6163
  (vue.unref(currentTab))
6203
6164
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentTab).component), vue.normalizeProps(vue.mergeProps({ key: 0 }, vue.unref(currentTab))), null, 16 /* FULL_PROPS */))
6204
6165
  : vue.createCommentVNode("v-if", true)
@@ -6264,45 +6225,39 @@ return (_ctx, _cache) => {
6264
6225
 
6265
6226
  script$9.__file = "src/lib/components/ShCanvasBtn.vue";
6266
6227
 
6267
- const _withScopeId$1 = n => (vue.pushScopeId("data-v-0d4fa0ac"),n=n(),vue.popScopeId(),n);
6268
6228
  const _hoisted_1$6 = { class: "row permissions-main d-flex" };
6269
6229
  const _hoisted_2$5 = {
6270
6230
  id: "permissions-nav",
6271
6231
  class: "col-md-3 d-flex align-items-center py-4"
6272
6232
  };
6273
- const _hoisted_3$4 = {
6233
+ const _hoisted_3$3 = {
6274
6234
  key: 0,
6275
6235
  class: "mx-auto"
6276
6236
  };
6277
- const _hoisted_4$4 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
6278
- const _hoisted_5$3 = [
6279
- _hoisted_4$4
6280
- ];
6281
- const _hoisted_6$3 = {
6237
+ const _hoisted_4$3 = {
6282
6238
  key: 1,
6283
6239
  class: "d-flex flex-column w-100 px-2"
6284
6240
  };
6285
- const _hoisted_7$2 = ["checked", "onClick", "disabled"];
6286
- const _hoisted_8$2 = ["onClick"];
6287
- const _hoisted_9$2 = {
6241
+ const _hoisted_5$2 = ["checked", "onClick", "disabled"];
6242
+ const _hoisted_6$2 = ["onClick"];
6243
+ const _hoisted_7$2 = {
6288
6244
  id: "permissions-content",
6289
6245
  class: "col-md-9 py-4 px-4"
6290
6246
  };
6291
- const _hoisted_10$2 = { class: "p-2 rounded-2 bg-white h-100" };
6292
- const _hoisted_11$2 = {
6247
+ const _hoisted_8$1 = { class: "p-2 rounded-2 bg-white h-100" };
6248
+ const _hoisted_9$1 = {
6293
6249
  key: 0,
6294
6250
  class: "alert alert-info"
6295
6251
  };
6296
- const _hoisted_12$2 = { key: 1 };
6297
- const _hoisted_13 = { class: "row row-cols-3" };
6298
- const _hoisted_14 = { class: "col" };
6299
- const _hoisted_15 = ["value"];
6300
- const _hoisted_16 = {
6252
+ const _hoisted_10$1 = { key: 1 };
6253
+ const _hoisted_11 = { class: "row row-cols-3" };
6254
+ const _hoisted_12 = { class: "col" };
6255
+ const _hoisted_13 = ["value"];
6256
+ const _hoisted_14 = {
6301
6257
  key: 0,
6302
6258
  class: "w-100 row"
6303
6259
  };
6304
- const _hoisted_17 = { class: "col-md-3" };
6305
- const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
6260
+ const _hoisted_15 = { class: "col-md-3" };
6306
6261
 
6307
6262
 
6308
6263
  var script$8 = {
@@ -6412,8 +6367,10 @@ return (_ctx, _cache) => {
6412
6367
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
6413
6368
  vue.createElementVNode("div", _hoisted_2$5, [
6414
6369
  (loadingModules.value)
6415
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, [..._hoisted_5$3]))
6416
- : (vue.openBlock(), vue.createElementBlock("ul", _hoisted_6$3, [
6370
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, _cache[1] || (_cache[1] = [
6371
+ vue.createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */)
6372
+ ])))
6373
+ : (vue.openBlock(), vue.createElementBlock("ul", _hoisted_4$3, [
6417
6374
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modules.value, (module) => {
6418
6375
  return (vue.openBlock(), vue.createElementBlock("li", {
6419
6376
  class: vue.normalizeClass(selectedModule.value === module && 'active'),
@@ -6424,23 +6381,23 @@ return (_ctx, _cache) => {
6424
6381
  onClick: $event => (checkAllPermissions(module)),
6425
6382
  disabled: selectedModule.value !== module,
6426
6383
  type: "checkbox"
6427
- }, null, 8 /* PROPS */, _hoisted_7$2),
6384
+ }, null, 8 /* PROPS */, _hoisted_5$2),
6428
6385
  vue.createElementVNode("label", {
6429
6386
  class: "text-capitalize",
6430
6387
  onClick: $event => (setModule(module))
6431
- }, vue.toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */, _hoisted_8$2)
6388
+ }, vue.toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */, _hoisted_6$2)
6432
6389
  ], 2 /* CLASS */))
6433
6390
  }), 128 /* KEYED_FRAGMENT */))
6434
6391
  ]))
6435
6392
  ]),
6436
- vue.createElementVNode("div", _hoisted_9$2, [
6437
- vue.createElementVNode("div", _hoisted_10$2, [
6393
+ vue.createElementVNode("div", _hoisted_7$2, [
6394
+ vue.createElementVNode("div", _hoisted_8$1, [
6438
6395
  (loading.value)
6439
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$2, " loading ... "))
6440
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, [
6441
- vue.createElementVNode("div", _hoisted_13, [
6396
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$1, " loading ... "))
6397
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$1, [
6398
+ vue.createElementVNode("div", _hoisted_11, [
6442
6399
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modulePermissions.value, (permissions) => {
6443
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
6400
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_12, [
6444
6401
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(permissions, (permission) => {
6445
6402
  return (vue.openBlock(), vue.createElementBlock("label", {
6446
6403
  onClick: setPermissionsChanged,
@@ -6451,7 +6408,7 @@ return (_ctx, _cache) => {
6451
6408
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((selectedPermissions).value = $event)),
6452
6409
  value: permission,
6453
6410
  type: "checkbox"
6454
- }, null, 8 /* PROPS */, _hoisted_15), [
6411
+ }, null, 8 /* PROPS */, _hoisted_13), [
6455
6412
  [vue.vModelCheckbox, selectedPermissions.value]
6456
6413
  ]),
6457
6414
  vue.createTextVNode(" " + vue.toDisplayString(getLabel(permission)), 1 /* TEXT */)
@@ -6461,18 +6418,18 @@ return (_ctx, _cache) => {
6461
6418
  }), 256 /* UNKEYED_FRAGMENT */))
6462
6419
  ]),
6463
6420
  (permissionsChanged.value)
6464
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
6465
- vue.createElementVNode("div", _hoisted_17, [
6421
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
6422
+ vue.createElementVNode("div", _hoisted_15, [
6466
6423
  vue.createVNode(script$i, {
6467
6424
  onSuccess: permissionsUpdated,
6468
6425
  url: `sh-departments/department/permissions/${vue.unref(departmentId)}/${selectedModule.value}`,
6469
6426
  data: {permissions: selectedPermissions.value},
6470
6427
  class: "btn btn-primary d-block"
6471
6428
  }, {
6472
- default: vue.withCtx(() => [
6473
- _hoisted_18,
6429
+ default: vue.withCtx(() => _cache[2] || (_cache[2] = [
6430
+ vue.createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */),
6474
6431
  vue.createTextVNode(" Save")
6475
- ]),
6432
+ ])),
6476
6433
  _: 1 /* STABLE */
6477
6434
  }, 8 /* PROPS */, ["url", "data"])
6478
6435
  ])
@@ -6811,19 +6768,14 @@ script$4.__file = "src/lib/components/ShCardLayout.vue";
6811
6768
 
6812
6769
  const _hoisted_1$3 = { class: "container" };
6813
6770
  const _hoisted_2$3 = { class: "row" };
6814
- const _hoisted_3$3 = {
6771
+ const _hoisted_3$2 = {
6815
6772
  key: 0,
6816
6773
  class: "col-md-6"
6817
6774
  };
6818
- const _hoisted_4$3 = /*#__PURE__*/vue.createElementVNode("h5", { class: "card-title" }, "Details", -1 /* HOISTED */);
6819
- const _hoisted_5$2 = { class: "table" };
6820
- const _hoisted_6$2 = { class: "card-footer" };
6821
- const _hoisted_7$1 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-pen" }, null, -1 /* HOISTED */);
6822
- const _hoisted_8$1 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-key" }, null, -1 /* HOISTED */);
6823
- const _hoisted_9$1 = { class: "col-md-6" };
6824
- const _hoisted_10$1 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-pen" }, null, -1 /* HOISTED */);
6825
- const _hoisted_11$1 = /*#__PURE__*/vue.createElementVNode("h5", { class: "card-title" }, "Profile Picture", -1 /* HOISTED */);
6826
- const _hoisted_12$1 = ["src"];
6775
+ const _hoisted_4$2 = { class: "table" };
6776
+ const _hoisted_5$1 = { class: "card-footer" };
6777
+ const _hoisted_6$1 = { class: "col-md-6" };
6778
+ const _hoisted_7$1 = ["src"];
6827
6779
 
6828
6780
  var script$3 = {
6829
6781
  __name: 'ShUserProfile',
@@ -6860,11 +6812,11 @@ return (_ctx, _cache) => {
6860
6812
  vue.createElementVNode("div", _hoisted_1$3, [
6861
6813
  vue.createElementVNode("div", _hoisted_2$3, [
6862
6814
  (vue.unref(user))
6863
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, [
6815
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [
6864
6816
  vue.createVNode(script$4, null, {
6865
6817
  default: vue.withCtx(() => [
6866
- _hoisted_4$3,
6867
- vue.createElementVNode("table", _hoisted_5$2, [
6818
+ _cache[5] || (_cache[5] = vue.createElementVNode("h5", { class: "card-title" }, "Details", -1 /* HOISTED */)),
6819
+ vue.createElementVNode("table", _hoisted_4$2, [
6868
6820
  vue.createElementVNode("tbody", null, [
6869
6821
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(UserdetailsColumns, (column) => {
6870
6822
  return vue.createElementVNode("tr", {
@@ -6876,7 +6828,7 @@ return (_ctx, _cache) => {
6876
6828
  }), 64 /* STABLE_FRAGMENT */))
6877
6829
  ])
6878
6830
  ]),
6879
- vue.createElementVNode("div", _hoisted_6$2, [
6831
+ vue.createElementVNode("div", _hoisted_5$1, [
6880
6832
  (vue.unref(user))
6881
6833
  ? (vue.openBlock(), vue.createBlock(script$n, {
6882
6834
  key: 0,
@@ -6887,10 +6839,10 @@ return (_ctx, _cache) => {
6887
6839
  onSuccess: _cache[0] || (_cache[0] = $event => (detailsUpdated('details'))),
6888
6840
  fields: ['name','email','phone']
6889
6841
  }, {
6890
- default: vue.withCtx(() => [
6891
- _hoisted_7$1,
6842
+ default: vue.withCtx(() => _cache[3] || (_cache[3] = [
6843
+ vue.createElementVNode("i", { class: "bi-pen" }, null, -1 /* HOISTED */),
6892
6844
  vue.createTextVNode(" Edit Details")
6893
- ]),
6845
+ ])),
6894
6846
  _: 1 /* STABLE */
6895
6847
  }, 8 /* PROPS */, ["current-data"]))
6896
6848
  : vue.createCommentVNode("v-if", true),
@@ -6916,10 +6868,10 @@ return (_ctx, _cache) => {
6916
6868
  }
6917
6869
  ]
6918
6870
  }, {
6919
- default: vue.withCtx(() => [
6920
- _hoisted_8$1,
6871
+ default: vue.withCtx(() => _cache[4] || (_cache[4] = [
6872
+ vue.createElementVNode("i", { class: "bi-key" }, null, -1 /* HOISTED */),
6921
6873
  vue.createTextVNode(" Change Password")
6922
- ]),
6874
+ ])),
6923
6875
  _: 1 /* STABLE */
6924
6876
  }))
6925
6877
  : vue.createCommentVNode("v-if", true)
@@ -6929,7 +6881,7 @@ return (_ctx, _cache) => {
6929
6881
  })
6930
6882
  ]))
6931
6883
  : vue.createCommentVNode("v-if", true),
6932
- vue.createElementVNode("div", _hoisted_9$1, [
6884
+ vue.createElementVNode("div", _hoisted_6$1, [
6933
6885
  vue.createVNode(script$4, null, {
6934
6886
  default: vue.withCtx(() => [
6935
6887
  vue.createVNode(script$n, {
@@ -6943,19 +6895,19 @@ return (_ctx, _cache) => {
6943
6895
  type: 'file',
6944
6896
  }]
6945
6897
  }, {
6946
- default: vue.withCtx(() => [
6947
- _hoisted_10$1
6948
- ]),
6898
+ default: vue.withCtx(() => _cache[6] || (_cache[6] = [
6899
+ vue.createElementVNode("i", { class: "bi-pen" }, null, -1 /* HOISTED */)
6900
+ ])),
6949
6901
  _: 1 /* STABLE */
6950
6902
  }),
6951
6903
  vue.createElementVNode("div", null, [
6952
- _hoisted_11$1,
6904
+ _cache[7] || (_cache[7] = vue.createElementVNode("h5", { class: "card-title" }, "Profile Picture", -1 /* HOISTED */)),
6953
6905
  vue.createElementVNode("img", {
6954
6906
  src: showProfilePicture(vue.unref(user)?.profile_picture),
6955
6907
  class: "img-fluid",
6956
6908
  alt: "profie-picture",
6957
6909
  style: {"width":"100%","height":"330px"}
6958
- }, null, 8 /* PROPS */, _hoisted_12$1)
6910
+ }, null, 8 /* PROPS */, _hoisted_7$1)
6959
6911
  ])
6960
6912
  ]),
6961
6913
  _: 1 /* STABLE */
@@ -6973,10 +6925,8 @@ return (_ctx, _cache) => {
6973
6925
 
6974
6926
  script$3.__file = "src/lib/components/core/auth/ShUserProfile.vue";
6975
6927
 
6976
- const _hoisted_1$2 = /*#__PURE__*/vue.createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
6977
- const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
6978
- const _hoisted_3$2 = { class: "card-body" };
6979
- const _hoisted_4$2 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
6928
+ const _hoisted_1$2 = { class: "card sh-departments-card shadow" };
6929
+ const _hoisted_2$2 = { class: "card-body" };
6980
6930
 
6981
6931
 
6982
6932
  var script$2 = {
@@ -7001,19 +6951,19 @@ department.value = dept;
7001
6951
 
7002
6952
  return (_ctx, _cache) => {
7003
6953
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
7004
- _hoisted_1$2,
7005
- vue.createElementVNode("div", _hoisted_2$2, [
7006
- vue.createElementVNode("div", _hoisted_3$2, [
6954
+ _cache[2] || (_cache[2] = vue.createElementVNode("h5", null, "Departments", -1 /* HOISTED */)),
6955
+ vue.createElementVNode("div", _hoisted_1$2, [
6956
+ vue.createElementVNode("div", _hoisted_2$2, [
7007
6957
  vue.createElementVNode("a", {
7008
6958
  onClick: _cache[0] || (_cache[0] = $event => (editDepartment(null))),
7009
6959
  "data-bs-toggle": "modal",
7010
6960
  ref: "addDeptBtn",
7011
6961
  href: "#sh_department_modal",
7012
6962
  class: "btn btn-info btn-sm"
7013
- }, [
7014
- _hoisted_4$2,
6963
+ }, _cache[1] || (_cache[1] = [
6964
+ vue.createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */),
7015
6965
  vue.createTextVNode(" ADD DEPARTMENT")
7016
- ], 512 /* NEED_PATCH */),
6966
+ ]), 512 /* NEED_PATCH */),
7017
6967
  vue.createVNode(script$d, {
7018
6968
  reload: vue.unref(reload),
7019
6969
  headers: ['id','name','description', 'created_at'],
@@ -7064,17 +7014,8 @@ const _hoisted_1$1 = {
7064
7014
  class: "card sh-department-view shadow"
7065
7015
  };
7066
7016
  const _hoisted_2$1 = { class: "card-body" };
7067
- const _hoisted_3$1 = /*#__PURE__*/vue.createElementVNode("a", {
7068
- href: "#addModule",
7069
- class: "btn btn-info btn-sm",
7070
- "data-bs-toggle": "modal"
7071
- }, [
7072
- /*#__PURE__*/vue.createElementVNode("i", { class: "bi-plus" }),
7073
- /*#__PURE__*/vue.createTextVNode(" ADD Module")
7074
- ], -1 /* HOISTED */);
7075
- const _hoisted_4$1 = { class: "text-primary text-capitalize" };
7076
- const _hoisted_5$1 = ["value"];
7077
- const _hoisted_6$1 = /*#__PURE__*/vue.createElementVNode("i", { class: "fa fa-save" }, null, -1 /* HOISTED */);
7017
+ const _hoisted_3$1 = { class: "text-primary text-capitalize" };
7018
+ const _hoisted_4$1 = ["value"];
7078
7019
 
7079
7020
  var script$1 = {
7080
7021
  __name: 'Department',
@@ -7172,7 +7113,14 @@ return (_ctx, _cache) => {
7172
7113
  return (vue.unref(department))
7173
7114
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
7174
7115
  vue.createElementVNode("div", _hoisted_2$1, [
7175
- _hoisted_3$1,
7116
+ _cache[2] || (_cache[2] = vue.createElementVNode("a", {
7117
+ href: "#addModule",
7118
+ class: "btn btn-info btn-sm",
7119
+ "data-bs-toggle": "modal"
7120
+ }, [
7121
+ vue.createElementVNode("i", { class: "bi-plus" }),
7122
+ vue.createTextVNode(" ADD Module")
7123
+ ], -1 /* HOISTED */)),
7176
7124
  vue.createElementVNode("h5", null, "Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */),
7177
7125
  vue.createVNode(script$d, {
7178
7126
  actions: {
@@ -7229,7 +7177,7 @@ return (_ctx, _cache) => {
7229
7177
  default: vue.withCtx(() => [
7230
7178
  (vue.unref(getModule))
7231
7179
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
7232
- vue.createElementVNode("h5", _hoisted_4$1, "Permissions for " + vue.toDisplayString(vue.unref(getModule).module), 1 /* TEXT */),
7180
+ vue.createElementVNode("h5", _hoisted_3$1, "Permissions for " + vue.toDisplayString(vue.unref(getModule).module), 1 /* TEXT */),
7233
7181
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(modulePermissions), (permission) => {
7234
7182
  return (vue.openBlock(), vue.createElementBlock("div", {
7235
7183
  key: permission,
@@ -7242,7 +7190,7 @@ return (_ctx, _cache) => {
7242
7190
  type: "checkbox",
7243
7191
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(selectedPermissions) ? (selectedPermissions).value = $event : selectedPermissions = $event)),
7244
7192
  value: permission
7245
- }, null, 8 /* PROPS */, _hoisted_5$1), [
7193
+ }, null, 8 /* PROPS */, _hoisted_4$1), [
7246
7194
  [vue.vModelCheckbox, vue.unref(selectedPermissions)]
7247
7195
  ]),
7248
7196
  vue.createTextVNode(" " + vue.toDisplayString(getPermissionLabel(permission)), 1 /* TEXT */)
@@ -7252,10 +7200,10 @@ return (_ctx, _cache) => {
7252
7200
  vue.createElementVNode("button", {
7253
7201
  onClick: submitPermissions,
7254
7202
  class: "btn btn-info"
7255
- }, [
7256
- _hoisted_6$1,
7203
+ }, _cache[1] || (_cache[1] = [
7204
+ vue.createElementVNode("i", { class: "fa fa-save" }, null, -1 /* HOISTED */),
7257
7205
  vue.createTextVNode(" Submit")
7258
- ])
7206
+ ]))
7259
7207
  ], 64 /* STABLE_FRAGMENT */))
7260
7208
  : vue.createCommentVNode("v-if", true)
7261
7209
  ]),
@@ -7271,7 +7219,6 @@ return (_ctx, _cache) => {
7271
7219
 
7272
7220
  script$1.__file = "src/lib/components/core/Departments/department/Department.vue";
7273
7221
 
7274
- const _withScopeId = n => (vue.pushScopeId("data-v-2911509a"),n=n(),vue.popScopeId(),n);
7275
7222
  const _hoisted_1 = {
7276
7223
  key: 0,
7277
7224
  class: "alert alert-info"
@@ -7282,30 +7229,28 @@ const _hoisted_2 = {
7282
7229
  style: {"min-width":"400px"}
7283
7230
  };
7284
7231
  const _hoisted_3 = { class: "sh-auth-footer" };
7285
- const _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/vue.createElementVNode("i", { class: "bi bi-arrow-left" }, null, -1 /* HOISTED */));
7286
- const _hoisted_5 = {
7232
+ const _hoisted_4 = {
7287
7233
  key: 1,
7288
7234
  class: "sh-login-section"
7289
7235
  };
7290
- const _hoisted_6 = {
7236
+ const _hoisted_5 = {
7291
7237
  key: 0,
7292
7238
  class: "sh-login-title"
7293
7239
  };
7294
- const _hoisted_7 = { class: "sh-auth-footer" };
7295
- const _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/vue.createElementVNode("strong", { class: "bi-dot" }, null, -1 /* HOISTED */));
7296
- const _hoisted_9 = {
7240
+ const _hoisted_6 = { class: "sh-auth-footer" };
7241
+ const _hoisted_7 = {
7297
7242
  key: 2,
7298
7243
  class: "sh-register-section"
7299
7244
  };
7300
- const _hoisted_10 = {
7245
+ const _hoisted_8 = {
7301
7246
  key: 0,
7302
7247
  class: "sh-register-title"
7303
7248
  };
7304
- const _hoisted_11 = {
7249
+ const _hoisted_9 = {
7305
7250
  key: 1,
7306
7251
  class: "sh-register-link"
7307
7252
  };
7308
- const _hoisted_12 = { class: "sh-auth-footer" };
7253
+ const _hoisted_10 = { class: "sh-auth-footer" };
7309
7254
 
7310
7255
  var script = {
7311
7256
  __name: 'ShAuth',
@@ -7351,7 +7296,7 @@ const forgotSuccessful = ()=>{
7351
7296
  return (_ctx, _cache) => {
7352
7297
  return (vue.unref(user))
7353
7298
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
7354
- vue.createTextVNode("You are signed is as "),
7299
+ _cache[4] || (_cache[4] = vue.createTextVNode("You are signed is as ")),
7355
7300
  vue.createElementVNode("strong", null, vue.toDisplayString(vue.unref(user).name), 1 /* TEXT */)
7356
7301
  ]))
7357
7302
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -7368,17 +7313,17 @@ return (_ctx, _cache) => {
7368
7313
  vue.createElementVNode("strong", {
7369
7314
  onClick: _cache[0] || (_cache[0] = $event => (goToSection('login'))),
7370
7315
  class: "sh-register-link text-primary"
7371
- }, [
7372
- _hoisted_4,
7316
+ }, _cache[5] || (_cache[5] = [
7317
+ vue.createElementVNode("i", { class: "bi bi-arrow-left" }, null, -1 /* HOISTED */),
7373
7318
  vue.createTextVNode(" Back to Login ")
7374
- ])
7319
+ ]))
7375
7320
  ])
7376
7321
  ]))
7377
7322
  : vue.createCommentVNode("v-if", true),
7378
7323
  (section.value === 'login')
7379
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
7324
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
7380
7325
  (vue.unref(loginTitle))
7381
- ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_6, vue.toDisplayString(vue.unref(loginTitle)), 1 /* TEXT */))
7326
+ ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_5, vue.toDisplayString(vue.unref(loginTitle)), 1 /* TEXT */))
7382
7327
  : vue.createCommentVNode("v-if", true),
7383
7328
  vue.createVNode(script$y, {
7384
7329
  class: "sh-login-form",
@@ -7387,12 +7332,12 @@ return (_ctx, _cache) => {
7387
7332
  action: vue.unref(loginEndpoint),
7388
7333
  "success-callback": loginSuccessful
7389
7334
  }, null, 8 /* PROPS */, ["action"]),
7390
- vue.createElementVNode("div", _hoisted_7, [
7335
+ vue.createElementVNode("div", _hoisted_6, [
7391
7336
  vue.createElementVNode("strong", {
7392
7337
  class: "sh-forgot-link text-primary",
7393
7338
  onClick: _cache[1] || (_cache[1] = $event => (goToSection('forgot')))
7394
7339
  }, "Forgotten password?"),
7395
- _hoisted_8,
7340
+ _cache[6] || (_cache[6] = vue.createElementVNode("strong", { class: "bi-dot" }, null, -1 /* HOISTED */)),
7396
7341
  vue.createElementVNode("strong", {
7397
7342
  onClick: _cache[2] || (_cache[2] = $event => (goToSection('register'))),
7398
7343
  class: "sh-register-link text-primary"
@@ -7401,12 +7346,12 @@ return (_ctx, _cache) => {
7401
7346
  ]))
7402
7347
  : vue.createCommentVNode("v-if", true),
7403
7348
  (section.value === 'register')
7404
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
7349
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
7405
7350
  (vue.unref(registerTitle))
7406
- ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_10, vue.toDisplayString(vue.unref(registerTitle)), 1 /* TEXT */))
7351
+ ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_8, vue.toDisplayString(vue.unref(registerTitle)), 1 /* TEXT */))
7407
7352
  : vue.createCommentVNode("v-if", true),
7408
7353
  (vue.unref(registerSubTitle))
7409
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
7354
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
7410
7355
  : vue.createCommentVNode("v-if", true),
7411
7356
  vue.createVNode(script$y, {
7412
7357
  class: "sh-login-form",
@@ -7415,7 +7360,7 @@ return (_ctx, _cache) => {
7415
7360
  action: vue.unref(registerEndpoint),
7416
7361
  "success-callback": loginSuccessful
7417
7362
  }, null, 8 /* PROPS */, ["fields", "action"]),
7418
- vue.createElementVNode("div", _hoisted_12, [
7363
+ vue.createElementVNode("div", _hoisted_10, [
7419
7364
  vue.createElementVNode("strong", {
7420
7365
  onClick: _cache[3] || (_cache[3] = $event => (goToSection('login'))),
7421
7366
  class: "sh-register-link text-primary"