@iankibetsh/shframework 5.2.9 → 5.3.2

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.
package/dist/library.js CHANGED
@@ -104,7 +104,6 @@ function setTabCounts(url){
104
104
  }
105
105
 
106
106
  function formatHttpCatchError(reason){
107
- console.log(reason);
108
107
  let error = '';
109
108
  if (typeof reason !== 'undefined') {
110
109
  if (typeof reason.response !== 'undefined') {
@@ -135,14 +134,12 @@ function formatHttpCatchError(reason){
135
134
 
136
135
  function getMenuCount(url){
137
136
  shApis.doGet(url).then(res => {
138
- console.log(res);
139
137
  });
140
138
  }
141
139
 
142
140
  const signOutUser = () => {
143
141
  const loginUrl = getShConfig('loginUrl', 'auth/login');
144
142
  const logoutApiEndPoint = getShConfig('logoutApiEndpoint', 'auth/logout');
145
- console.log(loginUrl, logoutApiEndPoint);
146
143
  shApis.doPost(logoutApiEndPoint).then(res => {
147
144
  shStorage.removeItem('access_token');
148
145
  shStorage.removeItem('user');
@@ -2105,7 +2102,7 @@ var script$A = {
2105
2102
  }
2106
2103
  };
2107
2104
 
2108
- const _hoisted_1$s = {
2105
+ const _hoisted_1$q = {
2109
2106
  class: "sh-phone mb-3",
2110
2107
  style: {"display":"flex"}
2111
2108
  };
@@ -2113,15 +2110,15 @@ const _hoisted_2$i = {
2113
2110
  key: 0,
2114
2111
  style: {"display":"contents"}
2115
2112
  };
2116
- const _hoisted_3$g = ["src"];
2117
- const _hoisted_4$g = ["value"];
2118
- const _hoisted_5$e = ["disabled"];
2113
+ const _hoisted_3$f = ["src"];
2114
+ const _hoisted_4$e = ["value"];
2115
+ const _hoisted_5$c = ["disabled"];
2119
2116
 
2120
2117
  function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2121
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
2118
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
2122
2119
  ($data.selectedCountry)
2123
2120
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, [
2124
- vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$g),
2121
+ vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$f),
2125
2122
  vue.createTextVNode(" " + vue.toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
2126
2123
  ]))
2127
2124
  : vue.createCommentVNode("v-if", true),
@@ -2134,7 +2131,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2134
2131
  return (vue.openBlock(), vue.createElementBlock("option", {
2135
2132
  value: country,
2136
2133
  key: country.dialCode
2137
- }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$g))
2134
+ }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$e))
2138
2135
  }), 128 /* KEYED_FRAGMENT */))
2139
2136
  ], 544 /* NEED_HYDRATION, NEED_PATCH */), [
2140
2137
  [vue.vModelSelect, $data.selectedCountry]
@@ -2147,7 +2144,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2147
2144
  onInput: _cache[2] || (_cache[2] = (...args) => ($options.updateValue && $options.updateValue(...args))),
2148
2145
  placeholder: "712345678",
2149
2146
  "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (($data.input) = $event))
2150
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$e), [
2147
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$c), [
2151
2148
  [vue.vModelText, $data.input]
2152
2149
  ])
2153
2150
  ]))
@@ -2156,22 +2153,22 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2156
2153
  script$A.render = render$4;
2157
2154
  script$A.__file = "src/lib/components/form-components/PhoneInput.vue";
2158
2155
 
2159
- const _hoisted_1$r = {
2156
+ const _hoisted_1$p = {
2160
2157
  key: 0,
2161
2158
  class: "dropdown sh-suggest"
2162
2159
  };
2163
2160
  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 = {
2161
+ const _hoisted_3$e = { class: "sh-suggestions-holder" };
2162
+ const _hoisted_4$d = { class: "badge bg-secondary m-1 sh-selected-item" };
2163
+ const _hoisted_5$b = ["onClick"];
2164
+ const _hoisted_6$9 = ["id"];
2165
+ const _hoisted_7$8 = ["id", "aria-labelledby"];
2166
+ const _hoisted_8$7 = ["onClick"];
2167
+ const _hoisted_9$7 = {
2171
2168
  key: 1,
2172
2169
  class: "dropdown-item sh-suggest-no-results"
2173
2170
  };
2174
- const _hoisted_10$8 = {
2171
+ const _hoisted_10$5 = {
2175
2172
  key: 2,
2176
2173
  class: "dropdown-item sh-suggest-no-input"
2177
2174
  };
@@ -2322,23 +2319,23 @@ vue.watch(()=>props.modelValue, (newValue)=>{
2322
2319
 
2323
2320
  return (_ctx, _cache) => {
2324
2321
  return (vue.unref(id))
2325
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
2322
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
2326
2323
  vue.createElementVNode("div", {
2327
2324
  id: vue.unref(id),
2328
2325
  "data-bs-toggle": "dropdown",
2329
2326
  class: "p-0 d-flex sh-suggest-control dropdown-toggle",
2330
2327
  "aria-expanded": "false"
2331
2328
  }, [
2332
- vue.createElementVNode("div", _hoisted_3$f, [
2329
+ vue.createElementVNode("div", _hoisted_3$e, [
2333
2330
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedSuggestions), (sgt) => {
2334
- return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_4$f, [
2331
+ return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_4$d, [
2335
2332
  vue.createTextVNode(vue.toDisplayString(sgt.name) + " ", 1 /* TEXT */),
2336
2333
  vue.createElementVNode("button", {
2337
2334
  onClick: $event => (removeSuggestion(sgt.id)),
2338
2335
  type: "button",
2339
2336
  class: "btn-close border-start border-1 ms-1",
2340
2337
  "aria-label": "Close"
2341
- }, null, 8 /* PROPS */, _hoisted_5$d)
2338
+ }, null, 8 /* PROPS */, _hoisted_5$b)
2342
2339
  ]))
2343
2340
  }), 256 /* UNKEYED_FRAGMENT */))
2344
2341
  ]),
@@ -2348,7 +2345,7 @@ return (_ctx, _cache) => {
2348
2345
  onInput: filterData,
2349
2346
  onChange: filterData,
2350
2347
  class: "flex-fill h-100 sh-suggestion-input"
2351
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_6$a)
2348
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_6$9)
2352
2349
  ], 8 /* PROPS */, _hoisted_2$h),
2353
2350
  vue.createElementVNode("ul", {
2354
2351
  class: vue.normalizeClass([(!vue.unref(suggestions) || vue.unref(suggestions).length === 0) ? 'no-sh-suggestions':'sh-found-suggestions', "dropdown-menu w-100"]),
@@ -2376,14 +2373,14 @@ return (_ctx, _cache) => {
2376
2373
  class: vue.normalizeClass(["dropdown-item", vue.unref(selectedSuggestions).includes(suggestion) ? 'active':'']),
2377
2374
  href: "#"
2378
2375
  }, vue.toDisplayString(suggestion.name ?? suggestion.text), 3 /* TEXT, CLASS */))
2379
- ], 8 /* PROPS */, _hoisted_8$8))
2376
+ ], 8 /* PROPS */, _hoisted_8$7))
2380
2377
  : vue.createCommentVNode("v-if", true)
2381
2378
  ], 64 /* STABLE_FRAGMENT */))
2382
2379
  }), 128 /* KEYED_FRAGMENT */))
2383
2380
  : (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)
2381
+ ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$7, " No results found "))
2382
+ : (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$5, " Type to search... "))
2383
+ ], 10 /* CLASS, PROPS */, _hoisted_7$8)
2387
2384
  ]))
2388
2385
  : vue.createCommentVNode("v-if", true)
2389
2386
  }
@@ -2732,7 +2729,7 @@ var script$y = {
2732
2729
  }
2733
2730
  },
2734
2731
  created: function () {
2735
- console.log('created');
2732
+ // console.log('created')
2736
2733
  if (this.labels) {
2737
2734
  this.allLabels = this.labels;
2738
2735
  }
@@ -2748,83 +2745,59 @@ var script$y = {
2748
2745
  }
2749
2746
  };
2750
2747
 
2751
- const _hoisted_1$q = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
2752
- const _hoisted_2$g = {
2748
+ const _hoisted_1$o = {
2753
2749
  ref: "ShAutoForm",
2754
2750
  class: "sh-form"
2755
2751
  };
2756
- const _hoisted_3$e = {
2752
+ const _hoisted_2$g = {
2757
2753
  key: 0,
2758
2754
  class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
2759
2755
  role: "alert"
2760
2756
  };
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 = {
2757
+ const _hoisted_3$d = { key: 0 };
2758
+ const _hoisted_4$c = { key: 1 };
2759
+ const _hoisted_5$a = { class: "row" };
2760
+ const _hoisted_6$8 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2761
+ const _hoisted_7$7 = { class: "col-md-12" };
2762
+ const _hoisted_8$6 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2763
+ const _hoisted_9$6 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2764
+ const _hoisted_10$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2765
+ const _hoisted_11$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2766
+ const _hoisted_12$3 = ["data-cy", "name", "onFocus", "onUpdate:modelValue"];
2767
+ const _hoisted_13$3 = ["disabled", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2768
+ const _hoisted_14$3 = ["name", "onFocus", "onUpdate:modelValue"];
2769
+ const _hoisted_15$3 = ["name", "onFocus", "onUpdate:modelValue"];
2770
+ const _hoisted_16$1 = ["value"];
2771
+ const _hoisted_17$1 = {
2777
2772
  key: 11,
2778
2773
  class: "invalid-feedback"
2779
2774
  };
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 = {
2775
+ const _hoisted_18$1 = { class: "form-check me-1" };
2776
+ const _hoisted_19$1 = ["value", "disabled", "checked"];
2777
+ const _hoisted_20$1 = { class: "form-check-label" };
2778
+ const _hoisted_21$1 = { class: "form-check me-1" };
2779
+ const _hoisted_22$1 = ["name", "value"];
2780
+ const _hoisted_23$1 = { class: "form-check-label" };
2781
+ const _hoisted_24$1 = {
2787
2782
  key: 1,
2788
2783
  class: "row"
2789
2784
  };
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
2785
 
2813
2786
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2814
2787
  const _component_phone_input = vue.resolveComponent("phone-input");
2815
2788
  const _component_ShSuggest = vue.resolveComponent("ShSuggest");
2816
2789
 
2817
2790
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2818
- _hoisted_1$q,
2819
- vue.createElementVNode("form", _hoisted_2$g, [
2791
+ _cache[5] || (_cache[5] = vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */)),
2792
+ vue.createElementVNode("form", _hoisted_1$o, [
2820
2793
  vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
2821
2794
  vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
2822
2795
  (_ctx.form_status == 3)
2823
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
2824
- _hoisted_4$e,
2796
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$g, [
2797
+ _cache[2] || (_cache[2] = vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */)),
2825
2798
  (_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")),
2799
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$d, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
2800
+ : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$c, "Unexpected Error Occurred")),
2828
2801
  vue.createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
2829
2802
  ]))
2830
2803
  : vue.createCommentVNode("v-if", true),
@@ -2834,14 +2807,14 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2834
2807
  }, null, 512 /* NEED_PATCH */), [
2835
2808
  [vue.vModelText, _ctx.form_elements['id']]
2836
2809
  ]),
2837
- vue.createElementVNode("div", _hoisted_7$8, [
2810
+ vue.createElementVNode("div", _hoisted_5$a, [
2838
2811
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.fields, (field) => {
2839
2812
  return (vue.openBlock(), vue.createElementBlock("div", {
2840
2813
  class: vue.normalizeClass(["form-group", 'col-md-' + $options.getColumns()]),
2841
2814
  key: field
2842
2815
  }, [
2843
- vue.createElementVNode("label", _hoisted_8$7, vue.toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2844
- vue.createElementVNode("div", _hoisted_9$7, [
2816
+ vue.createElementVNode("label", _hoisted_6$8, vue.toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2817
+ vue.createElementVNode("div", _hoisted_7$7, [
2845
2818
  ($options.getFieldType(field) === 'component')
2846
2819
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.customComponent[field]), {
2847
2820
  key: 0,
@@ -2866,7 +2839,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2866
2839
  ref: 'file_'+field,
2867
2840
  onChange: $event => ($options.handleFileUpload(field)),
2868
2841
  type: "file"
2869
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$7))
2842
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_8$6))
2870
2843
  : vue.createCommentVNode("v-if", true),
2871
2844
  ($options.getFieldType(field) === 'numeric')
2872
2845
  ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
@@ -2878,7 +2851,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2878
2851
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2879
2852
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2880
2853
  type: "number"
2881
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11$7)), [
2854
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_9$6)), [
2882
2855
  [vue.vModelText, _ctx.form_elements[field]]
2883
2856
  ])
2884
2857
  : vue.createCommentVNode("v-if", true),
@@ -2892,7 +2865,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2892
2865
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2893
2866
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2894
2867
  type: "password"
2895
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_12$6)), [
2868
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$4)), [
2896
2869
  [vue.vModelText, _ctx.form_elements[field]]
2897
2870
  ])
2898
2871
  : vue.createCommentVNode("v-if", true),
@@ -2907,7 +2880,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2907
2880
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2908
2881
  type: "email",
2909
2882
  required: ""
2910
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_13$4)), [
2883
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11$3)), [
2911
2884
  [vue.vModelText, _ctx.form_elements[field]]
2912
2885
  ])
2913
2886
  : vue.createCommentVNode("v-if", true),
@@ -2920,7 +2893,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2920
2893
  onFocus: $event => ($options.removeErrors(field)),
2921
2894
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control active"]),
2922
2895
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2923
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14$4)), [
2896
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_12$3)), [
2924
2897
  [vue.vModelText, _ctx.form_elements[field]]
2925
2898
  ])
