lau-ecom-design-system 1.0.21 → 1.0.23

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, createElementVNode, createStaticVNode, computed, normalizeClass, createBlock, unref, createCommentVNode, renderSlot, ref, watch, withDirectives, vModelRadio, toDisplayString, createVNode, onMounted, onBeforeUnmount, nextTick, withKeys, vModelText, normalizeStyle, vShow, toRefs, Fragment, renderList, mergeModels, useModel, vModelCheckbox, withCtx, createTextVNode, onBeforeMount, resolveComponent } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, createStaticVNode, computed, normalizeClass, createBlock, unref, createCommentVNode, renderSlot, ref, watch, withDirectives, vModelRadio, toDisplayString, createVNode, onMounted, onBeforeUnmount, nextTick, normalizeStyle, withKeys, vModelText, vShow, toRefs, Fragment, renderList, mergeModels, useModel, vModelCheckbox, withCtx, createTextVNode, onBeforeMount, resolveComponent } from 'vue';
2
2
 
3
3
  const _hoisted_1$L = ["width", "height"];
4
4
  var script$O = /*@__PURE__*/defineComponent({
@@ -572,11 +572,11 @@ script$z.__file = "src/components/LauEcomIcon/LauEcomCbtIconGirlReading.vue";
572
572
  const _hoisted_1$v = ["width", "height"];
573
573
  const _hoisted_2$i = ["fill"];
574
574
  const _hoisted_3$e = ["fill"];
575
- const _hoisted_4$8 = ["fill"];
576
- const _hoisted_5$7 = ["fill"];
575
+ const _hoisted_4$7 = ["fill"];
576
+ const _hoisted_5$6 = ["fill"];
577
577
  const _hoisted_6$5 = ["fill"];
578
- const _hoisted_7$3 = ["fill"];
579
- const _hoisted_8$3 = ["fill"];
578
+ const _hoisted_7$4 = ["fill"];
579
+ const _hoisted_8$4 = ["fill"];
580
580
  var script$y = /*@__PURE__*/defineComponent({
581
581
  __name: 'LauEcomCbtIconChart',
582
582
  props: {
@@ -613,19 +613,19 @@ var script$y = /*@__PURE__*/defineComponent({
613
613
  }, null, 8 /* PROPS */, _hoisted_3$e), createElementVNode("path", {
614
614
  d: "M41.1582 33.1329C41.3492 33.3228 41.7311 33.5127 42.1131 33.5127C42.8769 33.5127 43.4498 33.5127 44.0227 33.5127H44.5956C44.9775 33.5127 45.3594 33.3228 45.5504 33.1329C45.7414 32.943 45.9323 32.5633 45.9323 32.1835C45.9323 28.576 45.9323 24.9684 45.9323 21.3608C45.9323 20.981 45.7414 20.6013 45.5504 20.4114C45.3594 20.2215 44.9775 20.0316 44.5956 20.0316H44.0227C43.4498 20.0316 42.8769 20.0316 42.1131 20.0316C41.5402 20.0316 41.3492 20.0316 40.9673 20.4114C40.7763 20.6013 40.5854 20.981 40.5854 21.5506C40.5854 22.6899 40.5854 24.019 40.5854 25.1582V28.0063C40.5854 29.3354 40.5854 30.6646 40.5854 31.9937C40.7763 32.5633 40.7763 32.7532 41.1582 33.1329ZM42.8769 31.2342V22.3101H43.6408V31.2342H42.8769Z",
615
615
  fill: _ctx.color
616
- }, null, 8 /* PROPS */, _hoisted_4$8), createElementVNode("path", {
616
+ }, null, 8 /* PROPS */, _hoisted_4$7), createElementVNode("path", {
617
617
  d: "M32.183 21.9304C31.992 21.7405 31.6101 21.5506 31.0372 21.5506C30.2733 21.5506 29.5095 21.5506 28.7456 21.5506C28.3637 21.5506 27.9818 21.7405 27.7908 21.9304C27.5998 22.1203 27.4089 22.5 27.4089 22.8797C27.4089 24.9684 27.4089 27.057 27.4089 29.1456V32.1835C27.4089 32.5633 27.5998 32.943 27.7908 33.1329C27.9818 33.3228 28.3637 33.5127 28.7456 33.5127H29.1275C29.8914 33.5127 30.6552 33.5127 31.4191 33.5127C31.801 33.5127 32.183 33.3228 32.3739 33.1329C32.5649 32.943 32.7558 32.5633 32.7558 32.1835C32.7558 31.0443 32.7558 30.0949 32.7558 28.9557V26.2975C32.7558 25.1582 32.7558 24.2089 32.7558 23.0696C32.3739 22.5 32.3739 22.1203 32.183 21.9304ZM30.2733 23.8291V31.2342H29.5095V23.8291H30.2733Z",
618
618
  fill: _ctx.color
619
- }, null, 8 /* PROPS */, _hoisted_5$7), createElementVNode("path", {
619
+ }, null, 8 /* PROPS */, _hoisted_5$6), createElementVNode("path", {
620
620
  d: "M38.8667 24.2089C38.6757 24.019 38.2938 23.8291 37.9119 23.8291C36.957 23.8291 36.1932 23.8291 35.2384 23.8291C34.8564 23.8291 34.4745 24.019 34.2836 24.2089C34.0926 24.3987 33.9016 24.7785 33.9016 25.1582C33.9016 27.4367 33.9016 29.9051 33.9016 32.1835C33.9016 32.5633 34.0926 32.943 34.2836 33.1329C34.4745 33.3228 34.8564 33.5127 35.2384 33.5127H35.8113C36.5751 33.5127 37.148 33.5127 37.7209 33.5127C38.1028 33.5127 38.4848 33.3228 38.6757 33.1329C38.8667 32.943 39.0576 32.5633 39.0576 32.1835C39.0576 31.4241 39.0576 30.6646 39.0576 29.9051V27.6266C39.0576 26.8671 39.0576 26.1076 39.0576 25.1582C39.0576 24.7785 39.0576 24.3987 38.8667 24.2089ZM36.957 26.1076V31.2342H36.1932V26.1076H36.957Z",
621
621
  fill: _ctx.color
622
622
  }, null, 8 /* PROPS */, _hoisted_6$5), createElementVNode("path", {
623
623
  d: "M20.5342 31.8038C20.5342 33.1329 20.9161 33.3228 22.0619 33.3228C22.2529 33.3228 22.6348 33.3228 22.8257 33.3228C23.2077 33.3228 23.7806 33.3228 24.1625 33.3228C24.1625 33.3228 24.1625 33.3228 24.3535 33.3228C24.7354 33.3228 25.1173 33.1329 25.3083 32.943C25.4992 32.7532 25.6902 32.3734 25.6902 31.8038C25.6902 30.6646 25.6902 29.3354 25.6902 28.0063C25.6902 27.6266 25.4992 27.2468 25.3083 26.8671C25.1173 26.6772 24.7354 26.4873 24.1625 26.4873C23.3986 26.4873 22.6348 26.4873 21.8709 26.4873C21.298 26.4873 20.9161 26.4873 20.7251 26.8671C20.5342 27.057 20.3432 27.4367 20.3432 28.0063C20.3432 28.3861 20.3432 28.7658 20.3432 29.3354V30.4747C20.5342 31.0443 20.5342 31.4241 20.5342 31.8038ZM22.8257 31.2342V28.9557H23.5896V31.2342H22.8257Z",
624
624
  fill: _ctx.color
625
- }, null, 8 /* PROPS */, _hoisted_7$3), createElementVNode("path", {
625
+ }, null, 8 /* PROPS */, _hoisted_7$4), createElementVNode("path", {
626
626
  d: "M10.4131 37.1203L10.986 39.2089L12.8956 38.8291L12.5137 36.7405L10.4131 37.1203Z",
627
627
  fill: _ctx.color
628
- }, null, 8 /* PROPS */, _hoisted_8$3)], 8 /* PROPS */, _hoisted_1$v);
628
+ }, null, 8 /* PROPS */, _hoisted_8$4)], 8 /* PROPS */, _hoisted_1$v);
629
629
  };
