@revolugo/elements 6.8.3 → 6.9.0-rc.1
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/README.md +1 -1
- package/dist/css/revolugo.bdaterangepicker.B6KA5TYs.css +1 -0
- package/dist/css/revolugo.bhoteloffersfilterbar.CekxoJmW.css +1 -0
- package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +1 -0
- package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +1 -0
- package/dist/css/revolugo.bstarrating.CPHKEfup.css +1 -0
- package/dist/css/{revolugo.btag.g-q3eChG.css → revolugo.btag.T7X_iIkW.css} +1 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +1 -0
- package/dist/css/{revolugo.hoteldescriptionview.DWuzEuGF.css → revolugo.hoteldescriptionview.Dfi-84To.css} +1 -1
- package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
- package/dist/css/{revolugo.hoteloffersmap.2oSkomDb.css → revolugo.hoteloffersmap.Cp2vN-VQ.css} +1 -1
- package/dist/css/revolugo.hoteloffersview.Xw1flMYo.css +1 -0
- package/dist/css/revolugo.hotelroomofferlist.BYvQZ5P2.css +1 -0
- package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
- package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +1 -0
- package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
- package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
- package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
- package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
- package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
- package/dist/css/{revolugo.vtooltip.O8QDYs1J.css → revolugo.vslidegroup.ECiLCEE9.css} +1 -1
- package/dist/css/{revolugo.vsnackbar.Cj7AcupY.css → revolugo.vsnackbar.CCfuo3ao.css} +1 -1
- package/dist/css/{revolugo.vtextarea.HYL6WUNS.css → revolugo.vtextarea.Dxy6uSvm.css} +1 -1
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +2 -2
- package/dist/index.es.min.js +2081 -2223
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo._baseiteratee.BQAqIqmD.min.js +247 -0
- package/dist/{revolugo.banktransferdetails.BdulCgI5.min.js → revolugo.banktransferdetails.0j9oc308.min.js} +9 -9
- package/dist/revolugo.bdaterangepicker.CuXt5m8k.min.js +8324 -0
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.1LgvMIpZ.min.js +143 -0
- package/dist/revolugo.bhoteloffersfilterbar.JyThxTJT.min.js +4896 -0
- package/dist/{revolugo.bhotelroomsdetails.orWBBD_o.min.js → revolugo.bhotelroomsdetails.ziCA0uqt.min.js} +359 -407
- package/dist/revolugo.bimagecarousel.LON3YyDv.min.js +566 -0
- package/dist/{revolugo.bookingdetailssidebar.CD4SMOkC.min.js → revolugo.bookingdetailssidebar.CLb15O8T.min.js} +4 -4
- package/dist/{revolugo.bookingdetailssidebar.JOU68R1_.min.js → revolugo.bookingdetailssidebar.CQF8f2p5.min.js} +207 -221
- package/dist/{revolugo.bookingmanager.B5cM9Mi5.min.js → revolugo.bookingmanager.BEFqmO93.min.js} +426 -460
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.k5o2Io4n.min.js +91 -0
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.2z9RUthr.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.BnT8lMCQ.min.js} +164 -183
- package/dist/revolugo.btag.CZ9KR3bN.min.js +375 -0
- package/dist/revolugo.cancellationpoliciesbadge.KxXb8ZYt.min.js +28 -0
- package/dist/revolugo.cancellationpoliciesbadge.gXl0amBL.min.js +198 -0
- package/dist/{revolugo.cancellationpolicieslist.D097ASNF.min.js → revolugo.cancellationpolicieslist.BYH8J8e1.min.js} +70 -98
- package/dist/revolugo.cancellationpolicieslist.CVTMLJs5.min.js +25 -0
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
- package/dist/revolugo.case-transformers.Ca4kmzjy.min.js +123 -0
- package/dist/{revolugo.creditcardform.DvHcDx2P.min.js → revolugo.creditcardform.8N0BWYbc.min.js} +4 -4
- package/dist/{revolugo.creditcardform.DNOMVOgZ.min.js → revolugo.creditcardform.DawvObHo.min.js} +81 -94
- package/dist/{revolugo.creditcardpayment.BLP3RXk4.min.js → revolugo.creditcardpayment.-uEi7Rky.min.js} +152 -160
- package/dist/{revolugo.creditcardpayment.D3lPKmx1.min.js → revolugo.creditcardpayment.CYrmSY04.min.js} +4 -4
- package/dist/{revolugo.currencypicker.CzzS1Adp.min.js → revolugo.currencypicker.sqbxVvvs.min.js} +15 -15
- package/dist/{revolugo.currencypickerbtn.DWnyc54P.min.js → revolugo.currencypickerbtn.BSUDuF7M.min.js} +4 -4
- package/dist/{revolugo.currencypickerbtn.ChUEouGw.min.js → revolugo.currencypickerbtn.BoXjqXbM.min.js} +41 -47
- package/dist/revolugo.dates.CE3ChILc.min.js +31 -0
- package/dist/revolugo.defaultsdeep.ChES_MUh.min.js +104 -0
- package/dist/{revolugo.dialog-attach.O2HXPGzj.min.js → revolugo.dialog-attach.BogqVGDT.min.js} +5 -6
- package/dist/revolugo.dialog-transition.EGNOTJLZ.min.js +111 -0
- package/dist/{revolugo.fastbookingflow.ChNa4jgv.min.js → revolugo.fastbookingflow.Crr6eF_n.min.js} +6 -6
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
- package/dist/revolugo.fullbookingflow.CzofWe_h.min.js +429 -0
- package/dist/revolugo.hotel-offer-request.BrgYCPvB.min.js +98 -0
- package/dist/{revolugo.hoteldescriptionview.CbtxEPGG.min.js → revolugo.hoteldescriptionview.BaN6Jn_K.min.js} +801 -937
- package/dist/{revolugo.hoteldescriptionview.D3JTbFxn.min.js → revolugo.hoteldescriptionview.BfUYrAbK.min.js} +4 -4
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.B0aPs9nv.min.js +241 -0
- package/dist/{revolugo.hotelofferlist.BVySEYbq.min.js → revolugo.hotelofferlist.CEtclWHx.min.js} +1485 -1590
- package/dist/{revolugo.hotelofferlist.puK2FNBR.min.js → revolugo.hotelofferlist.DGO-YnB3.min.js} +4 -4
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
- package/dist/revolugo.hoteloffersearchmenu.9ePsLejx.min.js +202 -0
- package/dist/revolugo.hoteloffersearchmenuui.Dq3SUHsn.min.js +829 -0
- package/dist/{revolugo.hoteloffersmap.BRVm5s6N.min.js → revolugo.hoteloffersmap.DFUv89P-.min.js} +799 -864
- package/dist/{revolugo.hoteloffersmap.DqKpfjbt.min.js → revolugo.hoteloffersmap.DbfMieYw.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.DsGyT5s7.min.js → revolugo.hoteloffersview.CMQC6sEW.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.3LJ-m6BY.min.js → revolugo.hoteloffersview.DR-NQds9.min.js} +163 -169
- package/dist/{revolugo.hotelroomofferlist.M-3bowQa.min.js → revolugo.hotelroomofferlist.BDmmTZzY.min.js} +1316 -1439
- package/dist/{revolugo.hotelroomofferlist.DdMr5qEZ.min.js → revolugo.hotelroomofferlist.VfQvHfAJ.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferrequestcreator.props.CUwZUDcm.min.js → revolugo.hotelroomofferrequestcreator.props.BkEQaSSo.min.js} +6 -6
- package/dist/{revolugo.hotelroomoffersbookingflow.Bef_aJFl.min.js → revolugo.hotelroomoffersbookingflow.BdI11kxD.min.js} +333 -358
- package/dist/{revolugo.hotelroomoffersearchmenu.Fkf-MQ_8.min.js → revolugo.hotelroomoffersearchmenu.Be69MN7I.min.js} +35 -36
- package/dist/{revolugo.hotelroomoffersearchmenu.D9Zn_Gjy.min.js → revolugo.hotelroomoffersearchmenu.i97dxjV4.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersview.oxTgBMSk.min.js → revolugo.hotelroomoffersview.CZRrXMrq.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersview.BSth8Xsz.min.js → revolugo.hotelroomoffersview.QIikXLmz.min.js} +141 -156
- package/dist/revolugo.index.BkZCIWDs.min.js +67 -0
- package/dist/revolugo.index.EVacDza9.min.js +1232 -0
- package/dist/{revolugo.index.wc.7I5uexuc.min.js → revolugo.index.wc.B-VISNof.min.js} +12139 -12346
- package/dist/revolugo.langpicker.Dqh1HLSM.min.js +99 -0
- package/dist/revolugo.langpickerbtn.BHidyFm0.min.js +29 -0
- package/dist/revolugo.langpickerbtn.D2BROzmF.min.js +131 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.pathify.Cj2pWNwI.min.js +36 -0
- package/dist/{revolugo.prebookform.CxK0iSDo.min.js → revolugo.prebookform.BEoRLmXN.min.js} +4 -4
- package/dist/{revolugo.prebookform.B8aMLMuG.min.js → revolugo.prebookform.DJtQZk4h.min.js} +130 -134
- package/dist/{revolugo.roominglisteditor.D7WzDtw6.min.js → revolugo.roominglisteditor.Bde6fZE4.min.js} +4 -4
- package/dist/{revolugo.roominglisteditor.Do-pe811.min.js → revolugo.roominglisteditor.DOIoiZUZ.min.js} +98 -104
- package/dist/{revolugo.rounded.Dnxang6X.min.js → revolugo.rounded.CuDW7ReX.min.js} +2 -2
- package/dist/{revolugo.ssrboot.ByGq44eI.min.js → revolugo.ssrboot.BkAAdgIG.min.js} +2 -2
- package/dist/{revolugo.storybooktoolbar.DY_mbXuP.min.js → revolugo.storybooktoolbar.BrYrYQ9u.min.js} +142 -143
- package/dist/revolugo.termsandconditions.DdFCvyY1.min.js +405 -0
- package/dist/{revolugo.termsandconditions.DfGTVPYa.min.js → revolugo.termsandconditions.DsQqeMuQ.min.js} +4 -4
- package/dist/revolugo.use-breakpoint-service.Bd-iL63O.min.js +39 -0
- package/dist/revolugo.use-dialog-attach.CQ3SJvi2.min.js +16 -0
- package/dist/revolugo.use-html-element.DSBxvQwo.min.js +11 -0
- package/dist/revolugo.vautocomplete.3H62FFlI.min.js +445 -0
- package/dist/revolugo.vbadge.DIKTZfYf.min.js +112 -0
- package/dist/revolugo.vbtn.ikEGbF2M.min.js +398 -0
- package/dist/revolugo.vcard.k3F27b0_.min.js +313 -0
- package/dist/revolugo.vcheckboxbtn.DUDck9Jj.min.js +478 -0
- package/dist/revolugo.vdialog.I9viR6u_.min.js +133 -0
- package/dist/{revolugo.vdivider.Cp9bHPnI.min.js → revolugo.vdivider.BU_Qpn1Y.min.js} +8 -8
- package/dist/revolugo.vexpansionpanels.BlsPrY5r.min.js +262 -0
- package/dist/revolugo.vform.BuY4c-jG.min.js +46 -0
- package/dist/revolugo.vicon.0oYbTzMR.min.js +105 -0
- package/dist/revolugo.vinput.BhulYzYM.min.js +463 -0
- package/dist/revolugo.vlabel.C7Tnm2IP.min.js +48 -0
- package/dist/revolugo.vlist.Ds4pFDgs.min.js +1299 -0
- package/dist/revolugo.vmenu.DQI1PK0w.min.js +145 -0
- package/dist/revolugo.vselect.rRp_6FBN.min.js +660 -0
- package/dist/{revolugo.vsheet.8UeU7qQn.min.js → revolugo.vsheet.n_e1sEwZ.min.js} +14 -14
- package/dist/{revolugo.vskeletonloader.Dk0enVo6.min.js → revolugo.vskeletonloader.nVyGxNEH.min.js} +54 -55
- package/dist/revolugo.vslidegroup.CTyaEfLB.min.js +325 -0
- package/dist/revolugo.vsnackbar.DTgtMyMg.min.js +198 -0
- package/dist/revolugo.vspacer.0M0DbPqW.min.js +7 -0
- package/dist/{revolugo.vtextarea.Cjuqcka5.min.js → revolugo.vtextarea.mqbZT0AH.min.js} +354 -364
- package/dist/revolugo.vtextfield.C3PH47E4.min.js +501 -0
- package/dist/revolugo.vtoolbar.BTinlkeA.min.js +180 -0
- package/dist/revolugo.vtooltip.CvIhH6aP.min.js +89 -0
- package/dist/revolugo.vwindowitem.Cf667i7i.min.js +317 -0
- package/dist/revolugo.watch-list.BVepdYEA.min.js +16 -0
- package/dist/revolugo.webcomponentwrapper.BZSwKZDU.min.js +2088 -0
- package/package.json +5 -5
- package/dist/css/revolugo.bdaterangepicker.CHUExWGL.css +0 -1
- package/dist/css/revolugo.bhoteloffersfilterbar.BcnNI4uS.css +0 -1
- package/dist/css/revolugo.bhotelroomsdetails.ZHH0C1yQ.css +0 -1
- package/dist/css/revolugo.bhotelsearchbar.Bl5_UFe8.css +0 -1
- package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
- package/dist/css/revolugo.bstarrating.Dxd1LjMb.css +0 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.CwgZ0PpX.css +0 -1
- package/dist/css/revolugo.hoteloffersview.Bo2dQWYt.css +0 -1
- package/dist/css/revolugo.hotelroomofferlist.DpLXIpgU.css +0 -1
- package/dist/css/revolugo.index.DQ3Yd6SO.css +0 -1
- package/dist/css/revolugo.langpickerbtn.D2iA6mCb.css +0 -1
- package/dist/css/revolugo.position.7fn84IQ5.css +0 -1
- package/dist/css/revolugo.termsandconditions.DCvNJQQL.css +0 -1
- package/dist/css/revolugo.vbadge.BQrRJ9S0.css +0 -1
- package/dist/css/revolugo.vbtn.BU0YQ6en.css +0 -1
- package/dist/css/revolugo.vcard.B8jNYFn_.css +0 -1
- package/dist/css/revolugo.vcheckboxbtn.BQ05xI0T.css +0 -1
- package/dist/css/revolugo.vlist.BkGS0yqt.css +0 -1
- package/dist/revolugo._basefor.CodrYJxd.min.js +0 -15
- package/dist/revolugo.bdaterangepicker.XZNoMSi5.min.js +0 -8435
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.D9Qs1dZa.min.js +0 -61
- package/dist/revolugo.bhoteloffersfilterbar.Bryijtf6.min.js +0 -4685
- package/dist/revolugo.bhotelsearchbar.DxxqZWkN.min.js +0 -947
- package/dist/revolugo.bimagecarousel.DIPN99VA.min.js +0 -598
- package/dist/revolugo.bpricesummaryskeleton.YKfKKB5n.min.js +0 -79
- package/dist/revolugo.btag.DjjDRtQ7.min.js +0 -387
- package/dist/revolugo.cancellationpoliciesbadge.D8ou6oFl.min.js +0 -225
- package/dist/revolugo.cancellationpoliciesbadge.jgFCG7yZ.min.js +0 -24
- package/dist/revolugo.cancellationpolicieslist.CZImqgN3.min.js +0 -24
- package/dist/revolugo.case-transformers.Dr1oSJkZ.min.js +0 -123
- package/dist/revolugo.dialog-transition.C6S7Ci1s.min.js +0 -114
- package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
- package/dist/revolugo.fullbookingflow.ByKmNqgi.min.js +0 -451
- package/dist/revolugo.hotelofferitemlayout.tBOOIdeT.min.js +0 -259
- package/dist/revolugo.hotelofferrequestcreator.CbCau_4i.min.js +0 -230
- package/dist/revolugo.hoteloffersearchmenu.iiAtyddA.min.js +0 -46
- package/dist/revolugo.index.D0uSQdJV.min.js +0 -13
- package/dist/revolugo.index.gIPq0z7C.min.js +0 -1037
- package/dist/revolugo.langpicker.CLdiic9k.min.js +0 -107
- package/dist/revolugo.langpickerbtn.BIHQAnjv.min.js +0 -24
- package/dist/revolugo.langpickerbtn.DF-m4pCF.min.js +0 -178
- package/dist/revolugo.position.hqKd4K_h.min.js +0 -322
- package/dist/revolugo.termsandconditions.DXNFR45_.min.js +0 -423
- package/dist/revolugo.use-breakpoint-service.CJltQiSH.min.js +0 -106
- package/dist/revolugo.vautocomplete.BjPSa1jg.min.js +0 -466
- package/dist/revolugo.vbadge.D1RCkHoZ.min.js +0 -118
- package/dist/revolugo.vbtn.CQ9EDLRJ.min.js +0 -417
- package/dist/revolugo.vcard.DNU4i52n.min.js +0 -329
- package/dist/revolugo.vcheckboxbtn.De-k8-O3.min.js +0 -491
- package/dist/revolugo.vdialog.CjEajxIC.min.js +0 -139
- package/dist/revolugo.vexpansionpanels.L2ZpX4zd.min.js +0 -276
- package/dist/revolugo.vform.Bw9rddZZ.min.js +0 -50
- package/dist/revolugo.vinput.P34xrpIC.min.js +0 -477
- package/dist/revolugo.vlabel.CLHrAz78.min.js +0 -51
- package/dist/revolugo.vlist.hRQlcp5M.min.js +0 -1348
- package/dist/revolugo.vmenu.BRFw3Jzk.min.js +0 -152
- package/dist/revolugo.vselect.u2C25NCe.min.js +0 -688
- package/dist/revolugo.vsnackbar.18JqJsZ2.min.js +0 -202
- package/dist/revolugo.vspacer.CPbtu_-W.min.js +0 -7
- package/dist/revolugo.vtextfield.BUNcwTRK.min.js +0 -509
- package/dist/revolugo.vtoolbar.CvbAGFXR.min.js +0 -188
- package/dist/revolugo.vtooltip.CsXJFD-V.min.js +0 -395
- package/dist/revolugo.vwindowitem.DGRfRU3q.min.js +0 -329
- package/dist/revolugo.watch-list.D0FxBTWy.min.js +0 -16
- package/dist/revolugo.webcomponentwrapper.DFYGhYzz.min.js +0 -2148
@@ -1,11 +1,11 @@
|
|
1
|
-
import { d as c0, u as h0,
|
2
|
-
import { V as R0 } from "./revolugo.vautocomplete.
|
3
|
-
import { V as L0, a as
|
4
|
-
import { V as G0 } from "./revolugo.vlist.
|
5
|
-
import { _ as B0, u as k0 } from "./revolugo.webcomponentwrapper.
|
6
|
-
import { u as V0, V as
|
7
|
-
import { f as j0 } from "./revolugo.forwardrefs
|
8
|
-
import { I as H0 } from "./revolugo.index.
|
1
|
+
import { d as c0, u as h0, k as N, H as T, bW as Nd, O as S, i as v0, e as R, a as y, w as H, C as g0, p as ed, D as K, n as y0, h as m0, t as td, f as p0, o as b0, a1 as P0, a2 as N0, a6 as O0, a9 as _0, ac as C0, X as E0, Y as I0, b5 as x0, W as rd, ad as F0, aF as w0, F as nd, J as Od, aH as S0, bX as T0, bY as A0 } from "./revolugo.index.wc.B-VISNof.min.js";
|
2
|
+
import { V as R0 } from "./revolugo.vautocomplete.3H62FFlI.min.js";
|
3
|
+
import { V as L0, a as _d, m as D0, b as M0 } from "./revolugo.vtextfield.C3PH47E4.min.js";
|
4
|
+
import { V as G0 } from "./revolugo.vlist.Ds4pFDgs.min.js";
|
5
|
+
import { _ as B0, u as k0 } from "./revolugo.webcomponentwrapper.BZSwKZDU.min.js";
|
6
|
+
import { u as V0, V as Cd, m as U0 } from "./revolugo.vinput.BhulYzYM.min.js";
|
7
|
+
import { f as j0 } from "./revolugo.forwardrefs.VVhh1qV3.min.js";
|
8
|
+
import { I as H0 } from "./revolugo.index.EVacDza9.min.js";
|
9
9
|
function f0(d) {
|
10
10
|
try {
|
11
11
|
if (typeof document < "u") {
|
@@ -43,7 +43,7 @@ function X0(d, e) {
|
|
43
43
|
var t = Array.prototype.slice.call(e);
|
44
44
|
return t.push(W0), d.apply(this, t);
|
45
45
|
}
|
46
|
-
function
|
46
|
+
function Ed(d, e) {
|
47
47
|
d = d.split("-"), e = e.split("-");
|
48
48
|
for (var t = d[0].split("."), r = e[0].split("."), n = 0; n < 3; n++) {
|
49
49
|
var $ = Number(t[n]), a = Number(r[n]);
|
@@ -55,18 +55,18 @@ function Id(d, e) {
|
|
55
55
|
return d[1] && e[1] ? d[1] > e[1] ? 1 : d[1] < e[1] ? -1 : 0 : !d[1] && e[1] ? 1 : d[1] && !e[1] ? -1 : 0;
|
56
56
|
}
|
57
57
|
var Y0 = {}.constructor;
|
58
|
-
function
|
58
|
+
function D(d) {
|
59
59
|
return d != null && d.constructor === Y0;
|
60
60
|
}
|
61
|
-
function
|
61
|
+
function id(d) {
|
62
62
|
"@babel/helpers - typeof";
|
63
|
-
return
|
63
|
+
return id = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
64
64
|
return typeof e;
|
65
65
|
} : function(e) {
|
66
66
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
67
|
-
},
|
67
|
+
}, id(d);
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function Z(d, e) {
|
70
70
|
if (!(d instanceof e))
|
71
71
|
throw new TypeError("Cannot call a class as a function");
|
72
72
|
}
|
@@ -76,14 +76,14 @@ function Z0(d, e) {
|
|
76
76
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(d, r.key, r);
|
77
77
|
}
|
78
78
|
}
|
79
|
-
function
|
79
|
+
function J(d, e, t) {
|
80
80
|
return e && Z0(d.prototype, e), Object.defineProperty(d, "prototype", { writable: !1 }), d;
|
81
81
|
}
|
82
|
-
var J0 = "1.2.0", q0 = "1.7.35",
|
82
|
+
var J0 = "1.2.0", q0 = "1.7.35", Id = " ext. ", z0 = /^\d+$/, h = /* @__PURE__ */ function() {
|
83
83
|
function d(e) {
|
84
|
-
|
84
|
+
Z(this, d), zd(e), this.metadata = e, Qd.call(this, e);
|
85
85
|
}
|
86
|
-
return
|
86
|
+
return J(d, [{
|
87
87
|
key: "getCountries",
|
88
88
|
value: function() {
|
89
89
|
return Object.keys(this.metadata.countries).filter(function(t) {
|
@@ -137,11 +137,11 @@ var J0 = "1.2.0", q0 = "1.7.35", xd = " ext. ", z0 = /^\d+$/, v = /* @__PURE__ *
|
|
137
137
|
if (t && z0.test(t) && (r = t, t = null), t && t !== "001") {
|
138
138
|
if (!this.hasCountry(t))
|
139
139
|
throw new Error("Unknown country: ".concat(t));
|
140
|
-
this.numberingPlan = new
|
140
|
+
this.numberingPlan = new xd(this.getCountryMetadata(t), this);
|
141
141
|
} else if (r) {
|
142
142
|
if (!this.hasCallingCode(r))
|
143
143
|
throw new Error("Unknown calling code: ".concat(r));
|
144
|
-
this.numberingPlan = new
|
144
|
+
this.numberingPlan = new xd(this.getNumberingPlanMetadata(r), this);
|
145
145
|
} else
|
146
146
|
this.numberingPlan = void 0;
|
147
147
|
return this;
|
@@ -265,11 +265,11 @@ var J0 = "1.2.0", q0 = "1.7.35", xd = " ext. ", z0 = /^\d+$/, v = /* @__PURE__ *
|
|
265
265
|
return this.numberingPlan !== void 0;
|
266
266
|
}
|
267
267
|
}]), d;
|
268
|
-
}(),
|
268
|
+
}(), xd = /* @__PURE__ */ function() {
|
269
269
|
function d(e, t) {
|
270
|
-
|
270
|
+
Z(this, d), this.globalMetadataObject = t, this.metadata = e, Qd.call(this, t.metadata);
|
271
271
|
}
|
272
|
-
return
|
272
|
+
return J(d, [{
|
273
273
|
key: "callingCode",
|
274
274
|
value: function() {
|
275
275
|
return this.metadata[0];
|
@@ -392,20 +392,20 @@ var J0 = "1.2.0", q0 = "1.7.35", xd = " ext. ", z0 = /^\d+$/, v = /* @__PURE__ *
|
|
392
392
|
}, {
|
393
393
|
key: "type",
|
394
394
|
value: function(t) {
|
395
|
-
if (this.hasTypes() &&
|
396
|
-
return new e1(
|
395
|
+
if (this.hasTypes() && Fd(this.types(), t))
|
396
|
+
return new e1(Fd(this.types(), t), this);
|
397
397
|
}
|
398
398
|
}, {
|
399
399
|
key: "ext",
|
400
400
|
value: function() {
|
401
|
-
return this.v1 || this.v2 ?
|
401
|
+
return this.v1 || this.v2 ? Id : this.metadata[13] || Id;
|
402
402
|
}
|
403
403
|
}]), d;
|
404
404
|
}(), Q0 = /* @__PURE__ */ function() {
|
405
405
|
function d(e, t) {
|
406
|
-
|
406
|
+
Z(this, d), this._format = e, this.metadata = t;
|
407
407
|
}
|
408
|
-
return
|
408
|
+
return J(d, [{
|
409
409
|
key: "pattern",
|
410
410
|
value: function() {
|
411
411
|
return this._format[0];
|
@@ -450,9 +450,9 @@ var J0 = "1.2.0", q0 = "1.7.35", xd = " ext. ", z0 = /^\d+$/, v = /* @__PURE__ *
|
|
450
450
|
}]), d;
|
451
451
|
}(), d1 = /^\(?\$1\)?$/, e1 = /* @__PURE__ */ function() {
|
452
452
|
function d(e, t) {
|
453
|
-
|
453
|
+
Z(this, d), this.type = e, this.metadata = t;
|
454
454
|
}
|
455
|
-
return
|
455
|
+
return J(d, [{
|
456
456
|
key: "pattern",
|
457
457
|
value: function() {
|
458
458
|
return this.metadata.v1 ? this.type : this.type[0];
|
@@ -465,7 +465,7 @@ var J0 = "1.2.0", q0 = "1.7.35", xd = " ext. ", z0 = /^\d+$/, v = /* @__PURE__ *
|
|
465
465
|
}
|
466
466
|
}]), d;
|
467
467
|
}();
|
468
|
-
function
|
468
|
+
function Fd(d, e) {
|
469
469
|
switch (e) {
|
470
470
|
case "FIXED_LINE":
|
471
471
|
return d[0];
|
@@ -489,28 +489,28 @@ function wd(d, e) {
|
|
489
489
|
return d[9];
|
490
490
|
}
|
491
491
|
}
|
492
|
-
function
|
492
|
+
function zd(d) {
|
493
493
|
if (!d)
|
494
494
|
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
495
|
-
if (!
|
496
|
-
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(
|
495
|
+
if (!D(d) || !D(d.countries))
|
496
|
+
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(D(d) ? "an object of shape: { " + Object.keys(d).join(", ") + " }" : "a " + t1(d) + ": " + d, "."));
|
497
497
|
}
|
498
498
|
var t1 = function(e) {
|
499
|
-
return
|
499
|
+
return id(e);
|
500
500
|
};
|
501
|
-
function
|
502
|
-
if (e = new
|
501
|
+
function cd(d, e) {
|
502
|
+
if (e = new h(e), e.hasCountry(d))
|
503
503
|
return e.country(d).countryCallingCode();
|
504
504
|
throw new Error("Unknown country: ".concat(d));
|
505
505
|
}
|
506
506
|
function r1(d, e) {
|
507
507
|
return e.countries.hasOwnProperty(d);
|
508
508
|
}
|
509
|
-
function
|
509
|
+
function Qd(d) {
|
510
510
|
var e = d.version;
|
511
|
-
typeof e == "number" ? (this.v1 = e === 1, this.v2 = e === 2, this.v3 = e === 3, this.v4 = e === 4) : e ?
|
511
|
+
typeof e == "number" ? (this.v1 = e === 1, this.v2 = e === 2, this.v3 = e === 3, this.v4 = e === 4) : e ? Ed(e, J0) === -1 ? this.v2 = !0 : Ed(e, q0) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
512
512
|
}
|
513
|
-
function
|
513
|
+
function hd(d, e) {
|
514
514
|
return n1(d, void 0, e);
|
515
515
|
}
|
516
516
|
function n1(d, e, t) {
|
@@ -521,7 +521,7 @@ function n1(d, e, t) {
|
|
521
521
|
return a === $ ? "IS_POSSIBLE" : a > $ ? "TOO_SHORT" : n[n.length - 1] < $ ? "TOO_LONG" : n.indexOf($, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
522
522
|
}
|
523
523
|
function $1(d, e, t) {
|
524
|
-
if (e === void 0 && (e = {}), t = new
|
524
|
+
if (e === void 0 && (e = {}), t = new h(t), e.v2) {
|
525
525
|
if (!d.countryCallingCode)
|
526
526
|
throw new Error("Invalid phone number object passed");
|
527
527
|
t.selectNumberingPlan(d.countryCallingCode);
|
@@ -539,13 +539,13 @@ function $1(d, e, t) {
|
|
539
539
|
}
|
540
540
|
}
|
541
541
|
if (t.possibleLengths())
|
542
|
-
return
|
542
|
+
return d0(d.phone || d.nationalNumber, t);
|
543
543
|
if (d.countryCallingCode && t.isNonGeographicCallingCode(d.countryCallingCode))
|
544
544
|
return !0;
|
545
545
|
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
546
546
|
}
|
547
|
-
function
|
548
|
-
switch (
|
547
|
+
function d0(d, e) {
|
548
|
+
switch (hd(d, e)) {
|
549
549
|
case "IS_POSSIBLE":
|
550
550
|
return !0;
|
551
551
|
// This library ignores "local-only" phone numbers (for simplicity).
|
@@ -556,7 +556,7 @@ function e0(d, e) {
|
|
556
556
|
return !1;
|
557
557
|
}
|
558
558
|
}
|
559
|
-
function
|
559
|
+
function C(d, e) {
|
560
560
|
return d = d || "", new RegExp("^(?:" + e + ")$").test(d);
|
561
561
|
}
|
562
562
|
function a1(d, e) {
|
@@ -574,57 +574,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
574
574
|
}
|
575
575
|
function i1(d, e) {
|
576
576
|
if (d) {
|
577
|
-
if (typeof d == "string") return
|
577
|
+
if (typeof d == "string") return wd(d, e);
|
578
578
|
var t = Object.prototype.toString.call(d).slice(8, -1);
|
579
579
|
if (t === "Object" && d.constructor && (t = d.constructor.name), t === "Map" || t === "Set") return Array.from(d);
|
580
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
580
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return wd(d, e);
|
581
581
|
}
|
582
582
|
}
|
583
|
-
function
|
583
|
+
function wd(d, e) {
|
584
584
|
(e == null || e > d.length) && (e = d.length);
|
585
585
|
for (var t = 0, r = new Array(e); t < e; t++)
|
586
586
|
r[t] = d[t];
|
587
587
|
return r;
|
588
588
|
}
|
589
589
|
var o1 = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
590
|
-
function
|
590
|
+
function vd(d, e, t) {
|
591
591
|
if (e = e || {}, !(!d.country && !d.countryCallingCode)) {
|
592
|
-
t = new
|
592
|
+
t = new h(t), t.selectNumberingPlan(d.country, d.countryCallingCode);
|
593
593
|
var r = e.v2 ? d.nationalNumber : d.phone;
|
594
|
-
if (
|
595
|
-
if (
|
596
|
-
return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") ||
|
594
|
+
if (C(r, t.nationalNumberPattern())) {
|
595
|
+
if ($d(r, "FIXED_LINE", t))
|
596
|
+
return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") || $d(r, "MOBILE", t) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
597
597
|
for (var n = a1(o1), $; !($ = n()).done; ) {
|
598
598
|
var a = $.value;
|
599
|
-
if (
|
599
|
+
if ($d(r, a, t))
|
600
600
|
return a;
|
601
601
|
}
|
602
602
|
}
|
603
603
|
}
|
604
604
|
}
|
605
|
-
function
|
606
|
-
return e = t.type(e), !e || !e.pattern() || e.possibleLengths() && e.possibleLengths().indexOf(d.length) < 0 ? !1 :
|
605
|
+
function $d(d, e, t) {
|
606
|
+
return e = t.type(e), !e || !e.pattern() || e.possibleLengths() && e.possibleLengths().indexOf(d.length) < 0 ? !1 : C(d, e.pattern());
|
607
607
|
}
|
608
608
|
function u1(d, e, t) {
|
609
|
-
if (e = e || {}, t = new
|
610
|
-
return
|
609
|
+
if (e = e || {}, t = new h(t), t.selectNumberingPlan(d.country, d.countryCallingCode), t.hasTypes())
|
610
|
+
return vd(d, e, t.metadata) !== void 0;
|
611
611
|
var r = e.v2 ? d.nationalNumber : d.phone;
|
612
|
-
return
|
612
|
+
return C(r, t.nationalNumberPattern());
|
613
613
|
}
|
614
614
|
function l1(d, e, t) {
|
615
|
-
var r = new
|
615
|
+
var r = new h(t), n = r.getCountryCodesForCallingCode(d);
|
616
616
|
return n ? n.filter(function($) {
|
617
617
|
return s1(e, $, t);
|
618
618
|
}) : [];
|
619
619
|
}
|
620
620
|
function s1(d, e, t) {
|
621
|
-
var r = new
|
621
|
+
var r = new h(t);
|
622
622
|
return r.selectNumberingPlan(e), r.numberingPlan.possibleLengths().indexOf(d.length) >= 0;
|
623
623
|
}
|
624
|
-
var
|
624
|
+
var gd = 2, f1 = 17, c1 = 3, P = "0-90-9٠-٩۰-۹", h1 = "-‐-―−ー-", v1 = "//", g1 = "..", y1 = " ", m1 = "()()[]\\[\\]", p1 = "~⁓∼~", X = "".concat(h1).concat(v1).concat(g1).concat(y1).concat(m1).concat(p1), yd = "++", b1 = new RegExp("([" + P + "])");
|
625
625
|
function P1(d, e, t, r) {
|
626
626
|
if (e) {
|
627
|
-
var n = new
|
627
|
+
var n = new h(r);
|
628
628
|
n.selectNumberingPlan(e, t);
|
629
629
|
var $ = new RegExp(n.IDDPrefix());
|
630
630
|
if (d.search($) === 0) {
|
@@ -648,8 +648,8 @@ function N1(d, e) {
|
|
648
648
|
}
|
649
649
|
var u;
|
650
650
|
if (i) {
|
651
|
-
var
|
652
|
-
|
651
|
+
var l = d.indexOf(r[1]), m = d.slice(0, l);
|
652
|
+
m === e.numberingPlan.nationalPrefix() && (u = e.numberingPlan.nationalPrefix());
|
653
653
|
} else
|
654
654
|
u = r[0];
|
655
655
|
return {
|
@@ -663,7 +663,7 @@ function N1(d, e) {
|
|
663
663
|
nationalNumber: d
|
664
664
|
};
|
665
665
|
}
|
666
|
-
function
|
666
|
+
function od(d, e) {
|
667
667
|
var t = N1(d, e), r = t.carrierCode, n = t.nationalNumber;
|
668
668
|
if (n !== d) {
|
669
669
|
if (!O1(d, n, e))
|
@@ -681,10 +681,10 @@ function ud(d, e) {
|
|
681
681
|
};
|
682
682
|
}
|
683
683
|
function O1(d, e, t) {
|
684
|
-
return !(
|
684
|
+
return !(C(d, t.nationalNumberPattern()) && !C(e, t.nationalNumberPattern()));
|
685
685
|
}
|
686
686
|
function _1(d, e) {
|
687
|
-
switch (
|
687
|
+
switch (hd(d, e)) {
|
688
688
|
case "TOO_SHORT":
|
689
689
|
case "INVALID_LENGTH":
|
690
690
|
return !1;
|
@@ -693,11 +693,11 @@ function _1(d, e) {
|
|
693
693
|
}
|
694
694
|
}
|
695
695
|
function C1(d, e, t, r) {
|
696
|
-
var n = e ?
|
696
|
+
var n = e ? cd(e, r) : t;
|
697
697
|
if (d.indexOf(n) === 0) {
|
698
|
-
r = new
|
699
|
-
var $ = d.slice(n.length), a =
|
700
|
-
if (!
|
698
|
+
r = new h(r), r.selectNumberingPlan(e, t);
|
699
|
+
var $ = d.slice(n.length), a = od($, r), i = a.nationalNumber, o = od(d, r), u = o.nationalNumber;
|
700
|
+
if (!C(u, r.nationalNumberPattern()) && C(i, r.nationalNumberPattern()) || hd(u, r) === "TOO_LONG")
|
701
701
|
return {
|
702
702
|
countryCallingCode: n,
|
703
703
|
number: $
|
@@ -707,7 +707,7 @@ function C1(d, e, t, r) {
|
|
707
707
|
number: d
|
708
708
|
};
|
709
709
|
}
|
710
|
-
function
|
710
|
+
function e0(d, e, t, r) {
|
711
711
|
if (!d)
|
712
712
|
return {};
|
713
713
|
var n;
|
@@ -734,13 +734,13 @@ function t0(d, e, t, r) {
|
|
734
734
|
}
|
735
735
|
if (d[1] === "0")
|
736
736
|
return {};
|
737
|
-
r = new
|
737
|
+
r = new h(r);
|
738
738
|
for (var u = 2; u - 1 <= c1 && u <= d.length; ) {
|
739
|
-
var
|
740
|
-
if (r.hasCallingCode(
|
741
|
-
return r.selectNumberingPlan(
|
739
|
+
var l = d.slice(1, u);
|
740
|
+
if (r.hasCallingCode(l))
|
741
|
+
return r.selectNumberingPlan(l), {
|
742
742
|
countryCallingCodeSource: n ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
743
|
-
countryCallingCode:
|
743
|
+
countryCallingCode: l,
|
744
744
|
number: d.slice(u)
|
745
745
|
};
|
746
746
|
u++;
|
@@ -748,7 +748,7 @@ function t0(d, e, t, r) {
|
|
748
748
|
return {};
|
749
749
|
}
|
750
750
|
function E1(d) {
|
751
|
-
return d.replace(new RegExp("[".concat(
|
751
|
+
return d.replace(new RegExp("[".concat(X, "]+"), "g"), " ").trim();
|
752
752
|
}
|
753
753
|
var I1 = /(\$\d)/;
|
754
754
|
function x1(d, e, t) {
|
@@ -772,27 +772,27 @@ function x1(d, e, t) {
|
|
772
772
|
}
|
773
773
|
var F1 = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
774
774
|
function w1(d, e, t) {
|
775
|
-
var r = new
|
775
|
+
var r = new h(t);
|
776
776
|
if (r.selectNumberingPlan(d, e), r.defaultIDDPrefix())
|
777
777
|
return r.defaultIDDPrefix();
|
778
778
|
if (F1.test(r.IDDPrefix()))
|
779
779
|
return r.IDDPrefix();
|
780
780
|
}
|
781
|
-
var S1 = ";ext=",
|
782
|
-
return "([".concat(
|
781
|
+
var S1 = ";ext=", L = function(e) {
|
782
|
+
return "([".concat(P, "]{1,").concat(e, "})");
|
783
783
|
};
|
784
|
-
function
|
785
|
-
var e = "20", t = "15", r = "9", n = "6", $ = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", i = "#?", o = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)",
|
786
|
-
return
|
784
|
+
function t0(d) {
|
785
|
+
var e = "20", t = "15", r = "9", n = "6", $ = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", i = "#?", o = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", l = "[- ]+", m = "[ \\t]*", c = "(?:,{2}|;)", v = S1 + L(e), p = $ + o + a + L(e) + i, O = $ + u + a + L(r) + i, M = l + L(n) + "#", w = m + c + a + L(t) + i, G = m + "(?:,)+" + a + L(r) + i;
|
786
|
+
return v + "|" + p + "|" + O + "|" + M + "|" + w + "|" + G;
|
787
787
|
}
|
788
|
-
var T1 = "[" +
|
789
|
-
"(?:" +
|
788
|
+
var T1 = "[" + P + "]{" + gd + "}", A1 = "[" + yd + "]{0,1}(?:[" + X + "]*[" + P + "]){3,}[" + X + P + "]*", R1 = new RegExp("^[" + yd + "]{0,1}(?:[" + X + "]*[" + P + "]){1,2}$", "i"), L1 = A1 + // Phone number extensions
|
789
|
+
"(?:" + t0() + ")?", D1 = new RegExp(
|
790
790
|
// Either a short two-digit-only phone number
|
791
791
|
"^" + T1 + "$|^" + L1 + "$",
|
792
792
|
"i"
|
793
793
|
);
|
794
794
|
function M1(d) {
|
795
|
-
return d.length >=
|
795
|
+
return d.length >= gd && D1.test(d);
|
796
796
|
}
|
797
797
|
function G1(d) {
|
798
798
|
return R1.test(d);
|
@@ -820,19 +820,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
820
820
|
}
|
821
821
|
function V1(d, e) {
|
822
822
|
if (d) {
|
823
|
-
if (typeof d == "string") return
|
823
|
+
if (typeof d == "string") return Sd(d, e);
|
824
824
|
var t = Object.prototype.toString.call(d).slice(8, -1);
|
825
825
|
if (t === "Object" && d.constructor && (t = d.constructor.name), t === "Map" || t === "Set") return Array.from(d);
|
826
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
826
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Sd(d, e);
|
827
827
|
}
|
828
828
|
}
|
829
|
-
function
|
829
|
+
function Sd(d, e) {
|
830
830
|
(e == null || e > d.length) && (e = d.length);
|
831
831
|
for (var t = 0, r = new Array(e); t < e; t++)
|
832
832
|
r[t] = d[t];
|
833
833
|
return r;
|
834
834
|
}
|
835
|
-
function
|
835
|
+
function Td(d, e) {
|
836
836
|
var t = Object.keys(d);
|
837
837
|
if (Object.getOwnPropertySymbols) {
|
838
838
|
var r = Object.getOwnPropertySymbols(d);
|
@@ -842,12 +842,12 @@ function Ad(d, e) {
|
|
842
842
|
}
|
843
843
|
return t;
|
844
844
|
}
|
845
|
-
function
|
845
|
+
function Ad(d) {
|
846
846
|
for (var e = 1; e < arguments.length; e++) {
|
847
847
|
var t = arguments[e] != null ? arguments[e] : {};
|
848
|
-
e % 2 ?
|
848
|
+
e % 2 ? Td(Object(t), !0).forEach(function(r) {
|
849
849
|
U1(d, r, t[r]);
|
850
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) :
|
850
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) : Td(Object(t)).forEach(function(r) {
|
851
851
|
Object.defineProperty(d, r, Object.getOwnPropertyDescriptor(t, r));
|
852
852
|
});
|
853
853
|
}
|
@@ -856,13 +856,13 @@ function Rd(d) {
|
|
856
856
|
function U1(d, e, t) {
|
857
857
|
return e in d ? Object.defineProperty(d, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : d[e] = t, d;
|
858
858
|
}
|
859
|
-
var
|
859
|
+
var Rd = {
|
860
860
|
formatExtension: function(e, t, r) {
|
861
861
|
return "".concat(e).concat(r.ext()).concat(t);
|
862
862
|
}
|
863
863
|
};
|
864
864
|
function j1(d, e, t, r) {
|
865
|
-
if (t ? t =
|
865
|
+
if (t ? t = Ad(Ad({}, Rd), t) : t = Rd, r = new h(r), d.country && d.country !== "001") {
|
866
866
|
if (!r.hasCountry(d.country))
|
867
867
|
throw new Error("Unknown country: ".concat(d.country));
|
868
868
|
r.country(d.country);
|
@@ -872,9 +872,9 @@ function j1(d, e, t, r) {
|
|
872
872
|
var n = r.countryCallingCode(), $ = t.v2 ? d.nationalNumber : d.phone, a;
|
873
873
|
switch (e) {
|
874
874
|
case "NATIONAL":
|
875
|
-
return $ ? (a =
|
875
|
+
return $ ? (a = Y($, d.carrierCode, "NATIONAL", r, t), ad(a, d.ext, r, t.formatExtension)) : "";
|
876
876
|
case "INTERNATIONAL":
|
877
|
-
return $ ? (a =
|
877
|
+
return $ ? (a = Y($, null, "INTERNATIONAL", r, t), a = "+".concat(n, " ").concat(a), ad(a, d.ext, r, t.formatExtension)) : "+".concat(n);
|
878
878
|
case "E.164":
|
879
879
|
return "+".concat(n).concat($);
|
880
880
|
case "RFC3966":
|
@@ -890,12 +890,12 @@ function j1(d, e, t, r) {
|
|
890
890
|
if (!t.fromCountry)
|
891
891
|
return;
|
892
892
|
var i = K1($, d.carrierCode, n, t.fromCountry, r);
|
893
|
-
return
|
893
|
+
return ad(i, d.ext, r, t.formatExtension);
|
894
894
|
default:
|
895
895
|
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e, '"'));
|
896
896
|
}
|
897
897
|
}
|
898
|
-
function
|
898
|
+
function Y(d, e, t, r, n) {
|
899
899
|
var $ = H1(r.formats(), d);
|
900
900
|
return $ ? x1(d, $, {
|
901
901
|
useInternationalFormat: t === "INTERNATIONAL",
|
@@ -910,24 +910,24 @@ function H1(d, e) {
|
|
910
910
|
if (e.search($) !== 0)
|
911
911
|
continue;
|
912
912
|
}
|
913
|
-
if (
|
913
|
+
if (C(e, n.pattern()))
|
914
914
|
return n;
|
915
915
|
}
|
916
916
|
}
|
917
|
-
function
|
917
|
+
function ad(d, e, t, r) {
|
918
918
|
return e ? r(d, e, t) : d;
|
919
919
|
}
|
920
920
|
function K1(d, e, t, r, n) {
|
921
|
-
var $ =
|
921
|
+
var $ = cd(r, n.metadata);
|
922
922
|
if ($ === t) {
|
923
|
-
var a =
|
923
|
+
var a = Y(d, e, "NATIONAL", n);
|
924
924
|
return t === "1" ? t + " " + a : a;
|
925
925
|
}
|
926
926
|
var i = w1(r, void 0, n.metadata);
|
927
927
|
if (i)
|
928
|
-
return "".concat(i, " ").concat(t, " ").concat(
|
928
|
+
return "".concat(i, " ").concat(t, " ").concat(Y(d, null, "INTERNATIONAL", n));
|
929
929
|
}
|
930
|
-
function
|
930
|
+
function Ld(d, e) {
|
931
931
|
var t = Object.keys(d);
|
932
932
|
if (Object.getOwnPropertySymbols) {
|
933
933
|
var r = Object.getOwnPropertySymbols(d);
|
@@ -937,12 +937,12 @@ function Dd(d, e) {
|
|
937
937
|
}
|
938
938
|
return t;
|
939
939
|
}
|
940
|
-
function
|
940
|
+
function Dd(d) {
|
941
941
|
for (var e = 1; e < arguments.length; e++) {
|
942
942
|
var t = arguments[e] != null ? arguments[e] : {};
|
943
|
-
e % 2 ?
|
943
|
+
e % 2 ? Ld(Object(t), !0).forEach(function(r) {
|
944
944
|
W1(d, r, t[r]);
|
945
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) :
|
945
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) : Ld(Object(t)).forEach(function(r) {
|
946
946
|
Object.defineProperty(d, r, Object.getOwnPropertyDescriptor(t, r));
|
947
947
|
});
|
948
948
|
}
|
@@ -973,12 +973,12 @@ var J1 = /* @__PURE__ */ function() {
|
|
973
973
|
if (typeof e == "string") {
|
974
974
|
if (e[0] === "+" && !t)
|
975
975
|
throw new TypeError("`metadata` argument not passed");
|
976
|
-
if (
|
976
|
+
if (D(t) && D(t.countries)) {
|
977
977
|
r = t;
|
978
978
|
var n = e;
|
979
979
|
if (!Q1.test(n))
|
980
980
|
throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
|
981
|
-
var $ =
|
981
|
+
var $ = e0(n, void 0, void 0, r), a = $.countryCallingCode, i = $.number;
|
982
982
|
if (t = i, e = a, !t)
|
983
983
|
throw new Error("Invalid `number` argument passed: too short");
|
984
984
|
}
|
@@ -987,9 +987,9 @@ var J1 = /* @__PURE__ */ function() {
|
|
987
987
|
throw new TypeError("`nationalNumber` argument is required");
|
988
988
|
if (typeof t != "string")
|
989
989
|
throw new TypeError("`nationalNumber` argument must be a string");
|
990
|
-
|
991
|
-
var o = z1(e, r), u = o.country,
|
992
|
-
this.country = u, this.countryCallingCode =
|
990
|
+
zd(r);
|
991
|
+
var o = z1(e, r), u = o.country, l = o.countryCallingCode;
|
992
|
+
this.country = u, this.countryCallingCode = l, this.nationalNumber = t, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
993
993
|
return r;
|
994
994
|
};
|
995
995
|
}
|
@@ -1020,7 +1020,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
1020
1020
|
}, {
|
1021
1021
|
key: "isNonGeographic",
|
1022
1022
|
value: function() {
|
1023
|
-
var t = new
|
1023
|
+
var t = new h(this.getMetadata());
|
1024
1024
|
return t.isNonGeographicCallingCode(this.countryCallingCode);
|
1025
1025
|
}
|
1026
1026
|
}, {
|
@@ -1045,14 +1045,14 @@ var J1 = /* @__PURE__ */ function() {
|
|
1045
1045
|
}, {
|
1046
1046
|
key: "getType",
|
1047
1047
|
value: function() {
|
1048
|
-
return
|
1048
|
+
return vd(this, {
|
1049
1049
|
v2: !0
|
1050
1050
|
}, this.getMetadata());
|
1051
1051
|
}
|
1052
1052
|
}, {
|
1053
1053
|
key: "format",
|
1054
1054
|
value: function(t, r) {
|
1055
|
-
return j1(this, t, r ?
|
1055
|
+
return j1(this, t, r ? Dd(Dd({}, r), {}, {
|
1056
1056
|
v2: !0
|
1057
1057
|
}) : {
|
1058
1058
|
v2: !0
|
@@ -1078,20 +1078,20 @@ var J1 = /* @__PURE__ */ function() {
|
|
1078
1078
|
return /^[A-Z]{2}$/.test(e);
|
1079
1079
|
};
|
1080
1080
|
function z1(d, e) {
|
1081
|
-
var t, r, n = new
|
1081
|
+
var t, r, n = new h(e);
|
1082
1082
|
return q1(d) ? (t = d, n.selectNumberingPlan(t), r = n.countryCallingCode()) : r = d, {
|
1083
1083
|
country: t,
|
1084
1084
|
countryCallingCode: r
|
1085
1085
|
};
|
1086
1086
|
}
|
1087
1087
|
var Q1 = /^\+\d+$/;
|
1088
|
-
function
|
1088
|
+
function ud(d) {
|
1089
1089
|
"@babel/helpers - typeof";
|
1090
|
-
return
|
1090
|
+
return ud = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
1091
1091
|
return typeof e;
|
1092
1092
|
} : function(e) {
|
1093
1093
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
1094
|
-
},
|
1094
|
+
}, ud(d);
|
1095
1095
|
}
|
1096
1096
|
function d2(d, e, t) {
|
1097
1097
|
return Object.defineProperty(d, "prototype", { writable: !1 }), d;
|
@@ -1103,14 +1103,14 @@ function e2(d, e) {
|
|
1103
1103
|
function t2(d, e) {
|
1104
1104
|
if (typeof e != "function" && e !== null)
|
1105
1105
|
throw new TypeError("Super expression must either be null or a function");
|
1106
|
-
d.prototype = Object.create(e && e.prototype, { constructor: { value: d, writable: !0, configurable: !0 } }), Object.defineProperty(d, "prototype", { writable: !1 }), e &&
|
1106
|
+
d.prototype = Object.create(e && e.prototype, { constructor: { value: d, writable: !0, configurable: !0 } }), Object.defineProperty(d, "prototype", { writable: !1 }), e && B(d, e);
|
1107
1107
|
}
|
1108
1108
|
function r2(d) {
|
1109
|
-
var e =
|
1109
|
+
var e = n0();
|
1110
1110
|
return function() {
|
1111
|
-
var r =
|
1111
|
+
var r = k(d), n;
|
1112
1112
|
if (e) {
|
1113
|
-
var $ =
|
1113
|
+
var $ = k(this).constructor;
|
1114
1114
|
n = Reflect.construct(r, arguments, $);
|
1115
1115
|
} else
|
1116
1116
|
n = r.apply(this, arguments);
|
@@ -1118,20 +1118,20 @@ function r2(d) {
|
|
1118
1118
|
};
|
1119
1119
|
}
|
1120
1120
|
function n2(d, e) {
|
1121
|
-
if (e && (
|
1121
|
+
if (e && (ud(e) === "object" || typeof e == "function"))
|
1122
1122
|
return e;
|
1123
1123
|
if (e !== void 0)
|
1124
1124
|
throw new TypeError("Derived constructors may only return object or undefined");
|
1125
|
-
return
|
1125
|
+
return r0(d);
|
1126
1126
|
}
|
1127
|
-
function
|
1127
|
+
function r0(d) {
|
1128
1128
|
if (d === void 0)
|
1129
1129
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
1130
1130
|
return d;
|
1131
1131
|
}
|
1132
|
-
function
|
1132
|
+
function ld(d) {
|
1133
1133
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
1134
|
-
return
|
1134
|
+
return ld = function(r) {
|
1135
1135
|
if (r === null || !$2(r)) return r;
|
1136
1136
|
if (typeof r != "function")
|
1137
1137
|
throw new TypeError("Super expression must either be null or a function");
|
@@ -1140,20 +1140,20 @@ function sd(d) {
|
|
1140
1140
|
e.set(r, n);
|
1141
1141
|
}
|
1142
1142
|
function n() {
|
1143
|
-
return
|
1143
|
+
return W(r, arguments, k(this).constructor);
|
1144
1144
|
}
|
1145
|
-
return n.prototype = Object.create(r.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }),
|
1146
|
-
},
|
1145
|
+
return n.prototype = Object.create(r.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), B(n, r);
|
1146
|
+
}, ld(d);
|
1147
1147
|
}
|
1148
|
-
function
|
1149
|
-
return
|
1148
|
+
function W(d, e, t) {
|
1149
|
+
return n0() ? W = Reflect.construct : W = function(n, $, a) {
|
1150
1150
|
var i = [null];
|
1151
1151
|
i.push.apply(i, $);
|
1152
1152
|
var o = Function.bind.apply(n, i), u = new o();
|
1153
|
-
return a &&
|
1154
|
-
},
|
1153
|
+
return a && B(u, a.prototype), u;
|
1154
|
+
}, W.apply(null, arguments);
|
1155
1155
|
}
|
1156
|
-
function
|
1156
|
+
function n0() {
|
1157
1157
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
1158
1158
|
if (typeof Proxy == "function") return !0;
|
1159
1159
|
try {
|
@@ -1166,30 +1166,30 @@ function $0() {
|
|
1166
1166
|
function $2(d) {
|
1167
1167
|
return Function.toString.call(d).indexOf("[native code]") !== -1;
|
1168
1168
|
}
|
1169
|
-
function
|
1170
|
-
return
|
1169
|
+
function B(d, e) {
|
1170
|
+
return B = Object.setPrototypeOf || function(r, n) {
|
1171
1171
|
return r.__proto__ = n, r;
|
1172
|
-
},
|
1172
|
+
}, B(d, e);
|
1173
1173
|
}
|
1174
|
-
function
|
1175
|
-
return
|
1174
|
+
function k(d) {
|
1175
|
+
return k = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
1176
1176
|
return t.__proto__ || Object.getPrototypeOf(t);
|
1177
|
-
},
|
1177
|
+
}, k(d);
|
1178
1178
|
}
|
1179
|
-
var
|
1179
|
+
var _ = /* @__PURE__ */ function(d) {
|
1180
1180
|
t2(t, d);
|
1181
1181
|
var e = r2(t);
|
1182
1182
|
function t(r) {
|
1183
1183
|
var n;
|
1184
|
-
return e2(this, t), n = e.call(this, r), Object.setPrototypeOf(
|
1184
|
+
return e2(this, t), n = e.call(this, r), Object.setPrototypeOf(r0(n), t.prototype), n.name = n.constructor.name, n;
|
1185
1185
|
}
|
1186
1186
|
return d2(t);
|
1187
|
-
}(/* @__PURE__ */
|
1187
|
+
}(/* @__PURE__ */ ld(Error)), Md = new RegExp("(?:" + t0() + ")$", "i");
|
1188
1188
|
function a2(d) {
|
1189
|
-
var e = d.search(
|
1189
|
+
var e = d.search(Md);
|
1190
1190
|
if (e < 0)
|
1191
1191
|
return {};
|
1192
|
-
for (var t = d.slice(0, e), r = d.match(
|
1192
|
+
for (var t = d.slice(0, e), r = d.match(Md), n = 1; n < r.length; ) {
|
1193
1193
|
if (r[n])
|
1194
1194
|
return {
|
1195
1195
|
number: t,
|
@@ -1288,19 +1288,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1288
1288
|
}
|
1289
1289
|
function l2(d, e) {
|
1290
1290
|
if (d) {
|
1291
|
-
if (typeof d == "string") return
|
1291
|
+
if (typeof d == "string") return Gd(d, e);
|
1292
1292
|
var t = Object.prototype.toString.call(d).slice(8, -1);
|
1293
1293
|
if (t === "Object" && d.constructor && (t = d.constructor.name), t === "Map" || t === "Set") return Array.from(d);
|
1294
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
1294
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Gd(d, e);
|
1295
1295
|
}
|
1296
1296
|
}
|
1297
|
-
function
|
1297
|
+
function Gd(d, e) {
|
1298
1298
|
(e == null || e > d.length) && (e = d.length);
|
1299
1299
|
for (var t = 0, r = new Array(e); t < e; t++)
|
1300
1300
|
r[t] = d[t];
|
1301
1301
|
return r;
|
1302
1302
|
}
|
1303
|
-
function
|
1303
|
+
function Bd(d) {
|
1304
1304
|
for (var e = "", t = u2(d.split("")), r; !(r = t()).done; ) {
|
1305
1305
|
var n = r.value;
|
1306
1306
|
e += s2(n, e) || "";
|
@@ -1325,13 +1325,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1325
1325
|
}
|
1326
1326
|
function c2(d, e) {
|
1327
1327
|
if (d) {
|
1328
|
-
if (typeof d == "string") return
|
1328
|
+
if (typeof d == "string") return kd(d, e);
|
1329
1329
|
var t = Object.prototype.toString.call(d).slice(8, -1);
|
1330
1330
|
if (t === "Object" && d.constructor && (t = d.constructor.name), t === "Map" || t === "Set") return Array.from(d);
|
1331
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
1331
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return kd(d, e);
|
1332
1332
|
}
|
1333
1333
|
}
|
1334
|
-
function
|
1334
|
+
function kd(d, e) {
|
1335
1335
|
(e == null || e > d.length) && (e = d.length);
|
1336
1336
|
for (var t = 0, r = new Array(e); t < e; t++)
|
1337
1337
|
r[t] = d[t];
|
@@ -1339,13 +1339,13 @@ function Vd(d, e) {
|
|
1339
1339
|
}
|
1340
1340
|
function h2(d, e) {
|
1341
1341
|
var t = e.countries, r = e.metadata;
|
1342
|
-
r = new
|
1342
|
+
r = new h(r);
|
1343
1343
|
for (var n = f2(t), $; !($ = n()).done; ) {
|
1344
1344
|
var a = $.value;
|
1345
1345
|
if (r.country(a), r.leadingDigits()) {
|
1346
1346
|
if (d && d.search(r.leadingDigits()) === 0)
|
1347
1347
|
return a;
|
1348
|
-
} else if (
|
1348
|
+
} else if (vd({
|
1349
1349
|
phone: d,
|
1350
1350
|
country: a
|
1351
1351
|
}, void 0, r.metadata))
|
@@ -1360,12 +1360,12 @@ function v2(d, e) {
|
|
1360
1360
|
metadata: r.metadata
|
1361
1361
|
});
|
1362
1362
|
}
|
1363
|
-
var
|
1363
|
+
var $0 = "+", g2 = "[\\-\\.\\(\\)]?", Vd = "([" + P + "]|" + g2 + ")", y2 = "^\\" + $0 + Vd + "*[" + P + "]" + Vd + "*$", m2 = new RegExp(y2, "g"), sd = P, p2 = "[" + sd + "]+((\\-)*[" + sd + "])*", b2 = "a-zA-Z", P2 = "[" + b2 + "]+((\\-)*[" + sd + "])*", N2 = "^(" + p2 + "\\.)*" + P2 + "\\.?$", O2 = new RegExp(N2, "g"), Ud = "tel:", fd = ";phone-context=", _2 = ";isub=";
|
1364
1364
|
function C2(d) {
|
1365
|
-
var e = d.indexOf(
|
1365
|
+
var e = d.indexOf(fd);
|
1366
1366
|
if (e < 0)
|
1367
1367
|
return null;
|
1368
|
-
var t = e +
|
1368
|
+
var t = e + fd.length;
|
1369
1369
|
if (t >= d.length)
|
1370
1370
|
return "";
|
1371
1371
|
var r = d.indexOf(";", t);
|
@@ -1377,67 +1377,67 @@ function E2(d) {
|
|
1377
1377
|
function I2(d, e) {
|
1378
1378
|
var t = e.extractFormattedPhoneNumber, r = C2(d);
|
1379
1379
|
if (!E2(r))
|
1380
|
-
throw new
|
1380
|
+
throw new _("NOT_A_NUMBER");
|
1381
1381
|
var n;
|
1382
1382
|
if (r === null)
|
1383
1383
|
n = t(d) || "";
|
1384
1384
|
else {
|
1385
|
-
n = "", r.charAt(0) ===
|
1386
|
-
var $ = d.indexOf(
|
1387
|
-
$ >= 0 ? a = $ +
|
1388
|
-
var i = d.indexOf(
|
1385
|
+
n = "", r.charAt(0) === $0 && (n += r);
|
1386
|
+
var $ = d.indexOf(Ud), a;
|
1387
|
+
$ >= 0 ? a = $ + Ud.length : a = 0;
|
1388
|
+
var i = d.indexOf(fd);
|
1389
1389
|
n += d.substring(a, i);
|
1390
1390
|
}
|
1391
1391
|
var o = n.indexOf(_2);
|
1392
1392
|
if (o > 0 && (n = n.substring(0, o)), n !== "")
|
1393
1393
|
return n;
|
1394
1394
|
}
|
1395
|
-
var x2 = 250, F2 = new RegExp("[" +
|
1395
|
+
var x2 = 250, F2 = new RegExp("[" + yd + P + "]"), w2 = new RegExp("[^" + P + "#]+$");
|
1396
1396
|
function S2(d, e, t) {
|
1397
|
-
if (e = e || {}, t = new
|
1398
|
-
throw e.v2 ? new
|
1397
|
+
if (e = e || {}, t = new h(t), e.defaultCountry && !t.hasCountry(e.defaultCountry))
|
1398
|
+
throw e.v2 ? new _("INVALID_COUNTRY") : new Error("Unknown country: ".concat(e.defaultCountry));
|
1399
1399
|
var r = A2(d, e.v2, e.extract), n = r.number, $ = r.ext, a = r.error;
|
1400
1400
|
if (!n) {
|
1401
1401
|
if (e.v2)
|
1402
|
-
throw a === "TOO_SHORT" ? new
|
1402
|
+
throw a === "TOO_SHORT" ? new _("TOO_SHORT") : new _("NOT_A_NUMBER");
|
1403
1403
|
return {};
|
1404
1404
|
}
|
1405
|
-
var i = L2(n, e.defaultCountry, e.defaultCallingCode, t), o = i.country, u = i.nationalNumber,
|
1405
|
+
var i = L2(n, e.defaultCountry, e.defaultCallingCode, t), o = i.country, u = i.nationalNumber, l = i.countryCallingCode, m = i.countryCallingCodeSource, c = i.carrierCode;
|
1406
1406
|
if (!t.hasSelectedNumberingPlan()) {
|
1407
1407
|
if (e.v2)
|
1408
|
-
throw new
|
1408
|
+
throw new _("INVALID_COUNTRY");
|
1409
1409
|
return {};
|
1410
1410
|
}
|
1411
|
-
if (!u || u.length <
|
1411
|
+
if (!u || u.length < gd) {
|
1412
1412
|
if (e.v2)
|
1413
|
-
throw new
|
1413
|
+
throw new _("TOO_SHORT");
|
1414
1414
|
return {};
|
1415
1415
|
}
|
1416
1416
|
if (u.length > f1) {
|
1417
1417
|
if (e.v2)
|
1418
|
-
throw new
|
1418
|
+
throw new _("TOO_LONG");
|
1419
1419
|
return {};
|
1420
1420
|
}
|
1421
1421
|
if (e.v2) {
|
1422
|
-
var
|
1423
|
-
return o && (
|
1422
|
+
var v = new J1(l, u, t.metadata);
|
1423
|
+
return o && (v.country = o), c && (v.carrierCode = c), $ && (v.ext = $), v.__countryCallingCodeSource = m, v;
|
1424
1424
|
}
|
1425
|
-
var
|
1425
|
+
var p = (e.extended ? t.hasSelectedNumberingPlan() : o) ? C(u, t.nationalNumberPattern()) : !1;
|
1426
1426
|
return e.extended ? {
|
1427
1427
|
country: o,
|
1428
|
-
countryCallingCode:
|
1429
|
-
carrierCode:
|
1430
|
-
valid:
|
1431
|
-
possible:
|
1428
|
+
countryCallingCode: l,
|
1429
|
+
carrierCode: c,
|
1430
|
+
valid: p,
|
1431
|
+
possible: p ? !0 : !!(e.extended === !0 && t.possibleLengths() && d0(u, t)),
|
1432
1432
|
phone: u,
|
1433
1433
|
ext: $
|
1434
|
-
} :
|
1434
|
+
} : p ? R2(o, u, $) : {};
|
1435
1435
|
}
|
1436
1436
|
function T2(d, e, t) {
|
1437
1437
|
if (d) {
|
1438
1438
|
if (d.length > x2) {
|
1439
1439
|
if (t)
|
1440
|
-
throw new
|
1440
|
+
throw new _("TOO_LONG");
|
1441
1441
|
return;
|
1442
1442
|
}
|
1443
1443
|
if (e === !1)
|
@@ -1472,30 +1472,30 @@ function R2(d, e, t) {
|
|
1472
1472
|
return t && (r.ext = t), r;
|
1473
1473
|
}
|
1474
1474
|
function L2(d, e, t, r) {
|
1475
|
-
var n =
|
1475
|
+
var n = e0(Bd(d), e, t, r.metadata), $ = n.countryCallingCodeSource, a = n.countryCallingCode, i = n.number, o;
|
1476
1476
|
if (a)
|
1477
1477
|
r.selectNumberingPlan(a);
|
1478
1478
|
else if (i && (e || t))
|
1479
|
-
r.selectNumberingPlan(e, t), e && (o = e), a = t ||
|
1479
|
+
r.selectNumberingPlan(e, t), e && (o = e), a = t || cd(e, r.metadata);
|
1480
1480
|
else return {};
|
1481
1481
|
if (!i)
|
1482
1482
|
return {
|
1483
1483
|
countryCallingCodeSource: $,
|
1484
1484
|
countryCallingCode: a
|
1485
1485
|
};
|
1486
|
-
var u =
|
1487
|
-
nationalNumber:
|
1486
|
+
var u = od(Bd(i), r), l = u.nationalNumber, m = u.carrierCode, c = v2(a, {
|
1487
|
+
nationalNumber: l,
|
1488
1488
|
metadata: r
|
1489
1489
|
});
|
1490
|
-
return
|
1490
|
+
return c && (o = c, c === "001" || r.country(o)), {
|
1491
1491
|
country: o,
|
1492
1492
|
countryCallingCode: a,
|
1493
1493
|
countryCallingCodeSource: $,
|
1494
|
-
nationalNumber:
|
1495
|
-
carrierCode:
|
1494
|
+
nationalNumber: l,
|
1495
|
+
carrierCode: m
|
1496
1496
|
};
|
1497
1497
|
}
|
1498
|
-
function
|
1498
|
+
function jd(d, e) {
|
1499
1499
|
var t = Object.keys(d);
|
1500
1500
|
if (Object.getOwnPropertySymbols) {
|
1501
1501
|
var r = Object.getOwnPropertySymbols(d);
|
@@ -1505,12 +1505,12 @@ function Hd(d, e) {
|
|
1505
1505
|
}
|
1506
1506
|
return t;
|
1507
1507
|
}
|
1508
|
-
function
|
1508
|
+
function Hd(d) {
|
1509
1509
|
for (var e = 1; e < arguments.length; e++) {
|
1510
1510
|
var t = arguments[e] != null ? arguments[e] : {};
|
1511
|
-
e % 2 ?
|
1511
|
+
e % 2 ? jd(Object(t), !0).forEach(function(r) {
|
1512
1512
|
D2(d, r, t[r]);
|
1513
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) :
|
1513
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) : jd(Object(t)).forEach(function(r) {
|
1514
1514
|
Object.defineProperty(d, r, Object.getOwnPropertyDescriptor(t, r));
|
1515
1515
|
});
|
1516
1516
|
}
|
@@ -1520,11 +1520,11 @@ function D2(d, e, t) {
|
|
1520
1520
|
return e in d ? Object.defineProperty(d, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : d[e] = t, d;
|
1521
1521
|
}
|
1522
1522
|
function M2(d, e, t) {
|
1523
|
-
return S2(d,
|
1523
|
+
return S2(d, Hd(Hd({}, e), {}, {
|
1524
1524
|
v2: !0
|
1525
1525
|
}), t);
|
1526
1526
|
}
|
1527
|
-
function
|
1527
|
+
function Kd(d, e) {
|
1528
1528
|
var t = Object.keys(d);
|
1529
1529
|
if (Object.getOwnPropertySymbols) {
|
1530
1530
|
var r = Object.getOwnPropertySymbols(d);
|
@@ -1537,9 +1537,9 @@ function Wd(d, e) {
|
|
1537
1537
|
function G2(d) {
|
1538
1538
|
for (var e = 1; e < arguments.length; e++) {
|
1539
1539
|
var t = arguments[e] != null ? arguments[e] : {};
|
1540
|
-
e % 2 ?
|
1540
|
+
e % 2 ? Kd(Object(t), !0).forEach(function(r) {
|
1541
1541
|
B2(d, r, t[r]);
|
1542
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) :
|
1542
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) : Kd(Object(t)).forEach(function(r) {
|
1543
1543
|
Object.defineProperty(d, r, Object.getOwnPropertyDescriptor(t, r));
|
1544
1544
|
});
|
1545
1545
|
}
|
@@ -1557,13 +1557,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1557
1557
|
}
|
1558
1558
|
function U2(d, e) {
|
1559
1559
|
if (d) {
|
1560
|
-
if (typeof d == "string") return
|
1560
|
+
if (typeof d == "string") return Wd(d, e);
|
1561
1561
|
var t = Object.prototype.toString.call(d).slice(8, -1);
|
1562
1562
|
if (t === "Object" && d.constructor && (t = d.constructor.name), t === "Map" || t === "Set") return Array.from(d);
|
1563
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
1563
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Wd(d, e);
|
1564
1564
|
}
|
1565
1565
|
}
|
1566
|
-
function
|
1566
|
+
function Wd(d, e) {
|
1567
1567
|
(e == null || e > d.length) && (e = d.length);
|
1568
1568
|
for (var t = 0, r = new Array(e); t < e; t++)
|
1569
1569
|
r[t] = d[t];
|
@@ -1600,7 +1600,7 @@ function K2(d) {
|
|
1600
1600
|
a ? (o = $, u = a) : (o = void 0, u = $), n && (o = G2({
|
1601
1601
|
defaultCountry: n
|
1602
1602
|
}, o));
|
1603
|
-
else if (
|
1603
|
+
else if (D(n))
|
1604
1604
|
$ ? (o = n, u = $) : u = n;
|
1605
1605
|
else throw new Error("Invalid second argument: ".concat(n));
|
1606
1606
|
return {
|
@@ -1609,7 +1609,7 @@ function K2(d) {
|
|
1609
1609
|
metadata: u
|
1610
1610
|
};
|
1611
1611
|
}
|
1612
|
-
function
|
1612
|
+
function Xd(d, e) {
|
1613
1613
|
var t = Object.keys(d);
|
1614
1614
|
if (Object.getOwnPropertySymbols) {
|
1615
1615
|
var r = Object.getOwnPropertySymbols(d);
|
@@ -1619,12 +1619,12 @@ function Yd(d, e) {
|
|
1619
1619
|
}
|
1620
1620
|
return t;
|
1621
1621
|
}
|
1622
|
-
function
|
1622
|
+
function Yd(d) {
|
1623
1623
|
for (var e = 1; e < arguments.length; e++) {
|
1624
1624
|
var t = arguments[e] != null ? arguments[e] : {};
|
1625
|
-
e % 2 ?
|
1625
|
+
e % 2 ? Xd(Object(t), !0).forEach(function(r) {
|
1626
1626
|
W2(d, r, t[r]);
|
1627
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) :
|
1627
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) : Xd(Object(t)).forEach(function(r) {
|
1628
1628
|
Object.defineProperty(d, r, Object.getOwnPropertyDescriptor(t, r));
|
1629
1629
|
});
|
1630
1630
|
}
|
@@ -1634,16 +1634,16 @@ function W2(d, e, t) {
|
|
1634
1634
|
return e in d ? Object.defineProperty(d, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : d[e] = t, d;
|
1635
1635
|
}
|
1636
1636
|
function X2(d, e, t) {
|
1637
|
-
e && e.defaultCountry && !r1(e.defaultCountry, t) && (e =
|
1637
|
+
e && e.defaultCountry && !r1(e.defaultCountry, t) && (e = Yd(Yd({}, e), {}, {
|
1638
1638
|
defaultCountry: void 0
|
1639
1639
|
}));
|
1640
1640
|
try {
|
1641
1641
|
return M2(d, e, t);
|
1642
1642
|
} catch (r) {
|
1643
|
-
if (!(r instanceof
|
1643
|
+
if (!(r instanceof _)) throw r;
|
1644
1644
|
}
|
1645
1645
|
}
|
1646
|
-
function
|
1646
|
+
function Zd(d, e) {
|
1647
1647
|
var t = Object.keys(d);
|
1648
1648
|
if (Object.getOwnPropertySymbols) {
|
1649
1649
|
var r = Object.getOwnPropertySymbols(d);
|
@@ -1653,12 +1653,12 @@ function Jd(d, e) {
|
|
1653
1653
|
}
|
1654
1654
|
return t;
|
1655
1655
|
}
|
1656
|
-
function
|
1656
|
+
function Jd(d) {
|
1657
1657
|
for (var e = 1; e < arguments.length; e++) {
|
1658
1658
|
var t = arguments[e] != null ? arguments[e] : {};
|
1659
|
-
e % 2 ?
|
1659
|
+
e % 2 ? Zd(Object(t), !0).forEach(function(r) {
|
1660
1660
|
Y2(d, r, t[r]);
|
1661
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) :
|
1661
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) : Zd(Object(t)).forEach(function(r) {
|
1662
1662
|
Object.defineProperty(d, r, Object.getOwnPropertyDescriptor(t, r));
|
1663
1663
|
});
|
1664
1664
|
}
|
@@ -1669,7 +1669,7 @@ function Y2(d, e, t) {
|
|
1669
1669
|
}
|
1670
1670
|
function Z2() {
|
1671
1671
|
var d = K2(arguments), e = d.text, t = d.options, r = d.metadata;
|
1672
|
-
t =
|
1672
|
+
t = Jd(Jd({}, t), {}, {
|
1673
1673
|
extract: !1
|
1674
1674
|
});
|
1675
1675
|
var n = X2(e, t, r);
|
@@ -1678,7 +1678,7 @@ function Z2() {
|
|
1678
1678
|
function J2() {
|
1679
1679
|
return X0(Z2, arguments);
|
1680
1680
|
}
|
1681
|
-
const q2 = { class: "w-100 d-flex flex-nowrap mx-auto" }, z2 = { class: "pb-0" }, Q2 = ["alt", "src"], de = ["alt", "src"], ee = { class: "mx-2" }, te = { class: "w-100 pl-1 pb-0" },
|
1681
|
+
const q2 = { class: "w-100 d-flex flex-nowrap mx-auto" }, z2 = { class: "pb-0" }, Q2 = ["alt", "src"], de = ["alt", "src"], ee = { class: "mx-2" }, te = { class: "w-100 pl-1 pb-0" }, a0 = /* @__PURE__ */ c0({
|
1682
1682
|
__name: "BPhoneInput",
|
1683
1683
|
props: {
|
1684
1684
|
phoneNumber: { default: "" },
|
@@ -1687,94 +1687,90 @@ const q2 = { class: "w-100 d-flex flex-nowrap mx-auto" }, z2 = { class: "pb-0" }
|
|
1687
1687
|
},
|
1688
1688
|
emits: ["input"],
|
1689
1689
|
setup(d, { expose: e, emit: t }) {
|
1690
|
-
const r = d, n = t, { t: $ } = h0(), a =
|
1691
|
-
() => Object.values(
|
1692
|
-
(
|
1690
|
+
const r = d, n = t, { t: $ } = h0(), a = N(r.phoneNumber), i = N(r.phoneCountry), o = N(r.readonly), u = N([]), l = N(null), m = T(
|
1691
|
+
() => Object.values(Nd).sort(
|
1692
|
+
(g, E) => g.name.localeCompare(E.name)
|
1693
1693
|
)
|
1694
|
-
),
|
1695
|
-
() => i.value ? `+${
|
1696
|
-
),
|
1694
|
+
), c = T(
|
1695
|
+
() => i.value ? `+${Nd[i.value].dialCode}` : ""
|
1696
|
+
), v = T(() => ({
|
1697
1697
|
appendOuterIcon: o.value ? "fas fa-edit" : void 0,
|
1698
1698
|
class: { "v-input--is-disabled": o.value },
|
1699
1699
|
clearable: !o.value,
|
1700
1700
|
readonly: o.value
|
1701
|
-
})),
|
1701
|
+
})), p = () => {
|
1702
1702
|
u.value = [
|
1703
|
-
(
|
1704
|
-
(
|
1705
|
-
|
1703
|
+
(g) => K0.required(g) || $("BPhoneInput.rules.required"),
|
1704
|
+
(g) => J2(
|
1705
|
+
c.value + g,
|
1706
1706
|
i.value
|
1707
1707
|
) || $("BPhoneInput.rules.format")
|
1708
1708
|
];
|
1709
|
-
},
|
1710
|
-
const
|
1709
|
+
}, O = () => {
|
1710
|
+
const g = {
|
1711
1711
|
phoneCountry: i.value,
|
1712
1712
|
phoneNumber: a.value,
|
1713
|
-
phonePrefix:
|
1713
|
+
phonePrefix: c.value
|
1714
1714
|
};
|
1715
|
-
n("input",
|
1716
|
-
},
|
1715
|
+
n("input", g);
|
1716
|
+
}, M = () => {
|
1717
1717
|
o.value && (o.value = !1);
|
1718
|
-
},
|
1719
|
-
|
1720
|
-
return ((f = s.value) == null ? void 0 : f.validate()) ?? !1;
|
1721
|
-
}, k = () => {
|
1722
|
-
var f;
|
1723
|
-
(f = s.value) == null || f.reset();
|
1718
|
+
}, w = () => l.value?.validate() ?? !1, G = () => {
|
1719
|
+
l.value?.reset();
|
1724
1720
|
};
|
1725
|
-
return
|
1721
|
+
return S(
|
1726
1722
|
() => i.value,
|
1727
1723
|
() => {
|
1728
1724
|
if (i.value) {
|
1729
|
-
const
|
1730
|
-
|
1725
|
+
const g = l.value;
|
1726
|
+
g && (g.hasFocused = !0, g.validate(), p());
|
1731
1727
|
}
|
1732
|
-
|
1728
|
+
O();
|
1733
1729
|
}
|
1734
|
-
),
|
1730
|
+
), S(
|
1735
1731
|
() => a.value,
|
1736
1732
|
() => {
|
1737
|
-
|
1733
|
+
p(), O();
|
1738
1734
|
},
|
1739
1735
|
{ immediate: !0 }
|
1740
1736
|
), e({
|
1741
|
-
reset:
|
1742
|
-
validate:
|
1743
|
-
}), (
|
1744
|
-
|
1737
|
+
reset: G,
|
1738
|
+
validate: w
|
1739
|
+
}), (g, E) => (b0(), v0("div", q2, [
|
1740
|
+
R("div", z2, [
|
1745
1741
|
y(R0, {
|
1746
1742
|
ref: "phoneCountryMenu",
|
1747
1743
|
modelValue: i.value,
|
1748
|
-
"onUpdate:modelValue":
|
1744
|
+
"onUpdate:modelValue": E[0] || (E[0] = (f) => i.value = f),
|
1749
1745
|
class: g0(["phone-prefix-input", { "v-input--is-disabled": r.readonly }]),
|
1750
1746
|
density: "compact",
|
1751
1747
|
"hide-details": "",
|
1752
|
-
"item-title": (
|
1748
|
+
"item-title": (f) => `${f.iso2} ${f.name} +${f.dialCode}`,
|
1753
1749
|
"item-value": "iso2",
|
1754
|
-
items:
|
1755
|
-
"no-data-text":
|
1750
|
+
items: m.value,
|
1751
|
+
"no-data-text": ed($)("BPhoneInput.noDataText"),
|
1756
1752
|
variant: "outlined",
|
1757
1753
|
readonly: o.value,
|
1758
1754
|
color: "primary"
|
1759
1755
|
}, {
|
1760
|
-
selection:
|
1761
|
-
|
1762
|
-
alt:
|
1756
|
+
selection: H(({ item: f }) => [
|
1757
|
+
R("img", {
|
1758
|
+
alt: f.raw.iso2,
|
1763
1759
|
class: "mr-2",
|
1764
|
-
src:
|
1760
|
+
src: f.raw.icon,
|
1765
1761
|
width: "20"
|
1766
1762
|
}, null, 8, Q2)
|
1767
1763
|
]),
|
1768
|
-
item:
|
1769
|
-
y(G0, y0(m0(
|
1770
|
-
title:
|
1771
|
-
|
1772
|
-
alt:
|
1773
|
-
src:
|
1764
|
+
item: H(({ item: f, props: I }) => [
|
1765
|
+
y(G0, y0(m0(I)), {
|
1766
|
+
title: H(() => [
|
1767
|
+
R("img", {
|
1768
|
+
alt: f.raw.iso2,
|
1769
|
+
src: f.raw.icon,
|
1774
1770
|
width: "20"
|
1775
1771
|
}, null, 8, de),
|
1776
|
-
|
1777
|
-
|
1772
|
+
R("span", ee, td(f.raw.name), 1),
|
1773
|
+
R("b", null, "+" + td(f.raw.dialCode), 1)
|
1778
1774
|
]),
|
1779
1775
|
_: 2
|
1780
1776
|
}, 1040)
|
@@ -1782,26 +1778,26 @@ const q2 = { class: "w-100 d-flex flex-nowrap mx-auto" }, z2 = { class: "pb-0" }
|
|
1782
1778
|
_: 1
|
1783
1779
|
}, 8, ["modelValue", "class", "item-title", "items", "no-data-text", "readonly"])
|
1784
1780
|
]),
|
1785
|
-
|
1786
|
-
y(L0,
|
1781
|
+
R("div", te, [
|
1782
|
+
y(L0, K({
|
1787
1783
|
ref_key: "phoneNumber",
|
1788
|
-
ref:
|
1784
|
+
ref: l,
|
1789
1785
|
modelValue: a.value,
|
1790
|
-
"onUpdate:modelValue":
|
1786
|
+
"onUpdate:modelValue": E[1] || (E[1] = (f) => a.value = f),
|
1791
1787
|
autocomplete: "on",
|
1792
1788
|
autocompletetype: "phone"
|
1793
|
-
},
|
1789
|
+
}, v.value, {
|
1794
1790
|
density: "compact",
|
1795
|
-
label:
|
1791
|
+
label: ed($)("BPhoneInput.label"),
|
1796
1792
|
name: "phone",
|
1797
1793
|
variant: "outlined",
|
1798
|
-
prefix:
|
1794
|
+
prefix: c.value,
|
1799
1795
|
rules: u.value,
|
1800
|
-
"onClick:append":
|
1796
|
+
"onClick:append": M,
|
1801
1797
|
color: "primary"
|
1802
1798
|
}), {
|
1803
|
-
message:
|
1804
|
-
p0(
|
1799
|
+
message: H(({ message: f }) => [
|
1800
|
+
p0(td(ed($)(f)), 1)
|
1805
1801
|
]),
|
1806
1802
|
_: 1
|
1807
1803
|
}, 16, ["modelValue", "label", "prefix", "rules"])
|
@@ -1809,7 +1805,7 @@ const q2 = { class: "w-100 d-flex flex-nowrap mx-auto" }, z2 = { class: "pb-0" }
|
|
1809
1805
|
]));
|
1810
1806
|
}
|
1811
1807
|
});
|
1812
|
-
function
|
1808
|
+
function qd(d) {
|
1813
1809
|
const e = d;
|
1814
1810
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
1815
1811
|
locale: "",
|
@@ -1887,8 +1883,8 @@ function zd(d) {
|
|
1887
1883
|
}
|
1888
1884
|
});
|
1889
1885
|
}
|
1890
|
-
typeof
|
1891
|
-
const fe = /* @__PURE__ */ B0(
|
1886
|
+
typeof qd == "function" && qd(a0);
|
1887
|
+
const fe = /* @__PURE__ */ B0(a0, [["__scopeId", "data-v-668bddf2"]]), re = N0({
|
1892
1888
|
autoGrow: Boolean,
|
1893
1889
|
autofocus: Boolean,
|
1894
1890
|
counter: [Boolean, Number, String],
|
@@ -1934,67 +1930,64 @@ const fe = /* @__PURE__ */ B0(i0, [["__scopeId", "data-v-cbe41185"]]), re = N0({
|
|
1934
1930
|
isFocused: a,
|
1935
1931
|
focus: i,
|
1936
1932
|
blur: o
|
1937
|
-
} = V0(d), u =
|
1933
|
+
} = V0(d), u = T(() => typeof d.counterValue == "function" ? d.counterValue($.value) : ($.value || "").toString().length), l = T(() => {
|
1938
1934
|
if (t.maxlength) return t.maxlength;
|
1939
1935
|
if (!(!d.counter || typeof d.counter != "number" && typeof d.counter != "string"))
|
1940
1936
|
return d.counter;
|
1941
1937
|
});
|
1942
|
-
function
|
1943
|
-
|
1944
|
-
!d.autofocus || !l || (C = (m = P[0].target) == null ? void 0 : m.focus) == null || C.call(m);
|
1938
|
+
function m(s, b) {
|
1939
|
+
!d.autofocus || !s || b[0].target?.focus?.();
|
1945
1940
|
}
|
1946
|
-
const
|
1947
|
-
function
|
1948
|
-
|
1949
|
-
_.value !== document.activeElement && ((l = _.value) == null || l.focus()), a.value || i();
|
1941
|
+
const c = N(), v = N(), p = _0(""), O = N(), M = T(() => d.persistentPlaceholder || a.value || d.active);
|
1942
|
+
function w() {
|
1943
|
+
O.value !== document.activeElement && O.value?.focus(), a.value || i();
|
1950
1944
|
}
|
1951
|
-
function
|
1952
|
-
|
1945
|
+
function G(s) {
|
1946
|
+
w(), r("click:control", s);
|
1953
1947
|
}
|
1954
|
-
function
|
1955
|
-
r("mousedown:control",
|
1948
|
+
function g(s) {
|
1949
|
+
r("mousedown:control", s);
|
1956
1950
|
}
|
1957
|
-
function
|
1958
|
-
|
1959
|
-
$.value = "", A0(d["onClick:clear"],
|
1951
|
+
function E(s) {
|
1952
|
+
s.stopPropagation(), w(), rd(() => {
|
1953
|
+
$.value = "", A0(d["onClick:clear"], s);
|
1960
1954
|
});
|
1961
1955
|
}
|
1962
|
-
function
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
P.selectionStart = C[0], P.selectionEnd = C[1];
|
1956
|
+
function f(s) {
|
1957
|
+
const b = s.target;
|
1958
|
+
if ($.value = b.value, d.modelModifiers?.trim) {
|
1959
|
+
const x = [b.selectionStart, b.selectionEnd];
|
1960
|
+
rd(() => {
|
1961
|
+
b.selectionStart = x[0], b.selectionEnd = x[1];
|
1969
1962
|
});
|
1970
1963
|
}
|
1971
1964
|
}
|
1972
|
-
const
|
1965
|
+
const I = N(), V = N(Number(d.rows)), q = T(() => ["plain", "underlined"].includes(d.variant));
|
1973
1966
|
C0(() => {
|
1974
|
-
d.autoGrow || (
|
1967
|
+
d.autoGrow || (V.value = Number(d.rows));
|
1975
1968
|
});
|
1976
|
-
function
|
1977
|
-
d.autoGrow &&
|
1978
|
-
if (!
|
1979
|
-
const
|
1980
|
-
|
1969
|
+
function A() {
|
1970
|
+
d.autoGrow && rd(() => {
|
1971
|
+
if (!I.value || !v.value) return;
|
1972
|
+
const s = getComputedStyle(I.value), b = getComputedStyle(v.value.$el), x = parseFloat(s.getPropertyValue("--v-field-padding-top")) + parseFloat(s.getPropertyValue("--v-input-padding-top")) + parseFloat(s.getPropertyValue("--v-field-padding-bottom")), z = I.value.scrollHeight, j = parseFloat(s.lineHeight), Q = Math.max(parseFloat(d.rows) * j + x, parseFloat(b.getPropertyValue("--v-input-control-height"))), dd = parseFloat(d.maxRows) * j + x || 1 / 0, F = w0(z ?? 0, Q, dd);
|
1973
|
+
V.value = Math.floor((F - x) / j), p.value = F0(F);
|
1981
1974
|
});
|
1982
1975
|
}
|
1983
|
-
E0(
|
1984
|
-
let
|
1985
|
-
return
|
1986
|
-
|
1976
|
+
E0(A), S($, A), S(() => d.rows, A), S(() => d.maxRows, A), S(() => d.density, A);
|
1977
|
+
let U;
|
1978
|
+
return S(I, (s) => {
|
1979
|
+
s ? (U = new ResizeObserver(A), U.observe(I.value)) : U?.disconnect();
|
1987
1980
|
}), I0(() => {
|
1988
|
-
|
1981
|
+
U?.disconnect();
|
1989
1982
|
}), k0(() => {
|
1990
|
-
const
|
1991
|
-
modelValue:
|
1992
|
-
...
|
1993
|
-
} =
|
1994
|
-
return y(
|
1995
|
-
ref:
|
1983
|
+
const s = !!(n.counter || d.counter || d.counterValue), b = !!(s || n.details), [x, z] = x0(t), {
|
1984
|
+
modelValue: j,
|
1985
|
+
...Q
|
1986
|
+
} = Cd.filterProps(d), dd = _d.filterProps(d);
|
1987
|
+
return y(Cd, K({
|
1988
|
+
ref: c,
|
1996
1989
|
modelValue: $.value,
|
1997
|
-
"onUpdate:modelValue": (
|
1990
|
+
"onUpdate:modelValue": (F) => $.value = F,
|
1998
1991
|
class: ["v-textarea v-text-field", {
|
1999
1992
|
"v-textarea--prefixed": d.prefix,
|
2000
1993
|
"v-textarea--suffixed": d.suffix,
|
@@ -2002,38 +1995,38 @@ const fe = /* @__PURE__ */ B0(i0, [["__scopeId", "data-v-cbe41185"]]), re = N0({
|
|
2002
1995
|
"v-text-field--suffixed": d.suffix,
|
2003
1996
|
"v-textarea--auto-grow": d.autoGrow,
|
2004
1997
|
"v-textarea--no-resize": d.noResize || d.autoGrow,
|
2005
|
-
"v-input--plain-underlined":
|
1998
|
+
"v-input--plain-underlined": q.value
|
2006
1999
|
}, d.class],
|
2007
2000
|
style: d.style
|
2008
|
-
},
|
2009
|
-
centerAffix:
|
2001
|
+
}, x, Q, {
|
2002
|
+
centerAffix: V.value === 1 && !q.value,
|
2010
2003
|
focused: a.value
|
2011
2004
|
}), {
|
2012
2005
|
...n,
|
2013
|
-
default: (
|
2006
|
+
default: (F) => {
|
2014
2007
|
let {
|
2015
|
-
id:
|
2016
|
-
isDisabled:
|
2017
|
-
isDirty:
|
2008
|
+
id: i0,
|
2009
|
+
isDisabled: md,
|
2010
|
+
isDirty: pd,
|
2018
2011
|
isReadonly: o0,
|
2019
2012
|
isValid: u0
|
2020
|
-
} =
|
2021
|
-
return y(
|
2022
|
-
ref:
|
2013
|
+
} = F;
|
2014
|
+
return y(_d, K({
|
2015
|
+
ref: v,
|
2023
2016
|
style: {
|
2024
|
-
"--v-textarea-control-height":
|
2017
|
+
"--v-textarea-control-height": p.value
|
2025
2018
|
},
|
2026
|
-
onClick:
|
2027
|
-
onMousedown:
|
2028
|
-
"onClick:clear":
|
2019
|
+
onClick: G,
|
2020
|
+
onMousedown: g,
|
2021
|
+
"onClick:clear": E,
|
2029
2022
|
"onClick:prependInner": d["onClick:prependInner"],
|
2030
2023
|
"onClick:appendInner": d["onClick:appendInner"]
|
2031
|
-
},
|
2032
|
-
id:
|
2033
|
-
active:
|
2034
|
-
centerAffix:
|
2035
|
-
dirty:
|
2036
|
-
disabled:
|
2024
|
+
}, dd, {
|
2025
|
+
id: i0.value,
|
2026
|
+
active: M.value || pd.value,
|
2027
|
+
centerAffix: V.value === 1 && !q.value,
|
2028
|
+
dirty: pd.value || d.dirty,
|
2029
|
+
disabled: md.value,
|
2037
2030
|
focused: a.value,
|
2038
2031
|
error: u0.value === !1
|
2039
2032
|
}), {
|
@@ -2041,34 +2034,34 @@ const fe = /* @__PURE__ */ B0(i0, [["__scopeId", "data-v-cbe41185"]]), re = N0({
|
|
2041
2034
|
default: (l0) => {
|
2042
2035
|
let {
|
2043
2036
|
props: {
|
2044
|
-
class:
|
2045
|
-
...
|
2037
|
+
class: bd,
|
2038
|
+
...Pd
|
2046
2039
|
}
|
2047
2040
|
} = l0;
|
2048
|
-
return y(
|
2041
|
+
return y(nd, null, [d.prefix && y("span", {
|
2049
2042
|
class: "v-text-field__prefix"
|
2050
|
-
}, [d.prefix]),
|
2051
|
-
ref:
|
2052
|
-
class:
|
2043
|
+
}, [d.prefix]), Od(y("textarea", K({
|
2044
|
+
ref: O,
|
2045
|
+
class: bd,
|
2053
2046
|
value: $.value,
|
2054
|
-
onInput:
|
2047
|
+
onInput: f,
|
2055
2048
|
autofocus: d.autofocus,
|
2056
2049
|
readonly: o0.value,
|
2057
|
-
disabled:
|
2050
|
+
disabled: md.value,
|
2058
2051
|
placeholder: d.placeholder,
|
2059
2052
|
rows: d.rows,
|
2060
2053
|
name: d.name,
|
2061
|
-
onFocus:
|
2054
|
+
onFocus: w,
|
2062
2055
|
onBlur: o
|
2063
|
-
},
|
2064
|
-
handler:
|
2056
|
+
}, Pd, z), null), [[S0("intersect"), {
|
2057
|
+
handler: m
|
2065
2058
|
}, null, {
|
2066
2059
|
once: !0
|
2067
|
-
}]]), d.autoGrow &&
|
2068
|
-
class: [
|
2069
|
-
id: `${
|
2060
|
+
}]]), d.autoGrow && Od(y("textarea", {
|
2061
|
+
class: [bd, "v-textarea__sizer"],
|
2062
|
+
id: `${Pd.id}-sizer`,
|
2070
2063
|
"onUpdate:modelValue": (s0) => $.value = s0,
|
2071
|
-
ref:
|
2064
|
+
ref: I,
|
2072
2065
|
readonly: !0,
|
2073
2066
|
"aria-hidden": "true"
|
2074
2067
|
}, null), [[T0, $.value]]), d.suffix && y("span", {
|
@@ -2077,20 +2070,17 @@ const fe = /* @__PURE__ */ B0(i0, [["__scopeId", "data-v-cbe41185"]]), re = N0({
|
|
2077
2070
|
}
|
2078
2071
|
});
|
2079
2072
|
},
|
2080
|
-
details:
|
2081
|
-
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
disabled: d.disabled
|
2087
|
-
}, n.counter)])]);
|
2088
|
-
} : void 0
|
2073
|
+
details: b ? (F) => y(nd, null, [n.details?.(F), s && y(nd, null, [y("span", null, null), y(M0, {
|
2074
|
+
active: d.persistentCounter || a.value,
|
2075
|
+
value: u.value,
|
2076
|
+
max: l.value,
|
2077
|
+
disabled: d.disabled
|
2078
|
+
}, n.counter)])]) : void 0
|
2089
2079
|
});
|
2090
|
-
}), j0({},
|
2080
|
+
}), j0({}, c, v, O);
|
2091
2081
|
}
|
2092
2082
|
});
|
2093
|
-
f0("css/revolugo.vtextarea.
|
2083
|
+
f0("css/revolugo.vtextarea.Dxy6uSvm.css");
|
2094
2084
|
export {
|
2095
2085
|
fe as B,
|
2096
2086
|
ce as V,
|
@@ -2099,4 +2089,4 @@ export {
|
|
2099
2089
|
K0 as v,
|
2100
2090
|
X0 as w
|
2101
2091
|
};
|
2102
|
-
//# sourceMappingURL=revolugo.vtextarea.
|
2092
|
+
//# sourceMappingURL=revolugo.vtextarea.mqbZT0AH.min.js.map
|