2926
2899
  : vue.createCommentVNode("v-if", true),
@@ -2959,7 +2932,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2959
2932
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2960
2933
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2961
2934
  type: "text"
2962
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15$3)), [
2935
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_13$3)), [
2963
2936
  [vue.vModelText, _ctx.form_elements[field]]
2964
2937
  ])
2965
2938
  : vue.createCommentVNode("v-if", true),
@@ -2970,7 +2943,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2970
2943
  onFocus: $event => ($options.removeErrors(field)),
2971
2944
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2972
2945
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event)
2973
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_16$3)), [
2946
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14$3)), [
2974
2947
  [vue.vModelText, _ctx.form_elements[field]]
2975
2948
  ])
2976
2949
  : vue.createCommentVNode("v-if", true),
@@ -2986,28 +2959,28 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2986
2959
  return (vue.openBlock(), vue.createElementBlock("option", {
2987
2960
  key: $props.fillSelects[field].value ? item[$props.fillSelects[field].value]:item.id,
2988
2961
  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))
2962
+ }, vue.toDisplayString($props.fillSelects[field].column ? item[$props.fillSelects[field].column]:item.name), 9 /* TEXT, PROPS */, _hoisted_16$1))
2990
2963
  }), 128 /* KEYED_FRAGMENT */))
2991
- ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_17$3)), [
2964
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15$3)), [
2992
2965
  [vue.vModelSelect, _ctx.form_elements[field]]
2993
2966
  ])
2994
2967
  : vue.createCommentVNode("v-if", true),
2995
2968
  (_ctx.form_errors[field] != null )
2996
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19$1, vue.toDisplayString(_ctx.form_errors[field][0]), 1 /* TEXT */))
2969
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, vue.toDisplayString(_ctx.form_errors[field][0]), 1 /* TEXT */))
2997
2970
  : vue.createCommentVNode("v-if", true),
2998
2971
  vue.createElementVNode("div", {
2999
2972
  class: vue.normalizeClass($props.checkBoxes?.display ? ($props.checkBoxes.display =='row' ? 'd-flex': '' ) : '' )
3000
2973
  }, [
3001
2974
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.checkboxData[field], (item) => {
3002
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$1, [
2975
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$1, [
3003
2976
  vue.createElementVNode("input", {
3004
2977
  class: "form-check-input",
3005
2978
  type: "checkbox",
3006
2979
  value: item.id,
3007
2980
  disabled: item.disabled,
3008
2981
  checked: item.checked
3009
- }, null, 8 /* PROPS */, _hoisted_21$1),
3010
- vue.createElementVNode("label", _hoisted_22$1, vue.toDisplayString(item.label), 1 /* TEXT */)
2982
+ }, null, 8 /* PROPS */, _hoisted_19$1),
2983
+ vue.createElementVNode("label", _hoisted_20$1, vue.toDisplayString(item.label), 1 /* TEXT */)
3011
2984
  ]))
3012
2985
  }), 256 /* UNKEYED_FRAGMENT */))
3013
2986
  ], 2 /* CLASS */),
@@ -3015,14 +2988,14 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3015
2988
  class: vue.normalizeClass($props.radioBoxes?.display ? ($props.radioBoxes.display =='row' ? 'd-flex': '' ) : '' )
3016
2989
  }, [
3017
2990
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.radioboxData[field], (item) => {
3018
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_23$1, [
2991
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_21$1, [
3019
2992
  vue.createElementVNode("input", {
3020
2993
  class: "form-check-input",
3021
2994
  type: "radio",
3022
2995
  name: field,
3023
2996
  value: item.value
3024
- }, null, 8 /* PROPS */, _hoisted_24$1),
3025
- vue.createElementVNode("label", _hoisted_25$1, vue.toDisplayString(item.label), 1 /* TEXT */)
2997
+ }, null, 8 /* PROPS */, _hoisted_22$1),
2998
+ vue.createElementVNode("label", _hoisted_23$1, vue.toDisplayString(item.label), 1 /* TEXT */)
3026
2999
  ]))
3027
3000
  }), 256 /* UNKEYED_FRAGMENT */))
3028
3001
  ], 2 /* CLASS */)
@@ -3031,7 +3004,21 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3031
3004
  }), 128 /* KEYED_FRAGMENT */))
3032
3005
  ]),
3033
3006
  ($props.hasTerms)
3034
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26$1, [..._hoisted_29$1]))
3007
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24$1, _cache[3] || (_cache[3] = [
3008
+ vue.createElementVNode("h5", null, "Confirm and Submit", -1 /* HOISTED */),
3009
+ vue.createElementVNode("p", null, [
3010
+ vue.createTextVNode("By clicking submit, you agree to our "),
3011
+ vue.createElementVNode("a", {
3012
+ target: "_blank",
3013
+ href: "/"
3014
+ }, "terms and conditions"),
3015
+ vue.createTextVNode(" and that you have read our "),
3016
+ vue.createElementVNode("a", {
3017
+ target: "_blank",
3018
+ href: "https://hauzisha.co.ke/privacy-policy"
3019
+ }, "privacy policy")
3020
+ ], -1 /* HOISTED */)
3021
+ ])))
3035
3022
  : vue.createCommentVNode("v-if", true),
3036
3023
  (_ctx.form_status == 1)
3037
3024
  ? (vue.openBlock(), vue.createElementBlock("button", {
@@ -3039,10 +3026,14 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3039
3026
  class: vue.normalizeClass(["btn btn-primary", $options.getSubmitBtnClass()]),
3040
3027
  type: "button",
3041
3028
  disabled: ""
3042
- }, [
3043
- _hoisted_30$1,
3029
+ }, _cache[4] || (_cache[4] = [
3030
+ vue.createElementVNode("span", {
3031
+ class: "spinner-border spinner-border-sm",
3032
+ role: "status",
3033
+ "aria-hidden": "true"
3034
+ }, null, -1 /* HOISTED */),
3044
3035
  vue.createTextVNode(" Processing... ")
3045
- ], 2 /* CLASS */))
3036
+ ]), 2 /* CLASS */))
3046
3037
  : (vue.openBlock(), vue.createElementBlock("button", {
3047
3038
  key: 3,
3048
3039
  "data-cy": "sh_form_submit",
@@ -3097,7 +3088,7 @@ return (_ctx, _cache) => {
3097
3088
 
3098
3089
  script$x.__file = "src/lib/components/form-components/EmailInput.vue";
3099
3090
 
3100
- const _hoisted_1$p = ["min", "max"];
3091
+ const _hoisted_1$n = ["min", "max"];
3101
3092
 
3102
3093
 
3103
3094
  var script$w = {
@@ -3132,7 +3123,7 @@ return (_ctx, _cache) => {
3132
3123
  onChange: modelValueUpdated,
3133
3124
  onKeydown: modelValueUpdated,
3134
3125
  onUpdated: modelValueUpdated
3135
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$p)), [
3126
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_1$n)), [
3136
3127
  [vue.vModelText, inputModel.value]
3137
3128
  ])
3138
3129
  }
@@ -3224,7 +3215,7 @@ return (_ctx, _cache) => {
3224
3215
 
3225
3216
  script$u.__file = "src/lib/components/form-components/TextAreaInput.vue";
3226
3217
 
3227
- const _hoisted_1$o = ["value"];
3218
+ const _hoisted_1$m = ["value"];
3228
3219
 
3229
3220
 
3230
3221
  var script$t = {
@@ -3242,7 +3233,6 @@ const modelValueUpdated = (e) => {
3242
3233
  emit('update:modelValue',inputModel);
3243
3234
  };
3244
3235
  vue.onMounted(()=>{
3245
- console.log(props);
3246
3236
  props.modelValue && (inputModel.value = props.modelValue);
3247
3237
  const options = props.data ?? props.options;
3248
3238
  if(options){
@@ -3282,7 +3272,7 @@ return (_ctx, _cache) => {
3282
3272
  return (vue.openBlock(), vue.createElementBlock("option", {
3283
3273
  key: option.id,
3284
3274
  value: option.id
3285
- }, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$o))
3275
+ }, vue.toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$m))
3286
3276
  }), 128 /* KEYED_FRAGMENT */))
3287
3277
  ], 544 /* NEED_HYDRATION, NEED_PATCH */)), [
3288
3278
  [vue.vModelSelect, inputModel.value]
@@ -3372,35 +3362,26 @@ return (_ctx, _cache) => {
3372
3362
 
3373
3363
  script$r.__file = "src/lib/components/form-components/DateInput.vue";
3374
3364
 
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 = {
3365
+ const _hoisted_1$l = ["name", "onUpdate:modelValue"];
3366
+ const _hoisted_2$f = ["innerHTML"];
3367
+ const _hoisted_3$c = {
3379
3368
  key: 0,
3380
3369
  class: "text-danger sh-required"
3381
3370
  };
3382
- const _hoisted_5$b = ["innerHTML"];
3383
- const _hoisted_6$8 = {
3371
+ const _hoisted_4$b = ["innerHTML"];
3372
+ const _hoisted_5$9 = {
3384
3373
  key: 2,
3385
3374
  class: "form-notch"
3386
3375
  };
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 = {
3376
+ const _hoisted_6$7 = ["innerHTML"];
3377
+ const _hoisted_7$6 = ["disabled"];
3378
+ const _hoisted_8$5 = {
3398
3379
  key: 0,
3399
3380
  class: "spinner-border spinner-border-sm",
3400
3381
  role: "status",
3401
3382
  "aria-hidden": "true"
3402
3383
  };
3403
- const _hoisted_14$3 = { key: 1 };
3384
+ const _hoisted_9$5 = { key: 1 };
3404
3385
 
3405
3386
 
3406
3387
  var script$q = {
@@ -3587,7 +3568,6 @@ const handlefailedRequest = reason => {
3587
3568
  };
3588
3569
  const submitBtnWidth = vue.ref(null);
3589
3570
  const setExistingData = (existingData) => {
3590
- console.log(existingData,props);
3591
3571
  if (existingData) {
3592
3572
  const newFields = formFields.value.map(fl => {
3593
3573
  if (existingData[fl.field]) {
@@ -3606,7 +3586,7 @@ vue.watch(() => props.currentData, (newData) => {
3606
3586
  setExistingData(newData);
3607
3587
  });
3608
3588
  vue.onMounted((ev) => {
3609
- console.log(props);
3589
+
3610
3590
  props.fields && props.fields.map(field => {
3611
3591
  let fieldObj = {};
3612
3592
  if (typeof field === 'object') {
@@ -3647,7 +3627,7 @@ vue.onMounted((ev) => {
3647
3627
 
3648
3628
  return (_ctx, _cache) => {
3649
3629
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3650
- _hoisted_1$n,
3630
+ _cache[2] || (_cache[2] = vue.createElementVNode("div", null, null, -1 /* HOISTED */)),
3651
3631
  vue.createElementVNode("form", {
3652
3632
  class: vue.normalizeClass([__props.formClass, "sh-auto-form"]),
3653
3633
  ref_key: "shAutoForm",
@@ -3665,7 +3645,7 @@ return (_ctx, _cache) => {
3665
3645
  type: "hidden",
3666
3646
  name: field.field,
3667
3647
  "onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
3668
- }, null, 8 /* PROPS */, _hoisted_2$f)), [
3648
+ }, null, 8 /* PROPS */, _hoisted_1$l)), [
3669
3649
  [vue.vModelText, formFields.value[index].value]
3670
3650
  ])
3671
3651
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -3677,9 +3657,9 @@ return (_ctx, _cache) => {
3677
3657
  vue.createElementVNode("span", {
3678
3658
  innerHTML: field.label,
3679
3659
  class: "sh-label"
3680
- }, null, 8 /* PROPS */, _hoisted_3$d),
3660
+ }, null, 8 /* PROPS */, _hoisted_2$f),
3681
3661
  (field.required)
3682
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$d, "*"))
3662
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$c, "*"))
3683
3663
  : vue.createCommentVNode("v-if", true)
3684
3664
  ], 2 /* CLASS */))
3685
3665
  : vue.createCommentVNode("v-if", true),
@@ -3695,17 +3675,21 @@ return (_ctx, _cache) => {
3695
3675
  key: 1,
3696
3676
  class: vue.normalizeClass(getElementClass('formLabel')),
3697
3677
  innerHTML: field.label
3698
- }, null, 10 /* CLASS, PROPS */, _hoisted_5$b))
3678
+ }, null, 10 /* CLASS, PROPS */, _hoisted_4$b))
3699
3679
  : vue.createCommentVNode("v-if", true),
3700
3680
  (vue.unref(isFloating))
3701
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$8, [..._hoisted_10$6]))
3681
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$9, [...(_cache[1] || (_cache[1] = [
3682
+ vue.createElementVNode("div", { class: "form-notch-leading" }, null, -1 /* HOISTED */),
3683
+ vue.createElementVNode("div", { class: "form-notch-middle" }, null, -1 /* HOISTED */),
3684
+ vue.createElementVNode("div", { class: "form-notch-trailing" }, null, -1 /* HOISTED */)
3685
+ ]))]))
3702
3686
  : vue.createCommentVNode("v-if", true),
3703
3687
  (field.helper)
3704
3688
  ? (vue.openBlock(), vue.createElementBlock("div", {
3705
3689
  key: 3,
3706
3690
  class: vue.normalizeClass(getElementClass('helperText')),
3707
3691
  innerHTML: field.helper
3708
- }, null, 10 /* CLASS, PROPS */, _hoisted_11$6))
3692
+ }, null, 10 /* CLASS, PROPS */, _hoisted_6$7))
3709
3693
  : vue.createCommentVNode("v-if", true),
3710
3694
  (validationErrors.value[field.field])