630
630
  }
631
631
  });
@@ -880,6 +880,55 @@ var script$r = /*@__PURE__*/defineComponent({
880
880
 
881
881
  script$r.__file = "src/components/LauEcomIcon/LauEcomUpcIconNavBack.vue";
882
882
 
883
+ const _hoisted_1$n = ["width", "height"];
884
+ const _hoisted_2$h = ["stroke"];
885
+ const _hoisted_3$d = ["stroke"];
886
+ var script$q = /*@__PURE__*/defineComponent({
887
+ __name: 'LauEcomUpcIconSearch',
888
+ props: {
889
+ color: {
890
+ type: String,
891
+ required: false,
892
+ default: "currentColor"
893
+ },
894
+ width: {
895
+ type: String,
896
+ required: false,
897
+ default: "24"
898
+ },
899
+ height: {
900
+ type: String,
901
+ required: false,
902
+ default: "24"
903
+ }
904
+ },
905
+ setup(__props) {
906
+ return (_ctx, _cache) => {
907
+ return openBlock(), createElementBlock("svg", {
908
+ width: _ctx.width,
909
+ height: _ctx.height,
910
+ viewBox: "0 0 24 24",
911
+ fill: "none",
912
+ xmlns: "http://www.w3.org/2000/svg"
913
+ }, [createElementVNode("path", {
914
+ d: "M11 19C15.4183 19 19 15.4183 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19Z",
915
+ stroke: _ctx.color,
916
+ "stroke-width": "2",
917
+ "stroke-linecap": "round",
918
+ "stroke-linejoin": "round"
919
+ }, null, 8 /* PROPS */, _hoisted_2$h), createElementVNode("path", {
920
+ d: "M21 21L16.65 16.65",
921
+ stroke: _ctx.color,
922
+ "stroke-width": "2",
923
+ "stroke-linecap": "round",
924
+ "stroke-linejoin": "round"
925
+ }, null, 8 /* PROPS */, _hoisted_3$d)], 8 /* PROPS */, _hoisted_1$n);
926
+ };
927
+ }
928
+ });
929
+
930
+ script$q.__file = "src/components/LauEcomIcon/LauEcomUpcIconSearch.vue";
931
+
883
932
  let LauEcomButtonType = /*#__PURE__*/function (LauEcomButtonType) {
884
933
  LauEcomButtonType["Primary"] = "primary";
885
934
  LauEcomButtonType["Secondary"] = "secondary";
@@ -902,8 +951,8 @@ let LauEcomSize = /*#__PURE__*/function (LauEcomSize) {
902
951
  return LauEcomSize;
903
952
  }({});
904
953
 
905
- const _hoisted_1$n = ["disabled"];
906
- var script$q = /*@__PURE__*/defineComponent({
954
+ const _hoisted_1$m = ["disabled"];
955
+ var script$p = /*@__PURE__*/defineComponent({
907
956
  __name: 'LauEcomButton',
908
957
  props: {
909
958
  type: {
@@ -958,17 +1007,17 @@ var script$q = /*@__PURE__*/defineComponent({
958
1007
  }, [_ctx.hasArrow ? (openBlock(), createBlock(unref(script$O), {
959
1008
  key: 0,
960
1009
  class: normalizeClass(iconClasses.value)
961
- }, null, 8 /* PROPS */, ["class"])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$n);
1010
+ }, null, 8 /* PROPS */, ["class"])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$m);
962
1011
  };
963
1012
  }
964
1013
  });
965
1014
 
966
- script$q.__scopeId = "data-v-7cd3bda6";
967
- script$q.__file = "src/components/LauEcomButton/LauEcomButton.vue";
1015
+ script$p.__scopeId = "data-v-7cd3bda6";
1016
+ script$p.__file = "src/components/LauEcomButton/LauEcomButton.vue";
968
1017
 
969
- const _hoisted_1$m = ["id", "disabled", "value"];
970
- const _hoisted_2$h = ["for"];
971
- var script$p = /*@__PURE__*/defineComponent({
1018
+ const _hoisted_1$l = ["id", "disabled", "value"];
1019
+ const _hoisted_2$g = ["for"];
1020
+ var script$o = /*@__PURE__*/defineComponent({
972
1021
  __name: 'LauEcomRadioButton',
973
1022
  props: {
974
1023
  id: {
@@ -1031,24 +1080,24 @@ var script$p = /*@__PURE__*/defineComponent({
1031
1080
  disabled: _ctx.isDisabled,
1032
1081
  value: _ctx.value,
1033
1082
  onChange: handleChange
1034
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1$m), [[vModelRadio, radioGroupValue.value]]), createElementVNode("span", {
1083
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1$l), [[vModelRadio, radioGroupValue.value]]), createElementVNode("span", {
1035
1084
  for: _ctx.id
1036
- }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$h)]);
1085
+ }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$g)]);
1037
1086
  };
1038
1087
  }
1039
1088
  });
1040
1089
 
1041
- script$p.__scopeId = "data-v-1e1b236f";
1042
- script$p.__file = "src/components/LauEcomRadioButton/LauEcomRadioButton.vue";
1090
+ script$o.__scopeId = "data-v-1e1b236f";
1091
+ script$o.__file = "src/components/LauEcomRadioButton/LauEcomRadioButton.vue";
1043
1092
 