3711
3695
  ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -3728,12 +3712,12 @@ return (_ctx, _cache) => {
3728
3712
  class: vue.normalizeClass(getElementClass('actionBtn'))
3729
3713
  }, [
3730
3714
  (loading.value)
3731
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13$3))
3715
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$5))
3732
3716
  : vue.createCommentVNode("v-if", true),
3733
3717
  (!loading.value)
3734
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14$3, "Submit"))
3718
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9$5, "Submit"))
3735
3719
  : vue.createCommentVNode("v-if", true)
3736
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_12$5)
3720
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_7$6)
3737
3721
  ], 2 /* CLASS */)
3738
3722
  ], 34 /* CLASS, NEED_HYDRATION */)
3739
3723
  ], 64 /* STABLE_FRAGMENT */))
@@ -3744,18 +3728,12 @@ return (_ctx, _cache) => {
3744
3728
 
3745
3729
  script$q.__file = "src/lib/components/ShAutoForm.vue";
3746
3730
 
3747
- const _hoisted_1$m = ["id", "data-bs-backdrop"];
3731
+ const _hoisted_1$k = ["id", "data-bs-backdrop"];
3748
3732
  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" };
3733
+ const _hoisted_3$b = { class: "modal-header" };
3734
+ const _hoisted_4$a = { class: "modal-title flex-fill" };
3735
+ const _hoisted_5$8 = { class: "modal-body" };
3736
+ const _hoisted_6$6 = { class: "section" };
3759
3737
 
3760
3738
 
3761
3739
  var script$p = {
@@ -3817,18 +3795,23 @@ return (_ctx, _cache) => {
3817
3795
  class: vue.normalizeClass(["modal-dialog", modalClasses.value])
3818
3796
  }, [
3819
3797
  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
3798
+ vue.createElementVNode("div", _hoisted_3$b, [
3799
+ vue.createElementVNode("h3", _hoisted_4$a, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
3800
+ _cache[0] || (_cache[0] = vue.createElementVNode("button", {
3801
+ type: "button",
3802
+ class: "btn-close sh-modal-close",
3803
+ "data-bs-dismiss": "modal",
3804
+ "aria-label": "Close"
3805
+ }, null, -1 /* HOISTED */))
3823
3806
  ]),
3824
- vue.createElementVNode("div", _hoisted_6$7, [
3825
- vue.createElementVNode("div", _hoisted_7$6, [
3807
+ vue.createElementVNode("div", _hoisted_5$8, [
3808
+ vue.createElementVNode("div", _hoisted_6$6, [
3826
3809
  vue.renderSlot(_ctx.$slots, "default")
3827
3810
  ])
3828
3811
  ])
3829
3812
  ])
3830
3813
  ], 2 /* CLASS */)
3831
- ], 8 /* PROPS */, _hoisted_1$m))
3814
+ ], 8 /* PROPS */, _hoisted_1$k))
3832
3815
  }
3833
3816
  }
3834
3817
 
@@ -3836,10 +3819,9 @@ return (_ctx, _cache) => {
3836
3819
 
3837
3820
  script$p.__file = "src/lib/components/ShModal.vue";
3838
3821
 
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"];
3822
+ const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
3823
+ const _hoisted_2$d = ["id"];
3824
+ const _hoisted_3$a = ["aria-labelledby"];
3843
3825
 
3844
3826
  var script$o = {
3845
3827
  __name: 'ShDropDownForm',
@@ -3889,8 +3871,8 @@ const formError = (res)=>{
3889
3871
 
3890
3872
  return (_ctx, _cache) => {
3891
3873
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3892
- _hoisted_1$l,
3893
- vue.createElementVNode("div", _hoisted_2$d, [
3874
+ _cache[0] || (_cache[0] = vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */)),
3875
+ vue.createElementVNode("div", _hoisted_1$j, [
3894
3876
  vue.createElementVNode("a", {
3895
3877
  class: vue.normalizeClass(vue.unref(btnClass)),
3896
3878
  href: "#",
@@ -3901,7 +3883,7 @@ return (_ctx, _cache) => {
3901
3883
  "aria-expanded": "false"
3902
3884
  }, [
3903
3885
  vue.renderSlot(_ctx.$slots, "default")
3904
- ], 10 /* CLASS, PROPS */, _hoisted_3$b),
3886
+ ], 10 /* CLASS, PROPS */, _hoisted_2$d),
3905
3887
  vue.createElementVNode("div", {
3906
3888
  class: "dropdown-menu px-2 py-1",
3907
3889
  "aria-labelledby": _ctx.dropdownId
@@ -3913,7 +3895,7 @@ return (_ctx, _cache) => {
3913
3895
  onFormError: formError,
3914
3896
  key: JSON.stringify(__props.currentData ?? {})
3915
3897
  }, props), null, 16 /* FULL_PROPS */))
3916
- ], 8 /* PROPS */, _hoisted_4$b)
3898
+ ], 8 /* PROPS */, _hoisted_3$a)
3917
3899
  ])
3918
3900
  ], 64 /* STABLE_FRAGMENT */))
3919
3901
  }
@@ -3923,7 +3905,7 @@ return (_ctx, _cache) => {
3923
3905
 
3924
3906
  script$o.__file = "src/lib/components/ShDropDownForm.vue";
3925
3907
 
3926
- const _hoisted_1$k = ["href"];
3908
+ const _hoisted_1$i = ["href"];
3927
3909
 
3928
3910
  var script$n = {
3929
3911
  __name: 'ShModalForm',
@@ -3985,7 +3967,7 @@ return (_ctx, _cache) => {
3985
3967
  onClick: emitClick
3986
3968
  }, [
3987
3969
  vue.renderSlot(_ctx.$slots, "default")
3988
- ], 10 /* CLASS, PROPS */, _hoisted_1$k),
3970
+ ], 10 /* CLASS, PROPS */, _hoisted_1$i),
3989
3971
  vue.createVNode(script$p, {
3990
3972
  "modal-size": __props.modalSize,
3991
3973
  "modal-id": vue.unref(realModalId),
@@ -4010,7 +3992,7 @@ return (_ctx, _cache) => {
4010
3992
 
4011
3993
  script$n.__file = "src/lib/components/ShModalForm.vue";
4012
3994
 
4013
- const _hoisted_1$j = ["href"];
3995
+ const _hoisted_1$h = ["href"];
4014
3996
 
4015
3997
  var script$m = {
4016
3998
  __name: 'ShModalFormAuto',
@@ -4051,7 +4033,7 @@ return (_ctx, _cache) => {
4051
4033
  "data-bs-toggle": "modal"
4052
4034
  }, [
4053
4035
  vue.renderSlot(_ctx.$slots, "default")
4054
- ], 10 /* CLASS, PROPS */, _hoisted_1$j),
4036
+ ], 10 /* CLASS, PROPS */, _hoisted_1$h),
4055
4037
  vue.createVNode(script$p, {
4056
4038
  "modal-id": modalId,
4057
4039
  "modal-title": __props.modalTitle,
@@ -4070,20 +4052,20 @@ return (_ctx, _cache) => {
4070
4052
 
4071
4053
  script$m.__file = "src/lib/components/ShModalFormAuto.vue";
4072
4054
 
4073
- const _hoisted_1$i = ["data-bs-scroll", "id"];
4055
+ const _hoisted_1$g = ["data-bs-scroll", "id"];
4074
4056
  const _hoisted_2$c = { class: "offcanvas-header" };
4075
- const _hoisted_3$a = {
4057
+ const _hoisted_3$9 = {
4076
4058
  class: "offcanvas-title",
4077
4059
  id: "offcanvasScrollingLabel"
4078
4060
  };
4079
- const _hoisted_4$a = {
4061
+ const _hoisted_4$9 = {
4080
4062
  type: "button",
4081
4063
  ref: "closecanvas",
4082
4064
  class: "btn-close sh-offcanvas-close",
4083
4065
  "data-bs-dismiss": "offcanvas",
4084
4066
  "aria-label": "Close"
4085
4067
  };
4086
- const _hoisted_5$9 = { class: "offcanvas-body" };
4068
+ const _hoisted_5$7 = { class: "offcanvas-body" };
4087
4069
 
4088
4070
  var script$l = {
4089
4071
  __name: 'ShCanvas',
@@ -4132,13 +4114,13 @@ return (_ctx, _cache) => {
4132
4114
  "aria-labelledby": "offcanvasScrollingLabel"
4133
4115
  }, [
4134
4116
  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 */)
4117
+ vue.createElementVNode("h5", _hoisted_3$9, vue.toDisplayString(__props.canvasTitle), 1 /* TEXT */),
4118
+ vue.createElementVNode("button", _hoisted_4$9, null, 512 /* NEED_PATCH */)
4137
4119
  ]),
4138
- vue.createElementVNode("div", _hoisted_5$9, [
4120
+ vue.createElementVNode("div", _hoisted_5$7, [
4139
4121
  vue.renderSlot(_ctx.$slots, "default")
4140
4122
  ])
4141
- ], 10 /* CLASS, PROPS */, _hoisted_1$i))
4123
+ ], 10 /* CLASS, PROPS */, _hoisted_1$g))
4142
4124
  }
4143
4125
  }
4144
4126
 
@@ -4146,12 +4128,12 @@ return (_ctx, _cache) => {
4146
4128
 
4147
4129
  script$l.__file = "src/lib/components/ShCanvas.vue";
4148
4130
 
4149
- const _hoisted_1$h = { class: "callout callout-info" };
4131
+ const _hoisted_1$f = { class: "callout callout-info" };
4150
4132
 
4151
4133
  function render$2(_ctx, _cache) {
4152
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
4134
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
4153
4135
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
4154
- vue.createTextVNode(" No records found ")
4136
+ _cache[0] || (_cache[0] = vue.createTextVNode(" No records found "))
4155
4137
  ])
4156
4138
  ]))
4157
4139
  }
@@ -4259,13 +4241,6 @@ const useUserStore = pinia.defineStore('user-store', {
4259
4241
  }
4260
4242
  });
4261
4243
 
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
4244
  var script$j = {
4270
4245
  __name: 'ShConfirmAction',
4271
4246
  props: {
@@ -4342,7 +4317,11 @@ return (_ctx, _cache) => {
4342
4317
  }, [
4343
4318
  (processing.value)
4344
4319
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
4345
- _hoisted_1$g,
4320
+ _cache[0] || (_cache[0] = vue.createElementVNode("span", {
4321
+ class: "spinner-border spinner-border-sm me-1",
4322
+ role: "status",
4323
+ "aria-hidden": "true"
4324
+ }, null, -1 /* HOISTED */)),
4346
4325
  vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
4347
4326
  ], 64 /* STABLE_FRAGMENT */))
4348
4327
  : vue.createCommentVNode("v-if", true),
@@ -4357,12 +4336,6 @@ return (_ctx, _cache) => {
4357
4336
 
4358
4337
  script$j.__file = "src/lib/components/ShConfirmAction.vue";
4359
4338
 
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
4339
  var script$i = {
4367
4340
  __name: 'ShSilentAction',
4368
4341
  props: {
@@ -4441,7 +4414,11 @@ return (_ctx, _cache) => {
4441
4414
  }, [
4442
4415
  (processing.value)
4443
4416
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
4444
- _hoisted_1$f,
4417
+ _cache[0] || (_cache[0] = vue.createElementVNode("span", {
4418
+ class: "spinner-border spinner-border-sm me-1",
4419
+ role: "status",
4420
+ "aria-hidden": "true"
4421
+ }, null, -1 /* HOISTED */)),
4445
4422
  vue.createElementVNode("span", null, vue.toDisplayString(__props.loadingMessage), 1 /* TEXT */)
4446
4423
  ], 64 /* STABLE_FRAGMENT */))
4447
4424
  : vue.createCommentVNode("v-if", true),
@@ -4619,15 +4596,15 @@ const _hoisted_2$a = {
4619
4596
  "data-bs-toggle": "dropdown",
4620
4597
  "aria-expanded": "false"
4621
4598
  };
4622
- const _hoisted_3$9 = {
4599
+ const _hoisted_3$8 = {
4623
4600
  key: 1,
4624
4601
  class: "bi bi-three-dots"
4625
4602
  };
4626
- const _hoisted_4$9 = {
4603
+ const _hoisted_4$8 = {
4627
4604
  key: 2,
4628
4605
  class: "bi bi-three-dots-vertical"
4629
4606
  };
4630
- const _hoisted_5$8 = { class: "dropdown-menu" };
4607
+ const _hoisted_5$6 = { class: "dropdown-menu" };
4631
4608
 
4632
4609
 
4633
4610
  var script$g = {
@@ -4651,10 +4628,10 @@ return (_ctx, _cache) => {
4651
4628
  class: vue.normalizeClass(vue.unref(icon))
4652
4629
  }, null, 2 /* CLASS */))
4653
4630
  : (vue.unref(type) === 'dropdown-horizontal')
4654
- ? (vue.openBlock(), vue.createElementBlock("i", _hoisted_3$9))
4655
- : (vue.openBlock(), vue.createElementBlock("i", _hoisted_4$9))
4631
+ ? (vue.openBlock(), vue.createElementBlock("i", _hoisted_3$8))
4632
+ : (vue.openBlock(), vue.createElementBlock("i", _hoisted_4$8))
4656
4633
  ]),
4657
- vue.createElementVNode("ul", _hoisted_5$8, [
4634
+ vue.createElementVNode("ul", _hoisted_5$6, [
4658
4635
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(actionItems), (act) => {
4659
4636
  return (vue.openBlock(), vue.createElementBlock("li", {
4660
4637
  key: act.label
@@ -4767,45 +4744,37 @@ var script$f = {
4767
4744
 
4768
4745
  const _hoisted_1$c = { key: 0 };
4769
4746
  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 = {
4747
+ const _hoisted_3$7 = ["value"];
4748
+ const _hoisted_4$7 = { class: "record_counts" };
4749
+ const _hoisted_5$5 = {
4774
4750
  key: 0,
4775
4751
  "aria-label": "Page navigation"
4776
4752
  };
4777
- const _hoisted_7$5 = { class: "pagination" };
4778
- const _hoisted_8$5 = {
4753
+ const _hoisted_6$5 = { class: "pagination" };
4754
+ const _hoisted_7$5 = {
4779
4755
  key: 0,
4780
4756
  class: "page-link"
4781
4757
  };
4782
- const _hoisted_9$5 = {
4758
+ const _hoisted_8$4 = {
4783
4759
  key: 1,
4784
4760
  class: "page-link"
4785
4761
  };
4786
- const _hoisted_10$5 = ["onClick"];
4787
- const _hoisted_11$5 = { key: 1 };
4788
- const _hoisted_12$4 = {
4762
+ const _hoisted_9$4 = ["onClick"];
4763
+ const _hoisted_10$3 = { key: 1 };
4764
+ const _hoisted_11$2 = {
4789
4765
  key: 0,
4790
4766
  class: "text-center"
4791
4767
  };
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 = {
4768
+ const _hoisted_12$2 = {
4800
4769
  key: 1,
4801
4770
  class: "text-center"
4802
4771
  };
4803
- const _hoisted_16$2 = { class: "per_page_show" };
4804
- const _hoisted_17$2 = {
4772
+ const _hoisted_13$2 = { class: "per_page_show" };
4773
+ const _hoisted_14$2 = {
4805
4774
  key: 2,
4806
4775
  class: "text-center"
4807
4776
  };
4808
- const _hoisted_18$2 = {
4777
+ const _hoisted_15$2 = {
4809
4778
  key: 1,
4810
4779
  class: "spinner-border"
4811
4780
  };
@@ -4814,24 +4783,24 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4814
4783
  return ($props.paginationStyle !== 'loadMore')
4815
4784
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
4816
4785
  vue.createElementVNode("div", _hoisted_2$9, [
4817
- _hoisted_3$8,
4818
- vue.createTextVNode("  "),
4786
+ _cache[5] || (_cache[5] = vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */)),
4787
+ _cache[6] || (_cache[6] = vue.createTextVNode("  ")),
4819
4788
  vue.withDirectives(vue.createElementVNode("select", {
4820
4789
  class: "select_per_page",
4821
4790
  onChange: _cache[0] || (_cache[0] = (...args) => ($options.changePerPage && $options.changePerPage(...args))),
4822
4791
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($data.per_page) = $event))
4823
4792
  }, [
4824
4793
  (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))
4794
+ return (vue.openBlock(), vue.createElementBlock("option", { value: option }, vue.toDisplayString(option), 9 /* TEXT, PROPS */, _hoisted_3$7))
4826
4795
  }), 256 /* UNKEYED_FRAGMENT */))
4827
4796
  ], 544 /* NEED_HYDRATION, NEED_PATCH */), [
4828
4797
  [vue.vModelSelect, $data.per_page]
4829
4798
  ]),
4830
- vue.createElementVNode("span", _hoisted_5$7, " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
4799
+ vue.createElementVNode("span", _hoisted_4$7, " of " + vue.toDisplayString($props.pagination_data.record_count) + " items", 1 /* TEXT */)
4831
4800
  ]),
4832
4801
  ($props.pagination_data != null)
4833
- ? (vue.openBlock(), vue.createElementBlock("nav", _hoisted_6$6, [
4834
- vue.createElementVNode("ul", _hoisted_7$5, [
4802
+ ? (vue.openBlock(), vue.createElementBlock("nav", _hoisted_5$5, [
4803
+ vue.createElementVNode("ul", _hoisted_6$5, [
4835
4804
  vue.createElementVNode("li", {
4836
4805
  class: vue.normalizeClass([$options.getActivePage === 1 ? 'disabled' : '' , "page-item"])
4837
4806
  }, [
@@ -4846,14 +4815,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4846
4815
  key: page
4847
4816
  }, [
4848
4817
  ($options.getActivePage === page)
4849
- ? (vue.openBlock(), vue.createElementBlock("a", _hoisted_8$5, vue.toDisplayString(page), 1 /* TEXT */))
4818
+ ? (vue.openBlock(), vue.createElementBlock("a", _hoisted_7$5, vue.toDisplayString(page), 1 /* TEXT */))
4850
4819
  : (['..','...'].includes(page))
4851
- ? (vue.openBlock(), vue.createElementBlock("a", _hoisted_9$5, vue.toDisplayString(page), 1 /* TEXT */))
4820
+ ? (vue.openBlock(), vue.createElementBlock("a", _hoisted_8$4, vue.toDisplayString(page), 1 /* TEXT */))
4852
4821
  : (vue.openBlock(), vue.createElementBlock("a", {
4853
4822
  key: 2,
4854
4823
  onClick: $event => ($options.changeTableKey('page',page)),
4855
4824
  class: "page-link"
4856
- }, vue.toDisplayString(page), 9 /* TEXT, PROPS */, _hoisted_10$5))
4825
+ }, vue.toDisplayString(page), 9 /* TEXT, PROPS */, _hoisted_9$4))
4857
4826
  ], 2 /* CLASS */))
4858
4827
  }), 128 /* KEYED_FRAGMENT */)),
4859
4828
  vue.createElementVNode("li", {
@@ -4868,24 +4837,29 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4868
4837
  ]))
4869
4838
  : vue.createCommentVNode("v-if", true)
4870
4839
  ]))
4871
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$5, [
4840
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$3, [
4872
4841
  (this.pagination_data.loading === 1 && $props.loadMore && $props.hideLoadMore)
4873
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$4, [..._hoisted_14$2]))
4842
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$2, _cache[7] || (_cache[7] = [
4843
+ vue.createElementVNode("div", {
4844
+ class: "spinner-border",
4845
+ role: "status"
4846
+ }, null, -1 /* HOISTED */)
4847
+ ])))
4874
4848
  : vue.createCommentVNode("v-if", true),
4875
4849
  (!$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 */)
4850
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, [
4851
+ 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
4852
  ]))
4879
4853
  : vue.createCommentVNode("v-if", true),
4880
4854
  ($props.pagination_data.displayCount < $props.pagination_data.record_count && !$props.hideLoadMore)
4881
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$2, [
4855
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$2, [
4882
4856
  (this.pagination_data.loading !== 1)
4883
4857
  ? (vue.openBlock(), vue.createElementBlock("button", {
4884
4858
  key: 0,
4885
4859
  class: "btn btn-sm btn-primary mt-1",
4886
4860
  onClick: _cache[4] || (_cache[4] = (...args) => ($options.loadMoreRecords && $options.loadMoreRecords(...args)))
4887
4861
  }, " Load More "))
4888
- : (vue.openBlock(), vue.createElementBlock("span", _hoisted_18$2))
4862
+ : (vue.openBlock(), vue.createElementBlock("span", _hoisted_15$2))
4889
4863
  ]))
4890
4864
  : vue.createCommentVNode("v-if", true)
4891
4865
  ]))
@@ -4896,7 +4870,7 @@ script$f.__file = "src/lib/components/list_templates/Pagination.vue";
4896
4870
 
4897
4871
  const _hoisted_1$b = { class: "sh-range" };
4898
4872
  const _hoisted_2$8 = { class: "dropdown" };