1044
- const _hoisted_1$l = {
1093
+ const _hoisted_1$k = {
1045
1094
  class: "dsEcom-flex"
1046
1095
  };
1047
- const _hoisted_2$g = {
1096
+ const _hoisted_2$f = {
1048
1097
  class: "lau-ecom-label group upc-font-body-reg-05-14px"
1049
1098
  };
1050
- const _hoisted_3$d = ["required", "disabled", "checked"];
1051
- var script$o = /*@__PURE__*/defineComponent({
1099
+ const _hoisted_3$c = ["required", "disabled", "checked"];
1100
+ var script$n = /*@__PURE__*/defineComponent({
1052
1101
  __name: 'LauEcomCheckbox',
1053
1102
  props: {
1054
1103
  id: {
@@ -1115,14 +1164,14 @@ var script$o = /*@__PURE__*/defineComponent({
1115
1164
  return "";
1116
1165
  });
1117
1166
  return (_ctx, _cache) => {
1118
- return openBlock(), createElementBlock("div", _hoisted_1$l, [createElementVNode("label", _hoisted_2$g, [createElementVNode("input", {
1167
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [createElementVNode("label", _hoisted_2$f, [createElementVNode("input", {
1119
1168
  class: normalizeClass(lauEcomCheckboxClasses.value),
1120
1169
  type: "checkbox",
1121
1170
  required: _ctx.isRequired,
1122
1171
  disabled: _ctx.isDisabled,
1123
1172
  checked: isChecked.value,
1124
1173
  onChange: handleChange
1125
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_3$d), createVNode(unref(script$N), {
1174
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_3$c), createVNode(unref(script$N), {
1126
1175
  class: "icon-checkmark",
1127
1176
  width: "16",
1128
1177
  height: "16"
@@ -1138,27 +1187,27 @@ var script$o = /*@__PURE__*/defineComponent({
1138
1187
  }
1139
1188
  });
1140
1189
 
1141
- script$o.__scopeId = "data-v-51a6198f";
1142
- script$o.__file = "src/components/LauEcomCheckbox/LauEcomCheckbox.vue";
1190
+ script$n.__scopeId = "data-v-51a6198f";
1191
+ script$n.__file = "src/components/LauEcomCheckbox/LauEcomCheckbox.vue";
1143
1192
 
1144
- const _hoisted_1$k = {
1193
+ const _hoisted_1$j = {
1145
1194
  class: "dsEcom-flex dsEcom-flex-col"
1146
1195
  };
1147
- const _hoisted_2$f = ["id", "type", "placeholder", "name", "disabled", "value", "maxlength"];
1148
- const _hoisted_3$c = {
1196
+ const _hoisted_2$e = ["id", "type", "placeholder", "name", "disabled", "value", "maxlength"];
1197
+ const _hoisted_3$b = {
1149
1198
  key: 1,
1150
1199
  class: "lau-ecom-error-message core-font-body-reg-06-12px"
1151
1200
  };
1152
- const _hoisted_4$7 = {
1201
+ const _hoisted_4$6 = {
1153
1202
  class: "dsEcom-flex"
1154
1203
  };
1155
- const _hoisted_5$6 = {
1204
+ const _hoisted_5$5 = {
1156
1205
  class: "dsEcom-ml-1"
1157
1206
  };
1158
1207
  const _hoisted_6$4 = {
1159
1208
  key: 0
1160
1209
  };
1161
- var script$n = /*@__PURE__*/defineComponent({
1210
+ var script$m = /*@__PURE__*/defineComponent({
1162
1211
  __name: 'LauEcomInput',
1163
1212
  props: {
1164
1213
  id: {
@@ -1270,7 +1319,7 @@ var script$n = /*@__PURE__*/defineComponent({
1270
1319
  return ["lau-ecom-success", props.size === LauEcomSize.md ? "dsEcom-top-[10px]" : "dsEcom-top-3"];
1271
1320
  });
1272
1321
  return (_ctx, _cache) => {
1273
- return openBlock(), createElementBlock("div", _hoisted_1$k, [_ctx.label ? (openBlock(), createElementBlock("label", {
1322
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [_ctx.label ? (openBlock(), createElementBlock("label", {
1274
1323
  key: 0,
1275
1324
  class: normalizeClass(labelClasses.value)
1276
1325
  }, toDisplayString(_ctx.label), 3 /* TEXT, CLASS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
@@ -1285,86 +1334,89 @@ var script$n = /*@__PURE__*/defineComponent({
1285
1334
  value: inputValue.value,
1286
1335
  maxlength: _ctx.limit,
1287
1336
  onInput: handleInput
1288
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_2$f), _ctx.hasSuccess && !errorMessageValue.value ? (openBlock(), createElementBlock("div", {
1337
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_2$e), _ctx.hasSuccess && !errorMessageValue.value ? (openBlock(), createElementBlock("div", {
1289
1338
  key: 0,
1290
1339
  class: normalizeClass(successClasses.value)
1291
1340
  }, [createVNode(unref(script$N), {
1292
1341
  class: "dsEcom-fill-feedback-success-60",
1293
1342
  width: "24",
1294
1343
  height: "24"
1295
- })], 2 /* CLASS */)) : createCommentVNode("v-if", true), errorMessageValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, [createElementVNode("div", _hoisted_4$7, [createVNode(unref(script$M), {
1344
+ })], 2 /* CLASS */)) : createCommentVNode("v-if", true), errorMessageValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$b, [createElementVNode("div", _hoisted_4$6, [createVNode(unref(script$M), {
1296
1345
  class: "dsEcom-fill-primary-60",
1297
1346
  width: "16",
1298
1347
  height: "16"
1299
- }), createElementVNode("p", _hoisted_5$6, toDisplayString(errorMessageValue.value), 1 /* TEXT */)]), inputValue.value.toString().length === _ctx.limit ? (openBlock(), createElementBlock("span", _hoisted_6$4, toDisplayString(`${inputValue.value.toString().length}/${_ctx.limit}`), 1 /* TEXT */)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)], 2 /* CLASS */)]);
1348
+ }), createElementVNode("p", _hoisted_5$5, toDisplayString(errorMessageValue.value), 1 /* TEXT */)]), inputValue.value.toString().length === _ctx.limit ? (openBlock(), createElementBlock("span", _hoisted_6$4, toDisplayString(`${inputValue.value.toString().length}/${_ctx.limit}`), 1 /* TEXT */)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)], 2 /* CLASS */)]);
1300
1349
  };
1301
1350
  }
1302
1351
  });
1303
1352
 
1304
- script$n.__scopeId = "data-v-df501de2";
1305
- script$n.__file = "src/components/LauEcomInput/LauEcomInput.vue";
1353
+ script$m.__scopeId = "data-v-df501de2";
1354
+ script$m.__file = "src/components/LauEcomInput/LauEcomInput.vue";
1306
1355
 
1307
- const _hoisted_1$j = {
1308
- class: "dsEcom-flex dsEcom-flex-col"
1356
+ const _hoisted_1$i = {
1357
+ class: "dsEcom-relative"
1309
1358
  };
1310
- const _hoisted_2$e = ["id", "type", "placeholder", "name", "disabled", "value", "maxlength"];
1311
- const _hoisted_3$b = {
1312
- key: 1,
1313
- class: "lau-ecom-error-message core-font-body-reg-06-12px"
1359
+ const _hoisted_2$d = {
1360
+ class: "dsEcom-flex dsEcom-items-center dsEcom-gap-2 dsEcom-p-4"
1314
1361
  };
1315
- const _hoisted_4$6 = {
1316
- class: "dsEcom-flex"
1362
+ const _hoisted_3$a = {
1363
+ class: "dsEcom-flex dsEcom-items-center dsEcom-gap-2 dsEcom-flex-1"
1317
1364
  };
1318
- const _hoisted_5$5 = {
1319
- class: "dsEcom-ml-1"
1365
+ const _hoisted_4$5 = {
1366
+ class: "dsEcom-flex dsEcom-items-center dsEcom-gap-0 dsEcom-flex-1"
1320
1367
  };
1368
+ const _hoisted_5$4 = ["placeholder", "disabled"];
1321
1369
  const _hoisted_6$3 = {
1322
- key: 0
1370
+ key: 2
1323
1371
  };
1324
- var script$m = /*@__PURE__*/defineComponent({
1325
- __name: 'LauEcomInput2',
1372
+ const _hoisted_7$3 = ["placeholder", "disabled"];
1373
+ const _hoisted_8$3 = {
1374
+ class: "dsEcom-absolute dsEcom-right-0 dsEcom-inset-y-0 dsEcom-flex dsEcom-items-stretch"
1375
+ };
1376
+ const _hoisted_9$1 = {
1377
+ class: "dsEcom-relative"
1378
+ };
1379
+ const _hoisted_10$1 = ["placeholder", "disabled"];
1380
+ const _hoisted_11$1 = {
1381
+ class: "dsEcom-absolute dsEcom-right-0 dsEcom-inset-y-0 dsEcom-flex dsEcom-items-stretch"
1382
+ };
1383
+
1384
+ // Log de versión del componente
1385
+
1386
+ var script$l = /*@__PURE__*/defineComponent({
1387
+ __name: 'LauEcomInputSearch',
1326
1388
  props: {
1327
- id: {
1328
- type: String,
1329
- required: false,
1330
- default: "lauEcomInput"
1331
- },
1332
- type: {
1333
- type: String,
1334
- required: false,
1335
- default: "text"
1336
- },
1337
1389
  placeholder: {
1338
1390
  type: String,
1339
1391
  required: false,
1340
- default: "Placeholder"
1392
+ default: "Quiero aprender..."
1341
1393
  },
1342
1394
  isDisabled: {
1343
1395
  type: Boolean,
1344
1396
  required: false,
1345
1397
  default: false
1346
1398
  },
1347
- label: {
1399
+ modelValue: {
1348
1400
  type: String,
1349
1401
  required: false,
1350
- default: "Text label"
1402
+ default: ""
1351
1403
  },
1352
- size: {
1353
- type: null,
1404
+ forceClose: {
1405
+ type: Boolean,
1354
1406
  required: false,
1355
- default: LauEcomSize.md
1407
+ default: false
1356
1408
  },
1357
- name: {
1409
+ buttonColorClass: {
1358
1410
  type: String,
1359
1411
  required: false,
1360
- default: "input"
1412
+ default: "dsEcom-bg-primary-60 hover:dsEcom-bg-primary-70"
1361
1413
  },
1362
- modelValue: {
1363
- type: [String, Number],
1414
+ buttonTextColorClass: {
1415
+ type: String,
1364
1416
  required: false,
1365
- default: ""
1417
+ default: "dsEcom-text-white"
1366
1418
  },
1367
- inputContainerClass: {
1419
+ buttonClass: {
1368
1420
  type: String,
1369
1421
  required: false,
1370
1422
  default: ""
@@ -1372,147 +1424,68 @@ var script$m = /*@__PURE__*/defineComponent({
1372
1424
  inputClass: {
1373
1425
  type: String,
1374
1426
  required: false,
1375
- default: ""
1427
+ default: "dsEcom-h-10 dsEcom-rounded-lg"
1376
1428
  },
1377
- errorMessage: {
1429
+ containerClass: {
1378
1430
  type: String,
1379
1431
  required: false,
1380
1432
  default: ""
1381
1433
  },
1382
- hasSuccess: {
1434
+ expandedWidth: {
1435
+ type: String,
1436
+ required: false,
1437
+ default: "50vw"
1438
+ },
1439
+ isMobileSearch: {
1383
1440
  type: Boolean,
1384
1441
  required: false,
1385
1442
  default: false
1386
1443
  },
1387
- limit: {
1388
- type: Number,
1444
+ arrowColorClass: {
1445
+ type: String,
1389
1446
  required: false,
1390
- default: 50
1391
- }
1392
- },
1393
- emits: ["update:modelValue"],
1394
- setup(__props, {
1395
- emit: __emit
1396
- }) {
1397
- const props = __props;
1398
- const emit = __emit;
1399
- const inputValue = ref(props.modelValue);
1400
- const errorMessageValue = ref(props.errorMessage);
1401
- const handleInput = event => {
1402
- const newValue = event.target.value;
1403
- if (newValue.length === props.limit) {
1404
- errorMessageValue.value = "Excediste el numero de caracteres";
1405
- inputValue.value = newValue;
1406
- emit("update:modelValue", newValue);
1407
- return;
1408
- } else {
1409
- errorMessageValue.value = props.errorMessage;
1410
- }
1411
- inputValue.value = newValue;
1412
- emit("update:modelValue", newValue);
1413
- };
1414
- const labelClasses = computed(() => {
1415
- return {
1416
- "lau-ecom-label": true,
1417
- "lau-ecom-label--disabled": props.isDisabled
1418
- };
1419
- });
1420
- const inputContainerClasses = computed(() => {
1421
- return ["dsEcom-relative", props.inputContainerClass ? props.inputContainerClass : "dsEcom-w-[284px]", props.size === LauEcomSize.md ? "dsEcom-h-[42px]" : "dsEcom-h-[46px]"];
1422
- });
1423
- const inputClasses = computed(() => {
1424
- return ["lau-ecom-input core-font-body-reg-04-16px", props.inputClass, props.size === LauEcomSize.md ? "dsEcom-py-[9px]" : "dsEcom-py-[11px]", {
1425
- "lau-ecom-input--disabled": props.isDisabled
1426
- }, {
1427
- "lau-ecom-input--error": errorMessageValue.value
1428
- }, {
1429
- "lau-ecom-input-success": props.hasSuccess && !errorMessageValue.value
1430
- }, props.hasSuccess || errorMessageValue.value ? "placeholder:!dsEcom-text-neutral-100" : "placeholder:!dsEcom-text-neutral-80"];
1431
- });
1432
- const successClasses = computed(() => {
1433
- return ["lau-ecom-success", props.size === LauEcomSize.md ? "dsEcom-top-[10px]" : "dsEcom-top-3"];
1434
- });
1435
- return (_ctx, _cache) => {
1436
- return openBlock(), createElementBlock("div", _hoisted_1$j, [_ctx.label ? (openBlock(), createElementBlock("label", {
1437
- key: 0,
1438
- class: normalizeClass(labelClasses.value)
1439
- }, toDisplayString(_ctx.label), 3 /* TEXT, CLASS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
1440
- class: normalizeClass(inputContainerClasses.value)
1441
- }, [createElementVNode("input", {
1442
- id: _ctx.id,
1443
- class: normalizeClass(inputClasses.value),
1444
- type: _ctx.type,
1445
- placeholder: _ctx.placeholder,
1446
- name: _ctx.name,
1447
- disabled: _ctx.isDisabled,
1448
- value: inputValue.value,
1449
- maxlength: _ctx.limit,
1450
- onInput: handleInput
1451
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_2$e), _ctx.hasSuccess && !errorMessageValue.value ? (openBlock(), createElementBlock("div", {
1452
- key: 0,
1453
- class: normalizeClass(successClasses.value)
1454
- }, [createVNode(unref(script$N), {
1455
- class: "dsEcom-fill-feedback-success-60",
1456
- width: "24",
1457
- height: "24"
1458
- })], 2 /* CLASS */)) : createCommentVNode("v-if", true), errorMessageValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$b, [createElementVNode("div", _hoisted_4$6, [createVNode(unref(script$M), {
1459
- class: "dsEcom-fill-primary-60",
1460
- width: "16",
1461
- height: "16"
1462
- }), createElementVNode("p", _hoisted_5$5, toDisplayString(errorMessageValue.value), 1 /* TEXT */)]), inputValue.value.toString().length === _ctx.limit ? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString(`${inputValue.value.toString().length}/${_ctx.limit}`), 1 /* TEXT */)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)], 2 /* CLASS */)]);
1463
- };
1464
- }
1465
- });
1466
-
1467
- script$m.__scopeId = "data-v-1dc17999";
1468
- script$m.__file = "src/components/LauEcomInput2/LauEcomInput2.vue";
1469
-
1470
- const _hoisted_1$i = {
1471
- class: "dsEcom-relative"
1472
- };
1473
- const _hoisted_2$d = ["placeholder", "disabled"];
1474
- const _hoisted_3$a = {
1475
- class: "dsEcom-relative"
1476
- };
1477
- const _hoisted_4$5 = ["placeholder", "disabled"];
1478
- const _hoisted_5$4 = {
1479
- class: "dsEcom-absolute dsEcom-right-2 dsEcom-top-1/2 -dsEcom-translate-y-1/2 dsEcom-flex dsEcom-gap-2"
1480
- };
1481
-
1482
- // Log de versión del componente
1483
-
1484
- var script$l = /*@__PURE__*/defineComponent({
1485
- __name: 'LauEcomInputSearch',
1486
- props: {
1487
- placeholder: {
1447
+ default: "dsEcom-text-neutral-100"
1448
+ },
1449
+ arrowButtonClass: {
1488
1450
  type: String,
1489
1451
  required: false,
1490
- default: "Quiero aprender..."
1452
+ default: ""
1491
1453
  },
1492
- isDisabled: {
1493
- type: Boolean,
1454
+ mobileInputWidth: {
1455
+ type: String,
1494
1456
  required: false,
1495
- default: false
1457
+ default: "240px"
1496
1458
  },
1497
- modelValue: {
1459
+ mobileInputHeight: {
1498
1460
  type: String,
1499
1461
  required: false,
1500
- default: ""
1462
+ default: "40px"
1501
1463
  },
1502
- forceClose: {
1503
- type: Boolean,
1464
+ mobilePanelClass: {
1465
+ type: String,
1504
1466
  required: false,
1505
- default: false
1467
+ default: "dsEcom-bg-white"
1468
+ },
1469
+ expandedBackgroundClass: {
1470
+ type: String,
1471
+ required: false,
1472
+ default: "dsEcom-bg-white"
1473
+ },
1474
+ overlayClass: {
1475
+ type: String,
1476
+ required: false,
1477
+ default: "dsEcom-bg-black dsEcom-opacity-50"
1506
1478
  }
1507
1479
  },
1508
1480
  emits: {
1509
1481
  "update:modelValue": value => true,
1510
- "search": value => true
1482
+ "search": value => true,
1483
+ "click:search-icon": () => true
1511
1484
  },
1512
1485
  setup(__props, {
1513
1486
  emit: __emit
1514
1487
  }) {
1515
- console.log('🔍 InputSearch Version: 1.0.20 - Debug Mode');
1488
+ console.log('🔍 InputSearch Version: 1.0.25 - Debug Mode');
1516
1489
  const props = __props;
1517
1490
 
1518
1491
  // Log de props iniciales
@@ -1526,6 +1499,8 @@ var script$l = /*@__PURE__*/defineComponent({
1526
1499
  const searchQuery = ref(props.modelValue);
1527
1500
  const isExpanded = ref(false);
1528
1501
  const showOverlay = ref(false);
1502
+ const isMobileView = ref(false);
1503
+ const isMobileSearchOpen = ref(false);
1529
1504
  const handleSearch = () => {
1530
1505
  console.log('🔍 Search triggered:', {
1531
1506
  query: searchQuery.value,
@@ -1535,6 +1510,7 @@ var script$l = /*@__PURE__*/defineComponent({
1535
1510
  if (searchQuery.value && searchQuery.value.trim()) {
1536
1511
  emit("search", searchQuery.value);
1537
1512
  emit("update:modelValue", searchQuery.value);
1513
+ emit("click:search-icon");
1538
1514
  closeSearch();
1539
1515
  }
1540
1516
  };
@@ -1568,16 +1544,16 @@ var script$l = /*@__PURE__*/defineComponent({
1568
1544
  showOverlay.value = true;
1569
1545
  };
1570
1546
  const containerClasses = computed(() => {
1571
- const classes = ["dsEcom-transition-transform dsEcom-duration-300 dsEcom-ease-in-out", {
1572
- "dsEcom-relative dsEcom-w-[250px] md:dsEcom-w-[350px]": !isExpanded.value
1547
+ const classes = ["dsEcom-transition-transform dsEcom-duration-300 dsEcom-ease-in-out dsEcom-relative", {
1548
+ "dsEcom-w-[250px] md:dsEcom-w-[350px]": !isExpanded.value
1573
1549
  }];
1574
1550
  console.log('🔍 Container classes updated:', {
1575
1551
  isExpanded: isExpanded.value
1576
1552
  });
1577
1553
  return classes;
1578
1554
  });
1579
- const overlayClasses = computed(() => ["dsEcom-fixed dsEcom-inset-0 dsEcom-bg-black dsEcom-transition-opacity dsEcom-duration-300 dsEcom-ease-in-out dsEcom-z-40", {
1580
- "dsEcom-opacity-50": showOverlay.value,
1555
+ const overlayClasses = computed(() => ["dsEcom-fixed dsEcom-inset-0 dsEcom-transition-opacity dsEcom-duration-300 dsEcom-ease-in-out dsEcom-z-40", props.overlayClass, {
1556
+ "dsEcom-opacity-100": showOverlay.value,
1581
1557
  "dsEcom-opacity-0 dsEcom-pointer-events-none": !showOverlay.value
1582
1558
  }]);
1583
1559
  const originalContainer = ref(null);
@@ -1585,20 +1561,62 @@ var script$l = /*@__PURE__*/defineComponent({
1585
1561
  const updateExpandedPosition = () => {
1586
1562
  if (originalContainer.value && expandedContainer.value) {
1587
1563
  const rect = originalContainer.value.getBoundingClientRect();
1588
- const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
1589
- expandedContainer.value.style.top = `${rect.top + scrollTop}px`;
1590
- console.log('🔍 Updated expanded position:', {
1591
- top: rect.top + scrollTop
1564
+ const viewportHeight = window.innerHeight;
1565
+ const viewportWidth = window.innerWidth;
1566
+ let topPosition;
1567
+ if (rect.top < 0) {
1568
+ topPosition = '20px';
1569
+ } else if (rect.top > viewportHeight) {
1570
+ topPosition = '20px';
1571
+ } else {
1572
+ topPosition = `${rect.top}px`;
1573
+ }
1574
+
1575
+ // Mantenemos la posición original del input
1576
+ const leftPosition = `${rect.left}px`;
1577
+ expandedContainer.value.style.position = 'fixed';
1578
+ expandedContainer.value.style.top = topPosition;
1579
+ expandedContainer.value.style.left = leftPosition;
1580
+ expandedContainer.value.style.transform = 'none';
1581
+ expandedContainer.value.style.width = props.expandedWidth;
1582
+ expandedContainer.value.style.maxWidth = '90vw';
1583
+
1584
+ // Ajustamos si se sale por la derecha
1585
+ const expandedWidth = parseInt(props.expandedWidth);
1586
+ if (rect.left + expandedWidth > viewportWidth) {
1587
+ // Si se sale por la derecha, ajustamos el ancho para que quepa
1588
+ const availableWidth = viewportWidth - rect.left - 32; // 32px de margen
1589
+ expandedContainer.value.style.width = `${availableWidth}px`;
1590
+ }
1591
+
1592
+ // Log para debugging
1593
+ console.log('🔍 Expanded position updated:', {
1594
+ top: topPosition,
1595
+ left: leftPosition,
1596
+ width: expandedContainer.value.style.width,
1597
+ originalLeft: rect.left,
1598
+ viewportWidth,
1599
+ originalWidth: rect.width
1592
1600
  });
1593
1601
  }
1594
1602
  };
1595
1603
  onMounted(() => {
1596
- console.log('🔍 Component mounted');
1604
+ console.log('🔍 Component mounted with props:', {
1605
+ buttonColorClass: props.buttonColorClass,
1606
+ buttonTextColorClass: props.buttonTextColorClass,
1607
+ arrowColorClass: props.arrowColorClass,
1608
+ isMobileSearch: props.isMobileSearch,
1609
+ mobileInputWidth: props.mobileInputWidth,
1610
+ mobileInputHeight: props.mobileInputHeight
1611
+ });
1612
+ checkMobileView();
1597
1613
  window.addEventListener('resize', updateExpandedPosition);
1614
+ window.addEventListener('resize', checkMobileView);
1598
1615
  });
1599
1616
  onBeforeUnmount(() => {
1600
1617
  console.log('🔍 Component will unmount');
1601
1618
  window.removeEventListener('resize', updateExpandedPosition);
1619
+ window.removeEventListener('resize', checkMobileView);
1602
1620
  });
1603
1621
  watch(isExpanded, newValue => {
1604
1622
  console.log('🔍 isExpanded changed:', {
@@ -1625,63 +1643,188 @@ var script$l = /*@__PURE__*/defineComponent({
1625
1643
  searchQuery.value = newValue;
1626
1644
  }
1627
1645
  });
1646
+ computed(() => {
1647
+ const defaultClasses = "dsEcom-absolute dsEcom-right-0 dsEcom-top-1/2 -dsEcom-translate-y-1/2 dsEcom-p-2 dsEcom-rounded-r-lg dsEcom-transition-all dsEcom-duration-300";
1648
+
1649
+ // Si hay buttonClass, usamos esas clases directamente
1650
+ if (props.buttonClass) {
1651
+ return [defaultClasses, props.buttonClass];
1652
+ }
1653
+
1654
+ // Si no, usamos las clases de color tradicionales
1655
+ return [defaultClasses, props.buttonColorClass, props.buttonTextColorClass];
1656
+ });
1657
+ const checkMobileView = () => {
1658
+ const wasMobile = isMobileView.value;
1659
+ isMobileView.value = window.innerWidth < 768;
1660
+ if (wasMobile !== isMobileView.value) {
1661
+ console.log('🔍 Mobile view changed:', {
1662
+ isMobileView: isMobileView.value,
1663
+ width: window.innerWidth,
1664
+ buttonColorClass: props.buttonColorClass,
1665
+ buttonTextColorClass: props.buttonTextColorClass
1666
+ });
1667
+ }
1668
+ };
1669
+ const handleMobileSearchClick = () => {
1670
+ console.log('🔍 Mobile Search Click:', {
1671
+ buttonColorClass: props.buttonColorClass,
1672
+ buttonTextColorClass: props.buttonTextColorClass,
1673
+ arrowColorClass: props.arrowColorClass,
1674
+ isMobileView: isMobileView.value
1675
+ });
1676
+ isMobileSearchOpen.value = true;
1677
+ nextTick(() => {
1678
+ if (expandedContainer.value) {
1679
+ const input = expandedContainer.value.querySelector('input');
1680
+ input?.focus();
1681
+ }
1682
+ });
1683
+ };
1684
+ const handleMobileSearchClose = () => {
1685
+ console.log('🔍 Mobile Search Close:', {
1686
+ buttonColorClass: props.buttonColorClass,
1687
+ buttonTextColorClass: props.buttonTextColorClass,
1688
+ arrowColorClass: props.arrowColorClass
1689
+ });
1690
+ isMobileSearchOpen.value = false;
1691
+ searchQuery.value = '';
1692
+ emit('update:modelValue', '');
1693
+ };
1694
+ const handleMobileSearch = () => {
1695
+ if (searchQuery.value && searchQuery.value.trim()) {
1696
+ emit("search", searchQuery.value);
1697
+ emit("update:modelValue", searchQuery.value);
1698
+ emit("click:search-icon");
1699
+ handleMobileSearchClose();
1700
+ }
1701
+ };
1702
+ const handleMobileClear = () => {
1703
+ clearSearch();
1704
+ };
1628
1705
  return (_ctx, _cache) => {
1629
- return openBlock(), createElementBlock("div", _hoisted_1$i, [createElementVNode("div", {
1630
- class: normalizeClass(containerClasses.value),
1706
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [createCommentVNode(" Versión móvil - Solo botón de búsqueda "), isMobileView.value && !isMobileSearchOpen.value ? (openBlock(), createElementBlock("button", {
1707
+ key: 0,
1708
+ onClick: handleMobileSearchClick,
1709
+ class: normalizeClass(["dsEcom-p-2 dsEcom-rounded-lg", [_ctx.buttonColorClass]])
1710
+ }, [createVNode(unref(script$q), {
1711
+ width: "24",
1712
+ height: "24",
1713
+ class: normalizeClass([_ctx.buttonTextColorClass])
1714
+ }, null, 8 /* PROPS */, ["class"])], 2 /* CLASS */)) : createCommentVNode("v-if", true), createCommentVNode(" Capa blanca móvil "), isMobileView.value && isMobileSearchOpen.value ? (openBlock(), createElementBlock("div", {
1715
+ key: 1,
1716
+ class: normalizeClass(["dsEcom-fixed dsEcom-inset-0 dsEcom-z-50", [_ctx.mobilePanelClass]])
1717
+ }, [createElementVNode("div", _hoisted_2$d, [createCommentVNode(" Input y botones "), createElementVNode("div", _hoisted_3$a, [createElementVNode("button", {
1718
+ onClick: handleMobileSearchClose,
1719
+ class: normalizeClass(["dsEcom-p-2 dsEcom-rounded-lg", [_ctx.arrowButtonClass]])
1720
+ }, [createVNode(unref(script$O), {
1721
+ width: "24",
1722
+ height: "24",
1723
+ class: normalizeClass(["dsEcom-transform dsEcom-rotate-[-90deg]", [_ctx.arrowColorClass]]),
1724
+ color: "currentColor"
1725
+ }, null, 8 /* PROPS */, ["class"])], 2 /* CLASS */), createElementVNode("div", _hoisted_4$5, [withDirectives(createElementVNode("input", {
1726
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => searchQuery.value = $event),
1727
+ type: "text",
1728
+ placeholder: _ctx.placeholder,
1729
+ disabled: _ctx.isDisabled,
1730
+ style: normalizeStyle({
1731
+ width: props.mobileInputWidth,
1732
+ height: props.mobileInputHeight
1733
+ }),
1734
+ class: "lau-ecom-input dsEcom-pl-4 dsEcom-pr-4 dsEcom-border dsEcom-border-neutral-80 dsEcom-rounded-l-lg dsEcom-focus:outline-none dsEcom-focus:ring-2 dsEcom-focus:ring-primary-60 dsEcom-flex-1",
1735
+ onInput: handleInput,
1736
+ onKeyup: withKeys(handleMobileSearch, ["enter"])
1737
+ }, null, 44 /* STYLE, PROPS, NEED_HYDRATION */, _hoisted_5$4), [[vModelText, searchQuery.value]]), createElementVNode("button", {
1738
+ onClick: handleMobileSearch,
1739
+ style: normalizeStyle({
1740
+ height: props.mobileInputHeight
1741
+ }),
1742
+ class: normalizeClass(['dsEcom-px-3 dsEcom-rounded-r-lg dsEcom-border-0', _ctx.buttonColorClass, _ctx.buttonTextColorClass])
1743
+ }, [createVNode(unref(script$q), {
1744
+ width: "20",
1745
+ height: "20",
1746
+ color: "currentColor"
1747
+ })], 6 /* CLASS, STYLE */)]), searchQuery.value.length >= 3 ? (openBlock(), createElementBlock("button", {
1748
+ key: 0,
1749
+ onClick: handleMobileClear,
1750
+ class: "dsEcom-p-2 dsEcom-text-neutral-100 hover:dsEcom-text-neutral-80"
1751
+ }, [createVNode(unref(script$J), {
1752
+ width: "16",
1753
+ height: "16"
1754
+ })])) : createCommentVNode("v-if", true)])])], 2 /* CLASS */)) : createCommentVNode("v-if", true), createCommentVNode(" Versión desktop "), !isMobileView.value ? (openBlock(), createElementBlock("div", _hoisted_6$3, [createElementVNode("div", {
1755
+ class: normalizeClass([containerClasses.value, props.containerClass]),
1631
1756
  ref_key: "originalContainer",
1632
1757
  ref: originalContainer
1758
+ }, [createElementVNode("div", {
1759
+ class: normalizeClass(["dsEcom-relative", {
1760
+ 'dsEcom-invisible': isExpanded.value
1761
+ }])
1633
1762
  }, [withDirectives(createElementVNode("input", {
1634
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => searchQuery.value = $event),
1763
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => searchQuery.value = $event),
1635
1764
  type: "text",
1636
1765
  placeholder: _ctx.placeholder,
1637
1766
  disabled: _ctx.isDisabled,
1638
- class: normalizeClass(["lau-ecom-input dsEcom-border dsEcom-border-neutral-80 dsEcom-rounded-lg dsEcom-px-4 dsEcom-h-10 dsEcom-w-full dsEcom-focus:outline-none dsEcom-focus:ring-2 dsEcom-focus:ring-primary-60", {
1639
- 'dsEcom-invisible': isExpanded.value
1767
+ class: normalizeClass(['lau-ecom-input dsEcom-border dsEcom-border-neutral-80 dsEcom-pl-4 dsEcom-pr-24 dsEcom-w-full dsEcom-focus:outline-none dsEcom-focus:ring-2 dsEcom-focus:ring-primary-60', props.inputClass, {
1768
+ 'dsEcom-opacity-0': isExpanded.value
1640
1769
  }]),
1641
1770
  onFocus: handleFocus,
1642
1771
  onInput: handleInput,
1643
1772
  onKeyup: withKeys(handleSearch, ["enter"])
1644
- }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_2$d), [[vModelText, searchQuery.value]]), searchQuery.value.length >= 3 && !isExpanded.value ? (openBlock(), createElementBlock("button", {
1773
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_7$3), [[vModelText, searchQuery.value]]), createElementVNode("div", _hoisted_8$3, [searchQuery.value.length >= 3 ? (openBlock(), createElementBlock("button", {
1645
1774
  key: 0,
1775
+ onClick: clearSearch,
1776
+ class: normalizeClass(['dsEcom-flex dsEcom-items-center dsEcom-px-1.5 dsEcom-text-neutral-100 hover:dsEcom-text-neutral-80 dsEcom-transition-all dsEcom-duration-300', props.inputClass])
1777
+ }, [createVNode(unref(script$J), {
1778
+ width: "16",
1779
+ height: "16"
1780
+ })], 2 /* CLASS */)) : createCommentVNode("v-if", true), createElementVNode("button", {
1646
1781
  onClick: handleSearch,
1647
- class: "dsEcom-absolute dsEcom-right-2 dsEcom-top-1/2 -dsEcom-translate-y-1/2 dsEcom-bg-primary-60 hover:dsEcom-bg-primary-70 dsEcom-text-white dsEcom-p-2 dsEcom-rounded-lg dsEcom-transition-all dsEcom-duration-300"
1648
- }, [createVNode(unref(script$L), {
1782
+ class: normalizeClass(['dsEcom-flex dsEcom-items-center dsEcom-px-3 dsEcom-transition-all dsEcom-duration-300', props.inputClass?.includes('rounded') ? props.inputClass : 'dsEcom-rounded-r-lg', props.buttonColorClass, props.buttonTextColorClass, 'dsEcom-border-0']),
1783
+ style: {
1784
+ "margin": "1px",
1785
+ "height": "calc(100% - 2px)"
1786
+ }
1787
+ }, [createVNode(unref(script$q), {
1649
1788
  width: "20",
1650
- height: "20"
1651
- })])) : createCommentVNode("v-if", true)], 2 /* CLASS */), createCommentVNode(" Overlay "), createElementVNode("div", {
1789
+ height: "20",
1790
+ color: "currentColor"
1791
+ })], 2 /* CLASS */)])], 2 /* CLASS */)], 2 /* CLASS */), createCommentVNode(" Overlay "), withDirectives(createElementVNode("div", {
1652
1792
  class: normalizeClass(overlayClasses.value),
1653
1793
  onClick: closeSearch
1654
- }, null, 2 /* CLASS */), createCommentVNode(" Versión expandida "), withDirectives(createElementVNode("div", {
1655
- class: "dsEcom-fixed dsEcom-w-[656px] dsEcom-left-1/2 dsEcom-transform -dsEcom-translate-x-1/2 dsEcom-z-50",
1656
- style: normalizeStyle({
1657
- top: isExpanded.value ? `${originalContainer.value?.getBoundingClientRect().top}px` : '0'
1658
- }),
1794
+ }, null, 2 /* CLASS */), [[vShow, isExpanded.value]]), createCommentVNode(" Versión expandida "), withDirectives(createElementVNode("div", {
1795
+ class: normalizeClass(["dsEcom-fixed dsEcom-z-50 dsEcom-shadow-lg dsEcom-overflow-hidden", [props.inputClass?.includes('rounded') ? props.inputClass : 'dsEcom-rounded-lg', _ctx.expandedBackgroundClass]]),
1659
1796
  ref_key: "expandedContainer",
1660
1797
  ref: expandedContainer
1661
- }, [createElementVNode("div", _hoisted_3$a, [withDirectives(createElementVNode("input", {
1662
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => searchQuery.value = $event),
1798
+ }, [createElementVNode("div", _hoisted_9$1, [withDirectives(createElementVNode("input", {
1799
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => searchQuery.value = $event),
1663
1800
  type: "text",
1664
1801
  placeholder: _ctx.placeholder,
1665
1802
  disabled: _ctx.isDisabled,
1666
- class: "lau-ecom-input dsEcom-border dsEcom-border-neutral-80 dsEcom-rounded-lg dsEcom-px-4 dsEcom-h-10 dsEcom-w-full dsEcom-focus:outline-none dsEcom-focus:ring-2 dsEcom-focus:ring-primary-60 dsEcom-bg-white",
1803
+ class: normalizeClass(['lau-ecom-input dsEcom-border dsEcom-border-neutral-80 dsEcom-pl-4 dsEcom-pr-24 dsEcom-w-full dsEcom-focus:outline-none dsEcom-focus:ring-2 dsEcom-focus:ring-primary-60', props.inputClass]),
1667
1804
  onInput: handleInput,
1668
1805
  onKeyup: withKeys(handleSearch, ["enter"]),
1669
1806
  autofocus: ""
1670
- }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_4$5), [[vModelText, searchQuery.value]]), createElementVNode("div", _hoisted_5$4, [searchQuery.value.length >= 3 ? (openBlock(), createElementBlock("button", {
1807
+ }, null, 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_10$1), [[vModelText, searchQuery.value]]), createElementVNode("div", _hoisted_11$1, [searchQuery.value.length >= 3 ? (openBlock(), createElementBlock("button", {
1671
1808
  key: 0,
1672
1809
  onClick: clearSearch,
1673
- class: "dsEcom-text-neutral-100 hover:dsEcom-text-neutral-80 dsEcom-transition-all dsEcom-duration-300"
1810
+ class: normalizeClass(['dsEcom-flex dsEcom-items-center dsEcom-px-1.5 dsEcom-text-neutral-100 hover:dsEcom-text-neutral-80 dsEcom-transition-all dsEcom-duration-300', props.inputClass])
1674
1811
  }, [createVNode(unref(script$J), {
1675
1812
  width: "16",
1676
1813
  height: "16"
1677
- })])) : createCommentVNode("v-if", true), searchQuery.value.length >= 3 ? (openBlock(), createElementBlock("button", {
1678
- key: 1,
1814
+ })], 2 /* CLASS */)) : createCommentVNode("v-if", true), createElementVNode("button", {
1679
1815
  onClick: handleSearch,
1680
- class: "dsEcom-bg-primary-60 hover:dsEcom-bg-primary-70 dsEcom-text-white dsEcom-p-2 dsEcom-rounded-lg dsEcom-transition-all dsEcom-duration-300"
1681
- }, [createVNode(unref(script$L), {
1816
+ class: normalizeClass(['dsEcom-flex dsEcom-items-center dsEcom-px-3 dsEcom-transition-all dsEcom-duration-300', {
1817
+ 'dsEcom-rounded-r-lg': !props.inputClass?.includes('rounded')
1818
+ }, props.buttonColorClass, props.buttonTextColorClass, 'dsEcom-border-0']),
1819
+ style: {
1820
+ "margin": "1px",
1821
+ "height": "calc(100% - 2px)"
1822
+ }
1823
+ }, [createVNode(unref(script$q), {
1682
1824
  width: "20",
1683
- height: "20"
1684
- })])) : createCommentVNode("v-if", true)])])], 4 /* STYLE */), [[vShow, isExpanded.value]])]);
1825
+ height: "20",
1826
+ color: "currentColor"
1827
+ })], 2 /* CLASS */)])])], 2 /* CLASS */), [[vShow, isExpanded.value]])])) : createCommentVNode("v-if", true)]);
1685
1828
  };
1686
1829
  }
1687
1830
  });
@@ -2420,21 +2563,21 @@ var script$e = /*@__PURE__*/defineComponent({
2420
2563
  "category-cookie": item,
2421
2564
  onOnToggle: item.onToggle
2422
2565
  }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "category-cookie", "onOnToggle"]);
2423
- }), 128 /* KEYED_FRAGMENT */))]), createElementVNode("div", _hoisted_3$6, [createVNode(script$q, {
2566
+ }), 128 /* KEYED_FRAGMENT */))]), createElementVNode("div", _hoisted_3$6, [createVNode(script$p, {
2424
2567
  class: "!dsEcom-w-full mobiles:dsEcom-order-last",
2425
2568
  type: unref(LauEcomButtonType).Secondary,
2426
2569
  onOnClick: handleReject
2427
2570
  }, {
2428
2571
  default: withCtx(() => _cache[1] || (_cache[1] = [createTextVNode(" Rechazar ")])),
2429
2572
  _: 1 /* STABLE */
2430
- }, 8 /* PROPS */, ["type"]), createVNode(script$q, {
2573
+ }, 8 /* PROPS */, ["type"]), createVNode(script$p, {
2431
2574
  class: "!dsEcom-w-full",
2432
2575
  type: unref(LauEcomButtonType).Secondary,
2433
2576
  onOnClick: handleAcceptSelected
2434
2577
  }, {
2435
2578
  default: withCtx(() => _cache[2] || (_cache[2] = [createTextVNode(" Aceptar seleccionadas ")])),
2436
2579
  _: 1 /* STABLE */
2437
- }, 8 /* PROPS */, ["type"]), createVNode(script$q, {
2580
+ }, 8 /* PROPS */, ["type"]), createVNode(script$p, {
2438
2581
  class: "!dsEcom-w-full mobiles:dsEcom-order-first",
2439
2582
  onOnClick: handleAcceptAll
2440
2583
  }, {
@@ -2556,7 +2699,7 @@ var script$d = /*@__PURE__*/defineComponent({
2556
2699
  }, {
2557
2700
  default: withCtx(() => _cache[0] || (_cache[0] = [createTextVNode(" Configurar cookies ")])),
2558
2701
  _: 1 /* STABLE */
2559
- }), createVNode(script$q, {
2702
+ }), createVNode(script$p, {
2560
2703
  onOnClick: handleAccept
2561
2704
  }, {
2562
2705
  default: withCtx(() => _cache[1] || (_cache[1] = [createTextVNode(" Aceptar ")])),
@@ -3301,7 +3444,7 @@ var script = /*@__PURE__*/defineComponent({
3301
3444
  class: "dsEcom-bg-neutral-40 dsEcom-mb-4"
3302
3445
  }, null, -1 /* HOISTED */)), createElementVNode("div", _hoisted_7, [_cache[1] || (_cache[1] = createElementVNode("p", {
3303
3446
  class: "button-bold-05-20px"
3304
- }, "Total", -1 /* HOISTED */)), createElementVNode("p", _hoisted_8, " S/" + toDisplayString(_ctx.summaryData.total), 1 /* TEXT */)]), createVNode(script$q, {
3447
+ }, "Total", -1 /* HOISTED */)), createElementVNode("p", _hoisted_8, " S/" + toDisplayString(_ctx.summaryData.total), 1 /* TEXT */)]), createVNode(script$p, {
3305
3448
  onOnClick: handleGoHomePage
3306
3449
  }, {
3307
3450
  default: withCtx(() => _cache[2] || (_cache[2] = [createTextVNode(" Ir a la pagina de inicio ")])),
@@ -3315,11 +3458,10 @@ script.__file = "src/components/LauEcomTyPage/LauEcomTyPage.vue";
3315
3458
 
3316
3459
  var components = /*#__PURE__*/Object.freeze({
3317
3460
  __proto__: null,
3318
- LauEcomButton: script$q,
3319
- LauEcomRadioButton: script$p,
3320
- LauEcomCheckbox: script$o,
3321
- LauEcomInput: script$n,
3322
- LauEcomInput2: script$m,
3461
+ LauEcomButton: script$p,
3462
+ LauEcomRadioButton: script$o,
3463
+ LauEcomCheckbox: script$n,
3464
+ LauEcomInput: script$m,
3323
3465
  LauEcomInputSearch: script$l,
3324
3466
  LauEcomStepbar: script$j,
3325
3467
  LauEcomDropdown: script$i,
@@ -3358,7 +3500,8 @@ var components = /*#__PURE__*/Object.freeze({
3358
3500
  LauEcomCbtLogoCbtVer: script$u,
3359
3501
  LauEcomCbtLogoLaureate: script$t,
3360
3502
  LauEcomCbtLogoUpcWhite: script$s,
3361
- LauEcomUpcIconNavBack: script$r
3503
+ LauEcomUpcIconNavBack: script$r,
3504
+ LauEcomUpcIconSearch: script$q
3362
3505
  });
3363
3506
 
3364
3507
  // Import vue components
@@ -3370,4 +3513,4 @@ const install = function installDesignSystem(app) {
3370
3513
  });
3371
3514
  };
3372
3515
 
3373
- export { script$d as LauEcomBannerCookies, script$q as LauEcomButton, script$y as LauEcomCbtIconChart, script$z as LauEcomCbtIconGirlReading, script$A as LauEcomCbtIconWorldwide, script$u as LauEcomCbtLogoCbtVer, script$t as LauEcomCbtLogoLaureate, script$s as LauEcomCbtLogoUpcWhite, script$o as LauEcomCheckbox, script$x as LauEcomCoreIconBook, script$H as LauEcomCoreIconFileCode, script$J as LauEcomCoreIconNavClose, script$b as LauEcomDisclamer, script$i as LauEcomDropdown, script$8 as LauEcomFooter, script$n as LauEcomInput, script$m as LauEcomInput2, script$l as LauEcomInputSearch, script$6 as LauEcomLoaderPage, script$w as LauEcomLogoWasc, script$3 as LauEcomPaginator, script$p as LauEcomRadioButton, script$7 as LauEcomRtb, script$j as LauEcomStepbar, script$9 as LauEcomSubFooter, script$g as LauEcomSwitch, script$c as LauEcomTab, script$2 as LauEcomTag, script$h as LauEcomTextButton, script as LauEcomTyPage, script$K as LauEcomUpcIconArrowDown, script$C as LauEcomUpcIconCertificate, script$L as LauEcomUpcIconCheck, script$G as LauEcomUpcIconCheckCircle, script$B as LauEcomUpcIconCreditCard, script$F as LauEcomUpcIconExclamationCircle, script$M as LauEcomUpcIconExclamationTriangle, script$I as LauEcomUpcIconGlobe, script$E as LauEcomUpcIconInfoCircle, script$v as LauEcomUpcIconInnova, script$O as LauEcomUpcIconNavArrow, script$r as LauEcomUpcIconNavBack, script$N as LauEcomUpcIconNavCheckmark, script$D as LauEcomUpcIconVirtualClass, install as default };
3516
+ export { script$d as LauEcomBannerCookies, script$p as LauEcomButton, script$y as LauEcomCbtIconChart, script$z as LauEcomCbtIconGirlReading, script$A as LauEcomCbtIconWorldwide, script$u as LauEcomCbtLogoCbtVer, script$t as LauEcomCbtLogoLaureate, script$s as LauEcomCbtLogoUpcWhite, script$n as LauEcomCheckbox, script$x as LauEcomCoreIconBook, script$H as LauEcomCoreIconFileCode, script$J as LauEcomCoreIconNavClose, script$b as LauEcomDisclamer, script$i as LauEcomDropdown, script$8 as LauEcomFooter, script$m as LauEcomInput, script$l as LauEcomInputSearch, script$6 as LauEcomLoaderPage, script$w as LauEcomLogoWasc, script$3 as LauEcomPaginator, script$o as LauEcomRadioButton, script$7 as LauEcomRtb, script$j as LauEcomStepbar, script$9 as LauEcomSubFooter, script$g as LauEcomSwitch, script$c as LauEcomTab, script$2 as LauEcomTag, script$h as LauEcomTextButton, script as LauEcomTyPage, script$K as LauEcomUpcIconArrowDown, script$C as LauEcomUpcIconCertificate, script$L as LauEcomUpcIconCheck, script$G as LauEcomUpcIconCheckCircle, script$B as LauEcomUpcIconCreditCard, script$F as LauEcomUpcIconExclamationCircle, script$M as LauEcomUpcIconExclamationTriangle, script$I as LauEcomUpcIconGlobe, script$E as LauEcomUpcIconInfoCircle, script$v as LauEcomUpcIconInnova, script$O as LauEcomUpcIconNavArrow, script$r as LauEcomUpcIconNavBack, script$N as LauEcomUpcIconNavCheckmark, script$q as LauEcomUpcIconSearch, script$D as LauEcomUpcIconVirtualClass, install as default };