4899
- const _hoisted_3$7 = {
4873
+ const _hoisted_3$6 = {
4900
4874
  class: "form-control dropdown-toggle",
4901
4875
  href: "#",
4902
4876
  role: "button",
@@ -4904,17 +4878,15 @@ const _hoisted_3$7 = {
4904
4878
  "data-bs-toggle": "dropdown",
4905
4879
  "aria-expanded": "false"
4906
4880
  };
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 = {
4881
+ const _hoisted_4$6 = ["innerHTML"];
4882
+ const _hoisted_5$4 = {
4910
4883
  class: "dropdown-menu sh-range-dropdown",
4911
4884
  "aria-labelledby": "dropdownMenuLink"
4912
4885
  };
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 */);
4886
+ const _hoisted_6$4 = { class: "sh-range-preset" };
4887
+ const _hoisted_7$4 = ["onClick"];
4888
+ const _hoisted_8$3 = { class: "border-top" };
4889
+ const _hoisted_9$3 = { class: "dropdown-item d-flex flex-column" };
4918
4890
 
4919
4891
 
4920
4892
 
@@ -5029,13 +5001,13 @@ vue.onMounted(() => {
5029
5001
  return (_ctx, _cache) => {
5030
5002
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
5031
5003
  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)
5004
+ vue.createElementVNode("div", _hoisted_3$6, [
5005
+ _cache[2] || (_cache[2] = vue.createElementVNode("i", { class: "bi-calendar text-dark" }, null, -1 /* HOISTED */)),
5006
+ _cache[3] || (_cache[3] = vue.createTextVNode()),
5007
+ vue.createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_4$6)
5036
5008
  ]),
5037
- vue.createElementVNode("div", _hoisted_6$5, [
5038
- vue.createElementVNode("ul", _hoisted_7$4, [
5009
+ vue.createElementVNode("div", _hoisted_5$4, [
5010
+ vue.createElementVNode("ul", _hoisted_6$4, [
5039
5011
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dates.value, (date) => {
5040
5012
  return (vue.openBlock(), vue.createElementBlock("li", {
5041
5013
  key: date.label,
@@ -5045,13 +5017,13 @@ return (_ctx, _cache) => {
5045
5017
  class: vue.normalizeClass(["dropdown-item", date.value === selectedDate.value ? 'active' : '']),
5046
5018
  href: "#"
5047
5019
  }, vue.toDisplayString(date.label), 3 /* TEXT, CLASS */)
5048
- ], 8 /* PROPS */, _hoisted_8$4))
5020
+ ], 8 /* PROPS */, _hoisted_7$4))
5049
5021
  }), 128 /* KEYED_FRAGMENT */))
5050
5022
  ]),
5051
5023
  vue.createElementVNode("ul", null, [
5052
- vue.createElementVNode("li", _hoisted_9$4, [
5053
- vue.createElementVNode("div", _hoisted_10$4, [
5054
- _hoisted_11$4,
5024
+ vue.createElementVNode("li", _hoisted_8$3, [
5025
+ vue.createElementVNode("div", _hoisted_9$3, [
5026
+ _cache[4] || (_cache[4] = vue.createElementVNode("span", null, "Custom", -1 /* HOISTED */)),
5055
5027
  vue.createElementVNode("div", null, [
5056
5028
  vue.withDirectives(vue.createElementVNode("input", {
5057
5029
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((customFrom).value = $event)),
@@ -5091,170 +5063,121 @@ const _hoisted_2$7 = {
5091
5063
  key: 0,
5092
5064
  class: "col-md-4 mb-2"
5093
5065
  };
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 = {
5066
+ const _hoisted_3$5 = ["disabled"];
5067
+ const _hoisted_4$5 = {
5103
5068
  key: 1,
5104
5069
  class: "row"
5105
5070
  };
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 = {
5071
+ const _hoisted_5$3 = { class: "col-12 mb-3 d-flex justify-content-between flex-column flex-md-row flex-lg-row" };
5072
+ const _hoisted_6$3 = ["placeholder"];
5073
+ const _hoisted_7$3 = {
5109
5074
  key: 0,
5110
5075
  class: "input-group-text exact_checkbox"
5111
5076
  };
5112
- const _hoisted_11$3 = /*#__PURE__*/vue.createElementVNode("span", { class: "ms-1" }, "Exact", -1 /* HOISTED */);
5113
- const _hoisted_12$3 = {
5077
+ const _hoisted_8$2 = {
5114
5078
  key: 0,
5115
5079
  class: "sh-range-selector"
5116
5080
  };
5117
- const _hoisted_13$1 = {
5081
+ const _hoisted_9$2 = {
5118
5082
  key: 0,
5119
5083
  class: "text-center"
5120
5084
  };
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 = {
5085
+ const _hoisted_10$2 = {
5131
5086
  key: 1,
5132
5087
  class: "alert alert-danger"
5133
5088
  };
5134
- const _hoisted_17$1 = {
5089
+ const _hoisted_11$1 = {
5135
5090
  key: 0,
5136
5091
  class: "text-center"
5137
5092
  };
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 = {
5093
+ const _hoisted_12$1 = {
5148
5094
  key: 1,
5149
5095
  class: "alert alert-danger error-loading"
5150
5096
  };
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 = {
5097
+ const _hoisted_13$1 = { class: "sh-thead" };
5098
+ const _hoisted_14$1 = { key: 0 };
5099
+ const _hoisted_15$1 = ["onClick"];
5100
+ const _hoisted_16 = ["onClick"];
5101
+ const _hoisted_17 = ["onClick"];
5102
+ const _hoisted_18 = ["onClick"];
5103
+ const _hoisted_19 = {
5158
5104
  key: 0,
5159
5105
  class: "text-capitalize"
5160
5106
  };
5161
- const _hoisted_28 = { class: "sh-tbody" };
5162
- const _hoisted_29 = {
5107
+ const _hoisted_20 = { class: "sh-tbody" };
5108
+ const _hoisted_21 = {
5163
5109
  key: 0,
5164
5110
  class: "text-center"
5165
5111
  };
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 = {
5112
+ const _hoisted_22 = ["colspan"];
5113
+ const _hoisted_23 = {
5179
5114
  key: 1,
5180
5115
  class: "text-center alert alert-danger"
5181
5116
  };
5182
- const _hoisted_34 = ["colspan"];
5183
- const _hoisted_35 = {
5117
+ const _hoisted_24 = ["colspan"];
5118
+ const _hoisted_25 = {
5184
5119
  key: 2,
5185
5120
  class: "text-center alert alert-info no_records"
5186
5121
  };
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 = {
5122
+ const _hoisted_26 = ["colspan"];
5123
+ const _hoisted_27 = ["onClick"];
5124
+ const _hoisted_28 = { key: 0 };
5125
+ const _hoisted_29 = { key: 1 };
5126
+ const _hoisted_30 = {
5192
5127
  key: 2,
5193
5128
  class: "text-success fw-bold"
5194
5129
  };
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 = {
5130
+ const _hoisted_31 = { key: 3 };
5131
+ const _hoisted_32 = ["innerHTML"];
5132
+ const _hoisted_33 = ["innerHTML"];
5133
+ const _hoisted_34 = ["innerHTML"];
5134
+ const _hoisted_35 = ["innerHTML"];
5135
+ const _hoisted_36 = ["innerHTML"];
5136
+ const _hoisted_37 = ["innerHTML"];
5137
+ const _hoisted_38 = {
5203
5138
  key: 0,
5204
5139
  style: {"white-space":"nowrap"}
5205
5140
  };
5206
- const _hoisted_49 = { key: 5 };
5207
- const _hoisted_50 = {
5141
+ const _hoisted_39 = { key: 5 };
5142
+ const _hoisted_40 = {
5208
5143
  key: 0,
5209
5144
  class: "text-center"
5210
5145
  };
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 = {
5146
+ const _hoisted_41 = { key: 1 };
5147
+ const _hoisted_42 = {
5224
5148
  key: 2,
5225
5149
  class: "mobile-list-items"
5226
5150
  };
5227
- const _hoisted_55 = ["onClick"];
5228
- const _hoisted_56 = {
5151
+ const _hoisted_43 = ["onClick"];
5152
+ const _hoisted_44 = {
5229
5153
  key: 0,
5230
5154
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
5231
5155
  };
5232
- const _hoisted_57 = {
5156
+ const _hoisted_45 = {
5233
5157
  key: 1,
5234
5158
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
5235
5159
  };
5236
- const _hoisted_58 = {
5160
+ const _hoisted_46 = {
5237
5161
  key: 2,
5238
5162
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
5239
5163
  };
5240
- const _hoisted_59 = {
5164
+ const _hoisted_47 = {
5241
5165
  key: 3,
5242
5166
  class: "mb-1 font-weight-bold text-capitalize profile-form-title"
5243
5167
  };
5244
- const _hoisted_60 = { key: 1 };
5245
- const _hoisted_61 = {
5168
+ const _hoisted_48 = { key: 1 };
5169
+ const _hoisted_49 = {
5246
5170
  key: 2,
5247
5171
  class: "text-primary fw-bold"
5248
5172
  };
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 };
5173
+ const _hoisted_50 = { key: 3 };
5174
+ const _hoisted_51 = ["innerHTML"];
5175
+ const _hoisted_52 = ["innerHTML"];
5176
+ const _hoisted_53 = ["innerHTML"];
5177
+ const _hoisted_54 = ["innerHTML"];
5178
+ const _hoisted_55 = ["innerHTML"];
5179
+ const _hoisted_56 = ["innerHTML"];
5180
+ const _hoisted_57 = { key: 0 };
5258
5181
 
5259
5182
  const __default__ = {
5260
5183
  name: 'sh-table',
@@ -5583,7 +5506,7 @@ const __default__ = {
5583
5506
  };
5584
5507
 
5585
5508
 
5586
- var script$d = /*#__PURE__*/Object.assign(__default__, {
5509
+ var script$d = /*@__PURE__*/Object.assign(__default__, {
5587
5510
  setup(__props) {
5588
5511
 
5589
5512
  const noRecordsComponent = vue.inject('noRecordsComponent', script$k);
@@ -5598,6 +5521,16 @@ const cleanColumn = col=>{
5598
5521
  return newCol
5599
5522
  };
5600
5523
 
5524
+ const showColumn = header=>{
5525
+ if(typeof header === 'string'){
5526
+ return true
5527
+ }
5528
+ if(typeof header === 'object' && header.validator) {
5529
+ return header.validator()
5530
+ }
5531
+ return true
5532
+ };
5533
+
5601
5534
 
5602
5535
  return (_ctx, _cache) => {
5603
5536
  const _component_router_link = vue.resolveComponent("router-link");
@@ -5612,19 +5545,23 @@ return (_ctx, _cache) => {
5612
5545
  }, [
5613
5546
  (!_ctx.downloading)
5614
5547
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
5615
- _hoisted_4$6,
5616
- vue.createTextVNode(" Export ")
5548
+ _cache[7] || (_cache[7] = vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */)),
5549
+ _cache[8] || (_cache[8] = vue.createTextVNode(" Export "))
5617
5550
  ], 64 /* STABLE_FRAGMENT */))
5618
5551
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
5619
- _hoisted_5$5,
5620
- _hoisted_6$4
5552
+ _cache[9] || (_cache[9] = vue.createElementVNode("span", {
5553
+ class: "spinner-border spinner-border-sm",
5554
+ role: "status",
5555
+ "aria-hidden": "true"
5556
+ }, null, -1 /* HOISTED */)),
5557
+ _cache[10] || (_cache[10] = vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */))
5621
5558
  ], 64 /* STABLE_FRAGMENT */))
5622
- ], 8 /* PROPS */, _hoisted_3$6)
5559
+ ], 8 /* PROPS */, _hoisted_3$5)
5623
5560
  ]))
5624
5561
  : vue.createCommentVNode("v-if", true),
5625
5562
  (!__props.hideSearch)
5626
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
5627
- vue.createElementVNode("div", _hoisted_8$3, [
5563
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$5, [
5564
+ vue.createElementVNode("div", _hoisted_5$3, [
5628
5565
  vue.createElementVNode("div", {
5629
5566
  class: vue.normalizeClass(["sh-search-bar input-group", __props.hasRange ? 'me-2':''])
5630
5567
  }, [
@@ -5636,11 +5573,11 @@ return (_ctx, _cache) => {
5636
5573
  "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((_ctx.filter_value) = $event)),
5637
5574
  placeholder: __props.searchPlaceholder ? __props.searchPlaceholder : 'Search',
5638
5575
  class: "form-control sh-search-input"
5639
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_9$3), [
5576
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_6$3), [
5640
5577
  [vue.vModelText, _ctx.filter_value]
5641
5578
  ]),
5642
5579
  (_ctx.filter_value.length > 1)
5643
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10$3, [
5580
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$3, [
5644
5581
  vue.withDirectives(vue.createElementVNode("input", {
5645
5582
  onChange: _cache[5] || (_cache[5] = (...args) => (_ctx.reloadData && _ctx.reloadData(...args))),
5646
5583
  value: true,
@@ -5649,12 +5586,12 @@ return (_ctx, _cache) => {
5649
5586
  }, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
5650
5587
  [vue.vModelCheckbox, _ctx.exactMatch]
5651
5588
  ]),
5652
- _hoisted_11$3
5589
+ _cache[11] || (_cache[11] = vue.createElementVNode("span", { class: "ms-1" }, "Exact", -1 /* HOISTED */))
5653
5590
  ]))
5654
5591
  : vue.createCommentVNode("v-if", true)
5655
5592
  ], 2 /* CLASS */),
5656
5593
  (__props.hasRange)
5657
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$3, [
5594
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$2, [
5658
5595
  vue.createVNode(script$e, {
5659
5596
  onRangeSelected: _ctx.rangeChanged,
5660
5597
  selected: __props.selectedRange
@@ -5667,9 +5604,16 @@ return (_ctx, _cache) => {
5667
5604
  (_ctx.hasDefaultSlot)
5668
5605
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
5669
5606
  (_ctx.loading === 'loading')
5670
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$1, [..._hoisted_15$1]))
5607
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$2, _cache[12] || (_cache[12] = [
5608
+ vue.createElementVNode("div", {
5609
+ class: "spinner-border",
5610
+ role: "status"
5611
+ }, [
5612
+ vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5613
+ ], -1 /* HOISTED */)
5614
+ ])))
5671
5615
  : (_ctx.loading === 'error')
5672
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1, [
5616
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$2, [
5673
5617
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
5674
5618
  ]))
5675
5619
  : vue.createCommentVNode("v-if", true),
@@ -5685,9 +5629,16 @@ return (_ctx, _cache) => {
5685
5629
  : (_ctx.hasRecordsSlot)
5686
5630
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
5687
5631
  (_ctx.loading === 'loading' && !__props.cacheKey)
5688
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$1, [..._hoisted_19]))
5632
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$1, _cache[13] || (_cache[13] = [
5633
+ vue.createElementVNode("div", {
5634
+ class: "spinner-border",
5635
+ role: "status"
5636
+ }, [
5637
+ vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5638
+ ], -1 /* HOISTED */)
5639
+ ])))
5689
5640
  : (_ctx.loading === 'error' && !__props.cacheKey)
5690
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
5641
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, [
5691
5642
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
5692
5643
  ]))
5693
5644
  : vue.createCommentVNode("v-if", true),
@@ -5696,7 +5647,7 @@ return (_ctx, _cache) => {
5696
5647
  (!_ctx.records || _ctx.records.length === 0)
5697
5648
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(noRecordsComponent)), { key: 0 }, {
5698
5649
  default: vue.withCtx(() => [
5699
- _hoisted_21,
5650
+ _cache[14] || (_cache[14] = vue.createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */)),
5700
5651
  vue.createTextVNode(" " + vue.toDisplayString(__props.noRecordsMessage ?? 'No records found'), 1 /* TEXT */)
5701
5652
  ]),
5702
5653
  _: 1 /* STABLE */
@@ -5711,63 +5662,76 @@ return (_ctx, _cache) => {
5711
5662
  key: 4,
5712
5663
  class: vue.normalizeClass(["table sh-table", __props.tableHover ? 'table-hover':''])
5713
5664
  }, [
5714
- vue.createElementVNode("thead", _hoisted_22, [
5665
+ vue.createElementVNode("thead", _hoisted_13$1, [
5715
5666
  vue.createElementVNode("tr", null, [
5716
5667
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tableHeaders, (title) => {
5717
- return (vue.openBlock(), vue.createElementBlock("th", { key: title }, [
5718
- (typeof title === 'string')
5719
- ? (vue.openBlock(), vue.createElementBlock("a", {
5720
- key: 0,
5721
- class: "text-capitalize",
5722
- onClick: $event => (_ctx.changeKey('order_by',title))
5723
- }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_23))
5724
- : (typeof title === 'object')
5725
- ? (vue.openBlock(), vue.createElementBlock("a", {
5726
- key: 1,
5727
- class: "text-capitalize",
5728
- onClick: $event => (_ctx.changeKey('order_by',title.key))
5729
- }, vue.toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
5730
- : (typeof title === 'function')
5731
- ? (vue.openBlock(), vue.createElementBlock("a", {
5732
- key: 2,
5733
- class: "text-capitalize",
5734
- onClick: $event => (_ctx.changeKey('order_by',title(null)))
5735
- }, vue.toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_25))
5736
- : (typeof title !== 'undefined')
5668
+ return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: title }, [
5669
+ (showColumn(title))
5670
+ ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_14$1, [
5671
+ (typeof title === 'string')
5737
5672
  ? (vue.openBlock(), vue.createElementBlock("a", {
5738
- key: 3,
5673
+ key: 0,
5739
5674
  class: "text-capitalize",
5740
5675
  onClick: $event => (_ctx.changeKey('order_by',title))
5741
- }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_26))
5742
- : vue.createCommentVNode("v-if", true)
5743
- ]))
5676
+ }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_15$1))
5677
+ : (typeof title === 'object')
5678
+ ? (vue.openBlock(), vue.createElementBlock("a", {
5679
+ key: 1,
5680
+ class: "text-capitalize",
5681
+ onClick: $event => (_ctx.changeKey('order_by',title.key))
5682
+ }, vue.toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_16))
5683
+ : (typeof title === 'function')
5684
+ ? (vue.openBlock(), vue.createElementBlock("a", {
5685
+ key: 2,
5686
+ class: "text-capitalize",
5687
+ onClick: $event => (_ctx.changeKey('order_by',title(null)))
5688
+ }, vue.toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_17))
5689
+ : (typeof title !== 'undefined')
5690
+ ? (vue.openBlock(), vue.createElementBlock("a", {
5691
+ key: 3,
5692
+ class: "text-capitalize",
5693
+ onClick: $event => (_ctx.changeKey('order_by',title))
5694
+ }, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_18))
5695
+ : vue.createCommentVNode("v-if", true)
5696
+ ]))
5697
+ : vue.createCommentVNode("v-if", true)
5698
+ ], 64 /* STABLE_FRAGMENT */))
5744
5699
  }), 128 /* KEYED_FRAGMENT */)),
5745
5700
  (__props.actions)
5746
- ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_27, vue.toDisplayString(__props.actions.label), 1 /* TEXT */))
5701
+ ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_19, vue.toDisplayString(__props.actions.label), 1 /* TEXT */))
5747
5702
  : vue.createCommentVNode("v-if", true)
5748
5703
  ])
5749
5704
  ]),
5750
- vue.createElementVNode("tbody", _hoisted_28, [
5705
+ vue.createElementVNode("tbody", _hoisted_20, [
5751
5706
  (_ctx.loading === 'loading')
5752
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_29, [
5707
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_21, [
5753
5708
  vue.createElementVNode("td", {
5754
5709
  colspan: _ctx.tableHeaders.length
5755
- }, [..._hoisted_32], 8 /* PROPS */, _hoisted_30)
5710
+ }, _cache[15] || (_cache[15] = [
5711
+ vue.createElementVNode("div", { class: "text-center" }, [
5712
+ vue.createElementVNode("div", {
5713
+ class: "spinner-border",
5714
+ role: "status"
5715
+ }, [
5716
+ vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5717
+ ])
5718
+ ], -1 /* HOISTED */)
5719
+ ]), 8 /* PROPS */, _hoisted_22)
5756
5720
  ]))
5757
5721
  : (_ctx.loading === 'error')
5758
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_33, [
5722
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_23, [
5759
5723
  vue.createElementVNode("td", {
5760
5724
  colspan: _ctx.tableHeaders.length
5761
- }, vue.toDisplayString(_ctx.loading_error), 9 /* TEXT, PROPS */, _hoisted_34)
5725
+ }, vue.toDisplayString(_ctx.loading_error), 9 /* TEXT, PROPS */, _hoisted_24)
5762
5726
  ]))
5763
5727
  : (_ctx.records.length === 0)
5764
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_35, [
5728
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_25, [
5765
5729
  vue.createElementVNode("td", {
5766
5730
  colspan: __props.actions ? _ctx.tableHeaders.length + 1 : _ctx.tableHeaders.length
5767
- }, [
5768
- _hoisted_37,
5731
+ }, _cache[16] || (_cache[16] = [
5732
+ vue.createElementVNode("i", { class: "bi-info-circle" }, null, -1 /* HOISTED */),
5769
5733
  vue.createTextVNode(" No records found ")
5770
- ], 8 /* PROPS */, _hoisted_36)
5734
+ ]), 8 /* PROPS */, _hoisted_26)
5771
5735
  ]))
5772
5736
  : (_ctx.loading === 'done')
5773
5737
  ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 3 }, vue.renderList(_ctx.records, (record, index) => {
@@ -5777,60 +5741,64 @@ return (_ctx, _cache) => {
5777
5741
  onClick: $event => (_ctx.rowSelected(record))
5778
5742
  }, [
5779
5743
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tableHeaders, (key) => {
5780
- return (vue.openBlock(), vue.createElementBlock("td", { key: key }, [
5781
- (typeof key === 'string' && __props.links && __props.links[key])
5782
- ? (vue.openBlock(), vue.createBlock(_component_router_link, {
5783
- key: 0,
5784
- target: __props.links[key].target ? '_blank':'',
5785
- to: _ctx.replaceLinkUrl(__props.links[key],record),
5786
- class: vue.normalizeClass(_ctx.getLinkClass(__props.links[key])),
5787
- innerHTML: record[key]
5788
- }, null, 8 /* PROPS */, ["target", "to", "class", "innerHTML"]))
5789
- : (_ctx.getFieldType(key) === 'numeric')
5790
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_39, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5791
- : (_ctx.getFieldType(key) === 'money')
5792
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_40, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5793
- : (_ctx.getFieldType(key) === 'date')
5794
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_41, vue.toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
5795
- : (typeof key === 'string')
5796
- ? (vue.openBlock(), vue.createElementBlock("span", {
5797
- key: 4,
5798
- innerHTML: record[key]
5799
- }, null, 8 /* PROPS */, _hoisted_42))
5800
- : (typeof key === 'function')
5801
- ? (vue.openBlock(), vue.createElementBlock("span", {
5802
- key: 5,
5803
- innerHTML: key(record, index)
5804
- }, null, 8 /* PROPS */, _hoisted_43))
5805
- : (typeof key === 'object' && key.callBack)
5806
- ? (vue.openBlock(), vue.createElementBlock("span", {
5807
- key: 6,
5808
- innerHTML: key.callBack(record, index)
5809
- }, null, 8 /* PROPS */, _hoisted_44))
5810
- : (typeof key === 'object' && key.callback)
5744
+ return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: key }, [
5745
+ (showColumn(key))
5746
+ ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_28, [
5747
+ (typeof key === 'string' && __props.links && __props.links[key])
5748
+ ? (vue.openBlock(), vue.createBlock(_component_router_link, {
5749
+ key: 0,
5750
+ target: __props.links[key].target ? '_blank':'',
5751
+ to: _ctx.replaceLinkUrl(__props.links[key],record),
5752
+ class: vue.normalizeClass(_ctx.getLinkClass(__props.links[key])),
5753
+ innerHTML: record[key]
5754
+ }, null, 8 /* PROPS */, ["target", "to", "class", "innerHTML"]))
5755
+ : (_ctx.getFieldType(key) === 'numeric')
5756
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_29, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5757
+ : (_ctx.getFieldType(key) === 'money')
5758
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_30, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5759
+ : (_ctx.getFieldType(key) === 'date')
5760
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_31, vue.toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
5761
+ : (typeof key === 'string')
5811
5762
  ? (vue.openBlock(), vue.createElementBlock("span", {
5812
- key: 7,
5813
- innerHTML: key.callback(record, index)
5814
- }, null, 8 /* PROPS */, _hoisted_45))
5815
- : (typeof key === 'object' && key.component)
5816
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(key.component), vue.mergeProps({
5817
- key: 8,
5818
- item: record,
5819
- ref_for: true
5820
- }, cleanColumn(key)), null, 16 /* FULL_PROPS */, ["item"]))
5821
- : (typeof key === 'object')
5763
+ key: 4,
5764
+ innerHTML: record[key]
5765
+ }, null, 8 /* PROPS */, _hoisted_32))
5766
+ : (typeof key === 'function')
5767
+ ? (vue.openBlock(), vue.createElementBlock("span", {
5768
+ key: 5,
5769
+ innerHTML: key(record, index)
5770
+ }, null, 8 /* PROPS */, _hoisted_33))
5771
+ : (typeof key === 'object' && key.callBack)
5822
5772
  ? (vue.openBlock(), vue.createElementBlock("span", {
5823
- key: 9,
5824
- innerHTML: record[key.key ?? key.field]
5825
- }, null, 8 /* PROPS */, _hoisted_46))
5826
- : (vue.openBlock(), vue.createElementBlock("span", {
5827
- key: 10,
5828
- innerHTML: record[key[0]]
5829
- }, null, 8 /* PROPS */, _hoisted_47))
5830
- ]))
5773
+ key: 6,
5774
+ innerHTML: key.callBack(record, index)
5775
+ }, null, 8 /* PROPS */, _hoisted_34))
5776
+ : (typeof key === 'object' && key.callback)
5777
+ ? (vue.openBlock(), vue.createElementBlock("span", {
5778
+ key: 7,
5779
+ innerHTML: key.callback(record, index)
5780
+ }, null, 8 /* PROPS */, _hoisted_35))
5781
+ : (typeof key === 'object' && key.component)
5782
+ ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(key.component), vue.mergeProps({
5783
+ key: 8,
5784
+ item: record,
5785
+ ref_for: true
5786
+ }, cleanColumn(key)), null, 16 /* FULL_PROPS */, ["item"]))
5787
+ : (typeof key === 'object')
5788
+ ? (vue.openBlock(), vue.createElementBlock("span", {
5789
+ key: 9,
5790
+ innerHTML: record[key.key ?? key.field]
5791
+ }, null, 8 /* PROPS */, _hoisted_36))
5792
+ : (vue.openBlock(), vue.createElementBlock("span", {
5793
+ key: 10,
5794
+ innerHTML: record[key[0]]
5795
+ }, null, 8 /* PROPS */, _hoisted_37))
5796
+ ]))
5797
+ : vue.createCommentVNode("v-if", true)
5798
+ ], 64 /* STABLE_FRAGMENT */))
5831
5799
  }), 128 /* KEYED_FRAGMENT */)),
5832
5800
  (__props.actions)
5833
- ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_48, [
5801
+ ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_38, [
5834
5802
  vue.createVNode(script$g, {
5835
5803
  emitAction: _ctx.doEmitAction,
5836
5804
  actions: __props.actions,
@@ -5838,20 +5806,29 @@ return (_ctx, _cache) => {
5838
5806
  }, null, 8 /* PROPS */, ["emitAction", "actions", "record"])
5839
5807
  ]))
5840
5808
  : vue.createCommentVNode("v-if", true)
5841
- ], 10 /* CLASS, PROPS */, _hoisted_38))
5809
+ ], 10 /* CLASS, PROPS */, _hoisted_27))
5842
5810
  }), 128 /* KEYED_FRAGMENT */))
5843
5811
  : vue.createCommentVNode("v-if", true)
5844
5812
  ])
5845
5813
  ], 2 /* CLASS */))
5846
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_49, [
5814
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_39, [
5847
5815
  (_ctx.loading === 'loading')
5848
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_50, [..._hoisted_52]))
5816
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_40, _cache[17] || (_cache[17] = [
5817
+ vue.createElementVNode("div", { class: "text-center" }, [
5818
+ vue.createElementVNode("div", {
5819
+ class: "spinner-border",
5820
+ role: "status"
5821
+ }, [
5822
+ vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...")
5823
+ ])
5824
+ ], -1 /* HOISTED */)
5825
+ ])))
5849
5826
  : (_ctx.loading === 'error')
5850
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_53, [
5827
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_41, [
5851
5828
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.loading_error), 1 /* TEXT */)
5852
5829
  ]))
5853
5830
  : (_ctx.loading === 'done')
5854
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_54, [
5831
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_42, [
5855
5832
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.records, (record, index) => {
5856
5833
  return (vue.openBlock(), vue.createElementBlock("div", {
5857
5834
  key: record.id,
@@ -5862,68 +5839,72 @@ return (_ctx, _cache) => {
5862
5839
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
5863
5840
  key: key[0]
5864
5841
  }, [
5865
- (typeof key === 'string' )
5866
- ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_56, vue.toDisplayString(key.replace(/_/g, ' ')), 1 /* TEXT */))
5867
- : (typeof key === 'function')
5868
- ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_57, vue.toDisplayString(key(null).replace(/_/g, ' ')), 1 /* TEXT */))
5869
- : (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 */)),
5872
- vue.createElementVNode("span", null, [
5873
- (typeof key === 'string' && __props.links && __props.links[key])
5874
- ? (vue.openBlock(), vue.createBlock(_component_router_link, {
5875
- key: 0,
5876
- to: _ctx.replaceLinkUrl(__props.links[key],record),
5877
- class: vue.normalizeClass(_ctx.getLinkClass(__props.links[key])),
5878
- innerHTML: record[key]
5879
- }, null, 8 /* PROPS */, ["to", "class", "innerHTML"]))
5880
- : (_ctx.getFieldType(key) === 'numeric')
5881
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_60, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5882
- : (_ctx.getFieldType(key) === 'money')
5883
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_61, "KES " + vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5884
- : (_ctx.getFieldType(key) === 'date')
5885
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_62, vue.toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
5886
- : (typeof key === 'string')
5887
- ? (vue.openBlock(), vue.createElementBlock("span", {
5888
- key: 4,
5889
- innerHTML: record[key]
5890
- }, null, 8 /* PROPS */, _hoisted_63))
5891
- : (typeof key === 'object' && key.callBack)
5892
- ? (vue.openBlock(), vue.createElementBlock("span", {
5893
- key: 5,
5894
- innerHTML: key.callBack(record, index)
5895
- }, null, 8 /* PROPS */, _hoisted_64))
5896
- : (typeof key === 'object' && key.callback)
5897
- ? (vue.openBlock(), vue.createElementBlock("span", {
5898
- key: 6,
5899
- innerHTML: key.callback(record, index)
5900
- }, null, 8 /* PROPS */, _hoisted_65))
5901
- : (typeof key === 'object' && key.component)
5902
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(key.component), vue.mergeProps({
5903
- key: 7,
5904
- item: record,
5905
- ref_for: true
5906
- }, cleanColumn(key)), null, 16 /* FULL_PROPS */, ["item"]))
5907
- : (typeof key === 'object')
5842
+ (showColumn(key))
5843
+ ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
5844
+ (typeof key === 'string' )
5845
+ ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_44, vue.toDisplayString(key.replace(/_/g, ' ')), 1 /* TEXT */))
5846
+ : (typeof key === 'function')
5847
+ ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_45, vue.toDisplayString(key(null).replace(/_/g, ' ')), 1 /* TEXT */))
5848
+ : (typeof key === 'object')
5849
+ ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_46, vue.toDisplayString(key.label ?? key.key.replace(/_/g, ' ')), 1 /* TEXT */))
5850
+ : (vue.openBlock(), vue.createElementBlock("p", _hoisted_47, vue.toDisplayString(key[1].replace(/_/g, ' ')), 1 /* TEXT */)),
5851
+ vue.createElementVNode("span", null, [
5852
+ (typeof key === 'string' && __props.links && __props.links[key])
5853
+ ? (vue.openBlock(), vue.createBlock(_component_router_link, {
5854
+ key: 0,
5855
+ to: _ctx.replaceLinkUrl(__props.links[key],record),
5856
+ class: vue.normalizeClass(_ctx.getLinkClass(__props.links[key])),
5857
+ innerHTML: record[key]
5858
+ }, null, 8 /* PROPS */, ["to", "class", "innerHTML"]))
5859
+ : (_ctx.getFieldType(key) === 'numeric')
5860
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_48, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5861
+ : (_ctx.getFieldType(key) === 'money')
5862
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_49, "KES " + vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
5863
+ : (_ctx.getFieldType(key) === 'date')
5864
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_50, vue.toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
5865
+ : (typeof key === 'string')
5866
+ ? (vue.openBlock(), vue.createElementBlock("span", {
5867
+ key: 4,
5868
+ innerHTML: record[key]
5869
+ }, null, 8 /* PROPS */, _hoisted_51))
5870
+ : (typeof key === 'object' && key.callBack)
5908
5871
  ? (vue.openBlock(), vue.createElementBlock("span", {
5909
- key: 8,
5910
- innerHTML: record[key.key ?? key.field]
5911
- }, null, 8 /* PROPS */, _hoisted_66))
5912
- : (typeof key === 'function')
5872
+ key: 5,
5873
+ innerHTML: key.callBack(record, index)
5874
+ }, null, 8 /* PROPS */, _hoisted_52))
5875
+ : (typeof key === 'object' && key.callback)
5913
5876
  ? (vue.openBlock(), vue.createElementBlock("span", {
5914
- key: 9,
5915
- innerHTML: key(record, index )
5916
- }, null, 8 /* PROPS */, _hoisted_67))
5917
- : (vue.openBlock(), vue.createElementBlock("span", {
5918
- key: 10,
5919
- innerHTML: record[key[0]]
5920
- }, null, 8 /* PROPS */, _hoisted_68))
5921
- ]),
5922
- _hoisted_69
5877
+ key: 6,
5878
+ innerHTML: key.callback(record, index)
5879
+ }, null, 8 /* PROPS */, _hoisted_53))
5880
+ : (typeof key === 'object' && key.component)
5881
+ ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(key.component), vue.mergeProps({
5882
+ key: 7,
5883
+ item: record,
5884
+ ref_for: true
5885
+ }, cleanColumn(key)), null, 16 /* FULL_PROPS */, ["item"]))
5886
+ : (typeof key === 'object')
5887
+ ? (vue.openBlock(), vue.createElementBlock("span", {
5888
+ key: 8,
5889
+ innerHTML: record[key.key ?? key.field]
5890
+ }, null, 8 /* PROPS */, _hoisted_54))
5891
+ : (typeof key === 'function')
5892
+ ? (vue.openBlock(), vue.createElementBlock("span", {
5893
+ key: 9,
5894
+ innerHTML: key(record, index )
5895
+ }, null, 8 /* PROPS */, _hoisted_55))
5896
+ : (vue.openBlock(), vue.createElementBlock("span", {
5897
+ key: 10,
5898
+ innerHTML: record[key[0]]
5899
+ }, null, 8 /* PROPS */, _hoisted_56))
5900
+ ])
5901
+ ], 64 /* STABLE_FRAGMENT */))
5902
+ : vue.createCommentVNode("v-if", true),
5903
+ _cache[18] || (_cache[18] = vue.createElementVNode("hr", { class: "my-2" }, null, -1 /* HOISTED */))
5923
5904
  ], 64 /* STABLE_FRAGMENT */))
5924
5905
  }), 128 /* KEYED_FRAGMENT */)),
5925
5906
  (__props.actions)
5926
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_70, [
5907
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_57, [
5927
5908
  vue.createVNode(script$g, {
5928
5909
  emitAction: _ctx.doEmitAction,
5929
5910
  actions: __props.actions,
@@ -5931,7 +5912,7 @@ return (_ctx, _cache) => {
5931
5912
  }, null, 8 /* PROPS */, ["emitAction", "actions", "record"])
5932
5913
  ]))
5933
5914
  : vue.createCommentVNode("v-if", true)
5934
- ], 8 /* PROPS */, _hoisted_55))
5915
+ ], 8 /* PROPS */, _hoisted_43))
5935
5916
  }), 128 /* KEYED_FRAGMENT */))
5936
5917
  ]))
5937
5918
  : vue.createCommentVNode("v-if", true)
@@ -6146,9 +6127,8 @@ const _hoisted_1$9 = {
6146
6127
  role: "presentation"
6147
6128
  };
6148
6129
  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" };
6130
+ const _hoisted_3$4 = { class: "sh_tab_count" };
6131
+ const _hoisted_4$4 = { class: "tab-content" };
6152
6132
 
6153
6133
  var script$b = {
6154
6134
  __name: 'ShDynamicTabs',
@@ -6190,15 +6170,15 @@ return (_ctx, _cache) => {
6190
6170
  vue.createTextVNode(vue.toDisplayString(tab.label) + " ", 1 /* TEXT */),
6191
6171
  (tab.count || tab.tabCount)
6192
6172
  ? (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 */)
6173
+ _cache[0] || (_cache[0] = vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */)),
6174
+ vue.createElementVNode("sup", _hoisted_3$4, vue.toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
6195
6175
  ], 64 /* STABLE_FRAGMENT */))
6196
6176
  : vue.createCommentVNode("v-if", true)
6197
6177
  ], 10 /* CLASS, PROPS */, _hoisted_2$6)
6198
6178
  ]))
6199
6179
  }), 256 /* UNKEYED_FRAGMENT */))
6200
6180
  ], 2 /* CLASS */),
6201
- vue.createElementVNode("div", _hoisted_5$4, [
6181
+ vue.createElementVNode("div", _hoisted_4$4, [
6202
6182
  (vue.unref(currentTab))
6203
6183
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentTab).component), vue.normalizeProps(vue.mergeProps({ key: 0 }, vue.unref(currentTab))), null, 16 /* FULL_PROPS */))
6204
6184
  : vue.createCommentVNode("v-if", true)
@@ -6264,45 +6244,39 @@ return (_ctx, _cache) => {
6264
6244
 
6265
6245
  script$9.__file = "src/lib/components/ShCanvasBtn.vue";
6266
6246
 
6267
- const _withScopeId$1 = n => (vue.pushScopeId("data-v-0d4fa0ac"),n=n(),vue.popScopeId(),n);
6268
6247
  const _hoisted_1$6 = { class: "row permissions-main d-flex" };
6269
6248
  const _hoisted_2$5 = {
6270
6249
  id: "permissions-nav",
6271
6250
  class: "col-md-3 d-flex align-items-center py-4"
6272
6251
  };
6273
- const _hoisted_3$4 = {
6252
+ const _hoisted_3$3 = {
6274
6253
  key: 0,
6275
6254
  class: "mx-auto"
6276
6255
  };
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 = {
6256
+ const _hoisted_4$3 = {
6282
6257
  key: 1,
6283
6258
  class: "d-flex flex-column w-100 px-2"
6284
6259
  };
6285
- const _hoisted_7$2 = ["checked", "onClick", "disabled"];
6286
- const _hoisted_8$2 = ["onClick"];
6287
- const _hoisted_9$2 = {
6260
+ const _hoisted_5$2 = ["checked", "onClick", "disabled"];
6261
+ const _hoisted_6$2 = ["onClick"];
6262
+ const _hoisted_7$2 = {
6288
6263
  id: "permissions-content",
6289
6264
  class: "col-md-9 py-4 px-4"
6290
6265
  };
6291
- const _hoisted_10$2 = { class: "p-2 rounded-2 bg-white h-100" };
6292
- const _hoisted_11$2 = {
6266
+ const _hoisted_8$1 = { class: "p-2 rounded-2 bg-white h-100" };
6267
+ const _hoisted_9$1 = {
6293
6268
  key: 0,
6294
6269
  class: "alert alert-info"
6295
6270
  };
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 = {
6271
+ const _hoisted_10$1 = { key: 1 };
6272
+ const _hoisted_11 = { class: "row row-cols-3" };
6273
+ const _hoisted_12 = { class: "col" };
6274
+ const _hoisted_13 = ["value"];
6275
+ const _hoisted_14 = {
6301
6276
  key: 0,
6302
6277
  class: "w-100 row"
6303
6278
  };
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 */));
6279
+ const _hoisted_15 = { class: "col-md-3" };
6306
6280
 
6307
6281
 
6308
6282
  var script$8 = {
@@ -6412,8 +6386,10 @@ return (_ctx, _cache) => {
6412
6386
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
6413
6387
  vue.createElementVNode("div", _hoisted_2$5, [
6414
6388
  (loadingModules.value)
6415
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, [..._hoisted_5$3]))
6416
- : (vue.openBlock(), vue.createElementBlock("ul", _hoisted_6$3, [
6389
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, _cache[1] || (_cache[1] = [
6390
+ vue.createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */)
6391
+ ])))
6392
+ : (vue.openBlock(), vue.createElementBlock("ul", _hoisted_4$3, [
6417
6393
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modules.value, (module) => {
6418
6394
  return (vue.openBlock(), vue.createElementBlock("li", {
6419
6395
  class: vue.normalizeClass(selectedModule.value === module && 'active'),
@@ -6424,23 +6400,23 @@ return (_ctx, _cache) => {
6424
6400
  onClick: $event => (checkAllPermissions(module)),
6425
6401
  disabled: selectedModule.value !== module,
6426
6402
  type: "checkbox"
6427
- }, null, 8 /* PROPS */, _hoisted_7$2),
6403
+ }, null, 8 /* PROPS */, _hoisted_5$2),
6428
6404
  vue.createElementVNode("label", {
6429
6405
  class: "text-capitalize",
6430
6406
  onClick: $event => (setModule(module))
6431
- }, vue.toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */, _hoisted_8$2)
6407
+ }, vue.toDisplayString(module.replaceAll('_',' ')), 9 /* TEXT, PROPS */, _hoisted_6$2)
6432
6408
  ], 2 /* CLASS */))
6433
6409
  }), 128 /* KEYED_FRAGMENT */))
6434
6410
  ]))
6435
6411
  ]),
6436
- vue.createElementVNode("div", _hoisted_9$2, [
6437
- vue.createElementVNode("div", _hoisted_10$2, [
6412
+ vue.createElementVNode("div", _hoisted_7$2, [
6413
+ vue.createElementVNode("div", _hoisted_8$1, [
6438
6414
  (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, [
6415
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$1, " loading ... "))
6416
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$1, [
6417
+ vue.createElementVNode("div", _hoisted_11, [
6442
6418
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modulePermissions.value, (permissions) => {
6443
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
6419
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_12, [
6444
6420
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(permissions, (permission) => {
6445
6421
  return (vue.openBlock(), vue.createElementBlock("label", {
6446
6422
  onClick: setPermissionsChanged,
@@ -6451,7 +6427,7 @@ return (_ctx, _cache) => {
6451
6427
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((selectedPermissions).value = $event)),
6452
6428
  value: permission,
6453
6429
  type: "checkbox"
6454
- }, null, 8 /* PROPS */, _hoisted_15), [
6430
+ }, null, 8 /* PROPS */, _hoisted_13), [
6455
6431
  [vue.vModelCheckbox, selectedPermissions.value]
6456
6432
  ]),
6457
6433
  vue.createTextVNode(" " + vue.toDisplayString(getLabel(permission)), 1 /* TEXT */)
@@ -6461,18 +6437,18 @@ return (_ctx, _cache) => {
6461
6437
  }), 256 /* UNKEYED_FRAGMENT */))
6462
6438
  ]),
6463
6439
  (permissionsChanged.value)
6464
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
6465
- vue.createElementVNode("div", _hoisted_17, [
6440
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
6441
+ vue.createElementVNode("div", _hoisted_15, [
6466
6442
  vue.createVNode(script$i, {
6467
6443
  onSuccess: permissionsUpdated,
6468
6444
  url: `sh-departments/department/permissions/${vue.unref(departmentId)}/${selectedModule.value}`,
6469
6445
  data: {permissions: selectedPermissions.value},
6470
6446
  class: "btn btn-primary d-block"
6471
6447
  }, {
6472
- default: vue.withCtx(() => [
6473
- _hoisted_18,
6448
+ default: vue.withCtx(() => _cache[2] || (_cache[2] = [
6449
+ vue.createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */),
6474
6450
  vue.createTextVNode(" Save")
6475
- ]),
6451
+ ])),
6476
6452
  _: 1 /* STABLE */
6477
6453
  }, 8 /* PROPS */, ["url", "data"])
6478
6454
  ])
@@ -6811,19 +6787,14 @@ script$4.__file = "src/lib/components/ShCardLayout.vue";
6811
6787
 
6812
6788
  const _hoisted_1$3 = { class: "container" };
6813
6789
  const _hoisted_2$3 = { class: "row" };
6814
- const _hoisted_3$3 = {
6790
+ const _hoisted_3$2 = {
6815
6791
  key: 0,
6816
6792
  class: "col-md-6"
6817
6793
  };
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"];
6794
+ const _hoisted_4$2 = { class: "table" };
6795
+ const _hoisted_5$1 = { class: "card-footer" };
6796
+ const _hoisted_6$1 = { class: "col-md-6" };
6797
+ const _hoisted_7$1 = ["src"];
6827
6798
 
6828
6799
  var script$3 = {
6829
6800
  __name: 'ShUserProfile',
@@ -6860,11 +6831,11 @@ return (_ctx, _cache) => {
6860
6831
  vue.createElementVNode("div", _hoisted_1$3, [
6861
6832
  vue.createElementVNode("div", _hoisted_2$3, [
6862
6833
  (vue.unref(user))
6863
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, [
6834
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [
6864
6835
  vue.createVNode(script$4, null, {
6865
6836
  default: vue.withCtx(() => [
6866
- _hoisted_4$3,
6867
- vue.createElementVNode("table", _hoisted_5$2, [
6837
+ _cache[5] || (_cache[5] = vue.createElementVNode("h5", { class: "card-title" }, "Details", -1 /* HOISTED */)),
6838
+ vue.createElementVNode("table", _hoisted_4$2, [
6868
6839
  vue.createElementVNode("tbody", null, [
6869
6840
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(UserdetailsColumns, (column) => {
6870
6841
  return vue.createElementVNode("tr", {
@@ -6876,7 +6847,7 @@ return (_ctx, _cache) => {
6876
6847
  }), 64 /* STABLE_FRAGMENT */))
6877
6848
  ])
6878
6849
  ]),
6879
- vue.createElementVNode("div", _hoisted_6$2, [
6850
+ vue.createElementVNode("div", _hoisted_5$1, [
6880
6851
  (vue.unref(user))
6881
6852
  ? (vue.openBlock(), vue.createBlock(script$n, {
6882
6853
  key: 0,
@@ -6887,10 +6858,10 @@ return (_ctx, _cache) => {
6887
6858
  onSuccess: _cache[0] || (_cache[0] = $event => (detailsUpdated('details'))),
6888
6859
  fields: ['name','email','phone']
6889
6860
  }, {
6890
- default: vue.withCtx(() => [
6891
- _hoisted_7$1,
6861
+ default: vue.withCtx(() => _cache[3] || (_cache[3] = [
6862
+ vue.createElementVNode("i", { class: "bi-pen" }, null, -1 /* HOISTED */),
6892
6863
  vue.createTextVNode(" Edit Details")
6893
- ]),
6864
+ ])),
6894
6865
  _: 1 /* STABLE */
6895
6866
  }, 8 /* PROPS */, ["current-data"]))
6896
6867
  : vue.createCommentVNode("v-if", true),
@@ -6916,10 +6887,10 @@ return (_ctx, _cache) => {
6916
6887
  }
6917
6888
  ]
6918
6889
  }, {
6919
- default: vue.withCtx(() => [
6920
- _hoisted_8$1,
6890
+ default: vue.withCtx(() => _cache[4] || (_cache[4] = [
6891
+ vue.createElementVNode("i", { class: "bi-key" }, null, -1 /* HOISTED */),
6921
6892
  vue.createTextVNode(" Change Password")
6922
- ]),
6893
+ ])),
6923
6894
  _: 1 /* STABLE */
6924
6895
  }))
6925
6896
  : vue.createCommentVNode("v-if", true)
@@ -6929,7 +6900,7 @@ return (_ctx, _cache) => {
6929
6900
  })
6930
6901
  ]))
6931
6902
  : vue.createCommentVNode("v-if", true),
6932
- vue.createElementVNode("div", _hoisted_9$1, [
6903
+ vue.createElementVNode("div", _hoisted_6$1, [
6933
6904
  vue.createVNode(script$4, null, {
6934
6905
  default: vue.withCtx(() => [
6935
6906
  vue.createVNode(script$n, {
@@ -6943,19 +6914,19 @@ return (_ctx, _cache) => {
6943
6914
  type: 'file',
6944
6915
  }]
6945
6916
  }, {
6946
- default: vue.withCtx(() => [
6947
- _hoisted_10$1
6948
- ]),
6917
+ default: vue.withCtx(() => _cache[6] || (_cache[6] = [
6918
+ vue.createElementVNode("i", { class: "bi-pen" }, null, -1 /* HOISTED */)
6919
+ ])),
6949
6920
  _: 1 /* STABLE */
6950
6921
  }),
6951
6922
  vue.createElementVNode("div", null, [
6952
- _hoisted_11$1,
6923
+ _cache[7] || (_cache[7] = vue.createElementVNode("h5", { class: "card-title" }, "Profile Picture", -1 /* HOISTED */)),
6953
6924
  vue.createElementVNode("img", {
6954
6925
  src: showProfilePicture(vue.unref(user)?.profile_picture),
6955
6926
  class: "img-fluid",
6956
6927
  alt: "profie-picture",
6957
6928
  style: {"width":"100%","height":"330px"}
6958
- }, null, 8 /* PROPS */, _hoisted_12$1)
6929
+ }, null, 8 /* PROPS */, _hoisted_7$1)
6959
6930
  ])
6960
6931
  ]),
6961
6932
  _: 1 /* STABLE */
@@ -6973,10 +6944,8 @@ return (_ctx, _cache) => {
6973
6944
 
6974
6945
  script$3.__file = "src/lib/components/core/auth/ShUserProfile.vue";
6975
6946
 
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 */);
6947
+ const _hoisted_1$2 = { class: "card sh-departments-card shadow" };
6948
+ const _hoisted_2$2 = { class: "card-body" };
6980
6949
 
6981
6950
 
6982
6951
  var script$2 = {
@@ -7001,19 +6970,19 @@ department.value = dept;
7001
6970
 
7002
6971
  return (_ctx, _cache) => {
7003
6972
  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, [
6973
+ _cache[2] || (_cache[2] = vue.createElementVNode("h5", null, "Departments", -1 /* HOISTED */)),
6974
+ vue.createElementVNode("div", _hoisted_1$2, [
6975
+ vue.createElementVNode("div", _hoisted_2$2, [
7007
6976
  vue.createElementVNode("a", {
7008
6977
  onClick: _cache[0] || (_cache[0] = $event => (editDepartment(null))),
7009
6978
  "data-bs-toggle": "modal",
7010
6979
  ref: "addDeptBtn",
7011
6980
  href: "#sh_department_modal",
7012
6981
  class: "btn btn-info btn-sm"
7013
- }, [
7014
- _hoisted_4$2,
6982
+ }, _cache[1] || (_cache[1] = [
6983
+ vue.createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */),
7015
6984
  vue.createTextVNode(" ADD DEPARTMENT")
7016
- ], 512 /* NEED_PATCH */),
6985
+ ]), 512 /* NEED_PATCH */),
7017
6986
  vue.createVNode(script$d, {
7018
6987
  reload: vue.unref(reload),
7019
6988
  headers: ['id','name','description', 'created_at'],
@@ -7064,17 +7033,8 @@ const _hoisted_1$1 = {
7064
7033
  class: "card sh-department-view shadow"
7065
7034
  };
7066
7035
  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 */);
7036
+ const _hoisted_3$1 = { class: "text-primary text-capitalize" };
7037
+ const _hoisted_4$1 = ["value"];
7078
7038
 
7079
7039
  var script$1 = {
7080
7040
  __name: 'Department',
@@ -7172,7 +7132,14 @@ return (_ctx, _cache) => {
7172
7132
  return (vue.unref(department))
7173
7133
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
7174
7134
  vue.createElementVNode("div", _hoisted_2$1, [
7175
- _hoisted_3$1,
7135
+ _cache[2] || (_cache[2] = vue.createElementVNode("a", {
7136
+ href: "#addModule",
7137
+ class: "btn btn-info btn-sm",
7138
+ "data-bs-toggle": "modal"
7139
+ }, [
7140
+ vue.createElementVNode("i", { class: "bi-plus" }),
7141
+ vue.createTextVNode(" ADD Module")
7142
+ ], -1 /* HOISTED */)),
7176
7143
  vue.createElementVNode("h5", null, "Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */),
7177
7144
  vue.createVNode(script$d, {
7178
7145
  actions: {
@@ -7229,7 +7196,7 @@ return (_ctx, _cache) => {
7229
7196
  default: vue.withCtx(() => [
7230
7197
  (vue.unref(getModule))
7231
7198
  ? (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 */),
7199
+ vue.createElementVNode("h5", _hoisted_3$1, "Permissions for " + vue.toDisplayString(vue.unref(getModule).module), 1 /* TEXT */),
7233
7200
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(modulePermissions), (permission) => {
7234
7201
  return (vue.openBlock(), vue.createElementBlock("div", {
7235
7202
  key: permission,
@@ -7242,7 +7209,7 @@ return (_ctx, _cache) => {
7242
7209
  type: "checkbox",
7243
7210
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(selectedPermissions) ? (selectedPermissions).value = $event : selectedPermissions = $event)),
7244
7211
  value: permission
7245
- }, null, 8 /* PROPS */, _hoisted_5$1), [
7212
+ }, null, 8 /* PROPS */, _hoisted_4$1), [
7246
7213
  [vue.vModelCheckbox, vue.unref(selectedPermissions)]
7247
7214
  ]),
7248
7215
  vue.createTextVNode(" " + vue.toDisplayString(getPermissionLabel(permission)), 1 /* TEXT */)
@@ -7252,10 +7219,10 @@ return (_ctx, _cache) => {
7252
7219
  vue.createElementVNode("button", {
7253
7220
  onClick: submitPermissions,
7254
7221
  class: "btn btn-info"
7255
- }, [
7256
- _hoisted_6$1,
7222
+ }, _cache[1] || (_cache[1] = [
7223
+ vue.createElementVNode("i", { class: "fa fa-save" }, null, -1 /* HOISTED */),
7257
7224
  vue.createTextVNode(" Submit")
7258
- ])
7225
+ ]))
7259
7226
  ], 64 /* STABLE_FRAGMENT */))
7260
7227
  : vue.createCommentVNode("v-if", true)
7261
7228
  ]),
@@ -7271,7 +7238,6 @@ return (_ctx, _cache) => {
7271
7238
 
7272
7239
  script$1.__file = "src/lib/components/core/Departments/department/Department.vue";
7273
7240
 
7274
- const _withScopeId = n => (vue.pushScopeId("data-v-2911509a"),n=n(),vue.popScopeId(),n);
7275
7241
  const _hoisted_1 = {
7276
7242
  key: 0,
7277
7243
  class: "alert alert-info"
@@ -7282,30 +7248,28 @@ const _hoisted_2 = {
7282
7248
  style: {"min-width":"400px"}
7283
7249
  };
7284
7250
  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 = {
7251
+ const _hoisted_4 = {
7287
7252
  key: 1,
7288
7253
  class: "sh-login-section"
7289
7254
  };
7290
- const _hoisted_6 = {
7255
+ const _hoisted_5 = {
7291
7256
  key: 0,
7292
7257
  class: "sh-login-title"
7293
7258
  };
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 = {
7259
+ const _hoisted_6 = { class: "sh-auth-footer" };
7260
+ const _hoisted_7 = {
7297
7261
  key: 2,
7298
7262
  class: "sh-register-section"
7299
7263
  };
7300
- const _hoisted_10 = {
7264
+ const _hoisted_8 = {
7301
7265
  key: 0,
7302
7266
  class: "sh-register-title"
7303
7267
  };
7304
- const _hoisted_11 = {
7268
+ const _hoisted_9 = {
7305
7269
  key: 1,
7306
7270
  class: "sh-register-link"
7307
7271
  };
7308
- const _hoisted_12 = { class: "sh-auth-footer" };
7272
+ const _hoisted_10 = { class: "sh-auth-footer" };
7309
7273
 
7310
7274
  var script = {
7311
7275
  __name: 'ShAuth',
@@ -7351,7 +7315,7 @@ const forgotSuccessful = ()=>{
7351
7315
  return (_ctx, _cache) => {
7352
7316
  return (vue.unref(user))
7353
7317
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
7354
- vue.createTextVNode("You are signed is as "),
7318
+ _cache[4] || (_cache[4] = vue.createTextVNode("You are signed is as ")),
7355
7319
  vue.createElementVNode("strong", null, vue.toDisplayString(vue.unref(user).name), 1 /* TEXT */)
7356
7320
  ]))
7357
7321
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -7368,17 +7332,17 @@ return (_ctx, _cache) => {
7368
7332
  vue.createElementVNode("strong", {
7369
7333
  onClick: _cache[0] || (_cache[0] = $event => (goToSection('login'))),
7370
7334
  class: "sh-register-link text-primary"
7371
- }, [
7372
- _hoisted_4,
7335
+ }, _cache[5] || (_cache[5] = [
7336
+ vue.createElementVNode("i", { class: "bi bi-arrow-left" }, null, -1 /* HOISTED */),
7373
7337
  vue.createTextVNode(" Back to Login ")
7374
- ])
7338
+ ]))
7375
7339
  ])
7376
7340
  ]))
7377
7341
  : vue.createCommentVNode("v-if", true),
7378
7342
  (section.value === 'login')
7379
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
7343
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
7380
7344
  (vue.unref(loginTitle))
7381
- ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_6, vue.toDisplayString(vue.unref(loginTitle)), 1 /* TEXT */))
7345
+ ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_5, vue.toDisplayString(vue.unref(loginTitle)), 1 /* TEXT */))
7382
7346
  : vue.createCommentVNode("v-if", true),
7383
7347
  vue.createVNode(script$y, {
7384
7348
  class: "sh-login-form",
@@ -7387,12 +7351,12 @@ return (_ctx, _cache) => {
7387
7351
  action: vue.unref(loginEndpoint),
7388
7352
  "success-callback": loginSuccessful
7389
7353
  }, null, 8 /* PROPS */, ["action"]),
7390
- vue.createElementVNode("div", _hoisted_7, [
7354
+ vue.createElementVNode("div", _hoisted_6, [
7391
7355
  vue.createElementVNode("strong", {
7392
7356
  class: "sh-forgot-link text-primary",
7393
7357
  onClick: _cache[1] || (_cache[1] = $event => (goToSection('forgot')))
7394
7358
  }, "Forgotten password?"),
7395
- _hoisted_8,
7359
+ _cache[6] || (_cache[6] = vue.createElementVNode("strong", { class: "bi-dot" }, null, -1 /* HOISTED */)),
7396
7360
  vue.createElementVNode("strong", {
7397
7361
  onClick: _cache[2] || (_cache[2] = $event => (goToSection('register'))),
7398
7362
  class: "sh-register-link text-primary"
@@ -7401,12 +7365,12 @@ return (_ctx, _cache) => {
7401
7365
  ]))
7402
7366
  : vue.createCommentVNode("v-if", true),
7403
7367
  (section.value === 'register')
7404
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
7368
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
7405
7369
  (vue.unref(registerTitle))
7406
- ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_10, vue.toDisplayString(vue.unref(registerTitle)), 1 /* TEXT */))
7370
+ ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_8, vue.toDisplayString(vue.unref(registerTitle)), 1 /* TEXT */))
7407
7371
  : vue.createCommentVNode("v-if", true),
7408
7372
  (vue.unref(registerSubTitle))
7409
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
7373
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
7410
7374
  : vue.createCommentVNode("v-if", true),
7411
7375
  vue.createVNode(script$y, {
7412
7376
  class: "sh-login-form",
@@ -7415,7 +7379,7 @@ return (_ctx, _cache) => {
7415
7379
  action: vue.unref(registerEndpoint),
7416
7380
  "success-callback": loginSuccessful
7417
7381
  }, null, 8 /* PROPS */, ["fields", "action"]),
7418
- vue.createElementVNode("div", _hoisted_12, [
7382
+ vue.createElementVNode("div", _hoisted_10, [
7419
7383
  vue.createElementVNode("strong", {
7420
7384
  onClick: _cache[3] || (_cache[3] = $event => (goToSection('login'))),
7421
7385
  class: "sh-register-link text-primary"