tocco-admin 1.0.164 → 1.0.166
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/changelog.md +10 -0
- package/dist/04d6fdc95fde068c2adbfaefceda64f4.js +1 -0
- package/dist/04fb736126f6470e31b35815dd726766.js +1 -0
- package/dist/05edc16945dbd5dbfc620a42a1da296a.js +1 -0
- package/dist/0e9e3e7130e916ab2a5074104cf58c10.js +1 -0
- package/dist/12f1dfe288cde1fda28776dbc2b17abe.js +1 -0
- package/dist/1b0aafebfed87a44ca58bc041571f054.js +1 -0
- package/dist/25896c7babd9d46a58cc37029ff93568.js +1 -0
- package/dist/32398e706069c4b609b5cfa872917ebf.js +1 -0
- package/dist/47cc855409817d6be0f272cff5d8a566.js +1 -0
- package/dist/569511c9ae26db72043c2c03e327e25a.js +1 -0
- package/dist/593029c5822af3b8beebe4d13b801f98.js +1 -0
- package/dist/5bfe07d37fe8de98aaf6da53691e8f82.js +1 -0
- package/dist/65bbce52648dff5652ec5f16ff6488d0.js +1 -0
- package/dist/6bd6ab18aaa4ce0e16f01dbc09477829.js +1 -0
- package/dist/6e860ea82b2868e605b25cf5f3e79c3b.js +1 -0
- package/dist/6f98e187bb10a8a52ae5f770af4b3ad5.js +1 -0
- package/dist/7283474943e921206e7c6ab061760b39.js +1 -0
- package/dist/76157bd9c645f5ff31363b7af4a9e86b.js +1 -0
- package/dist/7b149fc44540735190f0abe7546a69ad.js +1 -0
- package/dist/7cb0b8a8e8a8bf596c70d97c89fbe2d1.js +1 -0
- package/dist/842f79fb31926b8da1739c33c365da8d.js +1 -0
- package/dist/8731c9411475c19fb09b60f7dcbe1a52.js +1 -0
- package/dist/88c5669303ea9c7b7c172b45a6ea365d.js +1 -0
- package/dist/8a6c57a8223a58263ee86e7df95bc985.js +1 -0
- package/dist/8afb70e6a4c526e4f16bf49fb8cf3c35.js +1 -0
- package/dist/8bc0134df3327edc15fad4011a7ef8c8.js +1 -0
- package/dist/8db78ecdca0cf3c5f423eca8766fd5cd.js +1 -0
- package/dist/8fa2dead80e1f4956c4c5c868ebb0b81.js +1 -0
- package/dist/917b2857799bc462cb464bfe770581a8.js +1 -0
- package/dist/9404e76c18135b12716e6da4c6cea788.js +1 -0
- package/dist/9a73a8c225dc6db280e2ca2429a93a42.js +1 -0
- package/dist/a4359dd961aff7979121730f1a000715.js +1 -0
- package/dist/b441455dc6e976e97db83dc2be48fd3c.js +1 -0
- package/dist/b7ee0efbcdf094a7f8b23108a209a273.js +1 -0
- package/dist/bfaa80a916ebecb2398b5b63590a0c05.js +1 -0
- package/dist/c1ef58663e7326fe623bed35be305efd.js +1 -0
- package/dist/c520430800e81c168e3324d36625f0a3.js +1 -0
- package/dist/c84e779b889a1e11ad87fb7176d9f6be.js +1 -0
- package/dist/chunk-134.8cb29748313ede04b7ec.js +6 -0
- package/dist/chunk-280.ff02a592ff40915b61dc.js +1 -0
- package/dist/chunk-345.1d483daa18b6c50f83f7.js +1 -0
- package/dist/{chunk-531.9297f1cc9d1c930acdb6.js → chunk-531.08bb18cca3c7f260d7c7.js} +1 -1
- package/dist/chunk-560.24fff0bd453c48fd29ad.js +1 -0
- package/dist/chunk-568.ff41b5b430e80cab2cb5.js +1 -0
- package/dist/chunk-608.e79c0fb78e6b483882ee.js +1 -0
- package/dist/{chunk-759.682253b616aeb93c54ad.js → chunk-759.c3e6811da34ddaf41549.js} +18 -18
- package/dist/chunk-817.9bd1a2e3eea38664999d.js +1 -0
- package/dist/{chunk-860.7b68492219f908e7dc54.js → chunk-860.e2e6e58453c9f760ef6c.js} +1 -1
- package/dist/chunk-947.c449328db8db91ff9b97.js +1 -0
- package/dist/chunk-actions.73fa4cce167e671afca4.js +1 -0
- package/dist/chunk-ckeditor.59c2f058df51fd5195b6.js +1988 -0
- package/dist/{chunk-code-editor.1a593e8d68cf7534f11e.js → chunk-code-editor.8ea9556e602e09d40675.js} +1 -1
- package/dist/{chunk-docs-actions.90dec7a9dcff342a8076.js → chunk-docs-actions.f5530f8de1e807883bfd.js} +1 -1
- package/dist/{chunk-vendor-icons.2c31dcd3c17896915b51.js → chunk-vendor-icons.c210f1ddf3542eb34726.js} +1 -1
- package/dist/chunk-vendor-libphonenumber-js.bac382f9f89374cd2080.js +1 -0
- package/dist/{b35c9a9d72f02feae440dd385a020ef6.js → d990538e9bb18371ca4e54a043b544a3.js} +1 -1
- package/dist/eb90ad711d5c00d78fa48b9b9a9fe065.js +1 -0
- package/dist/eda1064525b2e3ea3e2eaba9bbff6ec1.js +1 -0
- package/dist/ee3ddecefdf957d6d016821cd903afa5.js +1 -0
- package/dist/f1889728797be19372facc2c832f8065.js +1 -0
- package/dist/f316506de87117d7f440fe7c6fba692c.js +1 -0
- package/dist/fcae41196f7c52ef8b0e17065fb0ebcf.js +1 -0
- package/dist/index.js +8 -8
- package/package.json +2 -2
- package/dist/0ec8abb2e91cb079eed4605ea6851cb8.js +0 -1
- package/dist/1092154c23dcc20005a669b15497159f.js +0 -1
- package/dist/1ef4b371fd98f0144354e57bb89d7fa3.js +0 -1
- package/dist/1ff3e5ecc0f8d69a4611a7cd8337f0b2.js +0 -1
- package/dist/252b829e2dab81bc5a4c28d52f34edf5.js +0 -1
- package/dist/275b72e6e6256f50527832ba14ec291e.js +0 -1
- package/dist/2e2f30806fe3accb9b340fb082a1494e.js +0 -1
- package/dist/3053f55c4697117c4c2cd156803b3155.js +0 -1
- package/dist/397e6669a1d15065bd742d20079d6a95.js +0 -1
- package/dist/3aa8f5e8ff182ed46cb6570dad4c4eee.js +0 -1
- package/dist/3b8b51248b6aa0474a02a6c352d1caa1.js +0 -1
- package/dist/3bd6e7a72c8b16825ce3a83b17bd681e.js +0 -1
- package/dist/3bfb519dbb980d6d8fee1bf543dfc5ae.js +0 -1
- package/dist/3db12a05792313b3c537e3256f5e2e93.js +0 -1
- package/dist/3fa11e77942b4cf2c50e845525ae5a9f.js +0 -1
- package/dist/3fe09c1c283d4a26d228f37a77a018b2.js +0 -1
- package/dist/438ed06fb7f9516b12edaf7411c832b0.js +0 -1
- package/dist/46f088332f17d2ea452bd0ef7a5cdbc6.js +0 -1
- package/dist/489b22b946f5972fed0daab6ef587c60.js +0 -1
- package/dist/494ca3291c219565bfb6e45f8eb8c583.js +0 -1
- package/dist/49c58e614c06572ffbabe974a7fda21c.js +0 -1
- package/dist/4afde8c89469302b064e693fa77035f6.js +0 -1
- package/dist/4f5c3cb0b76fa2978539d8b64a71537d.js +0 -1
- package/dist/583d06a5b9251de455ebd89550449842.js +0 -1
- package/dist/5aedf04cf240c6c43540081c3bf9573e.js +0 -1
- package/dist/66713913fc89a3bcad5d7804c03dcb43.js +0 -1
- package/dist/677b2b5d0c9507508a831e4b67d61c6e.js +0 -1
- package/dist/70e2f052e416e2611ded0f57ed53f18a.js +0 -1
- package/dist/727e2cbdf695b3abfe88917062d16a5f.js +0 -1
- package/dist/83e2ed887ee6426c8e0aa4d976b76720.js +0 -1
- package/dist/96efd2775defcf3611fe9a07ed29065f.js +0 -1
- package/dist/996d24547b492c3140f64d51f5229f3c.js +0 -1
- package/dist/99e45b7d238576aa6d4c830bd8715356.js +0 -1
- package/dist/a13fa501edcc6c9712061e0ca5fd400e.js +0 -1
- package/dist/aa6c0d1a7dfd344894b8eba8db42ad04.js +0 -1
- package/dist/b76ff0f203825dcdefb649d98de32f5b.js +0 -1
- package/dist/c2fb2aaf17fa23ca4b9bf7f1c1441caa.js +0 -1
- package/dist/cd1309ef590ed94ac5735c4c667e6549.js +0 -1
- package/dist/chunk-2.4af64969a92a26958f44.js +0 -1
- package/dist/chunk-343.49da6fd1858d2ee7de98.js +0 -6
- package/dist/chunk-560.48669b41a2aef0ad1ed5.js +0 -1
- package/dist/chunk-568.751e6b0056ee2a989bda.js +0 -1
- package/dist/chunk-608.dfac8893ff4c99ef2758.js +0 -1
- package/dist/chunk-817.e0d9ff1e10b2e0d4e8f0.js +0 -1
- package/dist/chunk-878.1e7135661586201df30b.js +0 -30
- package/dist/chunk-947.12376825854346883738.js +0 -1
- package/dist/chunk-actions.a9e295bc66bba27d1577.js +0 -1
- package/dist/chunk-ckeditor.d6b68aabb1db2a4f9f70.js +0 -1992
- package/dist/chunk-vendor-libphonenumber-js.cea6f13cb5c7f8942ad9.js +0 -1
- package/dist/e0564e4f4ec3f3165b6890be52cf9a5e.js +0 -1
- package/dist/e06608fe5b8e7e9d30879d4d91113a08.js +0 -1
- package/dist/e430b621361ebe3a4071e3cca1d0dbe8.js +0 -1
- package/dist/f2abbd0caa62a607a87be62111595f0c.js +0 -1
- package/dist/faa809ba713143a2e8b4760a45e1fe89.js +0 -1
- package/dist/ffb6d262efb0718a20d60b5fecb76ea6.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[614],{8156:(e,t,n)=>{"use strict";n.d(t,{Z:()=>bt});var r,i=n(45697),o=n.n(i),a=n(50600),c=n(84775),l=n(19241),s=n(30604),u=n(73665),f=n(74806),d=n(50558),p="root/LOAD_DIALOG_INFO",b="delete/SET_DELETE_DIALOG_INFO",y="delete/DO_DELETE",h="delete/SET_DELETING_IN_PROGRESS",g="delete/ON_CANCEL",m="delete/SET_ENTITIES_TO_DELETE",v=function(e){return{type:b,payload:{dialogInfo:e}}},O=function(){return{type:y}},j=function(e){return{type:m,payload:{entitiesToDelete:e}}},w=n(1024),x=n.n(w),E=n(50258),P=n(44012),k=n(93235),T=n(34206),S=n(319),C=n.n(S),A=n(63038),D=n.n(A),Z=n(28655),I=n.n(Z),N=n(38205),L=n(76791),R=n(85893);const M=function(e){var t=e.relatedEntity,n=e.children,i=e.maxCountLink;if(t.keys.length<i&&0===t.keysOtherBu.length)return n;var o=(0,R.jsxs)(R.Fragment,{children:[t.keys.length>i&&(r||(r=(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.tooManyRecords"})}))),t.keysOtherBu.length>0&&(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.recordInOtherBU",values:{count:t.keysOtherBu.length}})})]});return(0,R.jsx)(L.Z,{content:o,placement:"top",children:n})};var F,_,q=N.ZP.span.withConfig({displayName:"NonBreakingText"})(F||(F=I()(["\n white-space: nowrap;\n"])));const B=function(e){var t=e.rootEntities,n=e.relatedEntities,r=e.maxCountLink,i=e.navigationStrategy;return(0,R.jsxs)(T.ZP.Span,{children:[(0,R.jsx)(T.ZP.B,{children:Object.entries(t).map((function(e){var t=D()(e,2),n=t[0],r=t[1];return(0,R.jsxs)("span",{children:[r.entityLabel," (",r.keys.length>0&&i.ListLink?(0,R.jsx)(i.ListLink,{entityName:n,entityKeys:r.keys,children:r.keys.length}):(0,R.jsx)(T.ZP.Span,{children:r.keys.length}),")"]},"root-entity-".concat(n))})).reduce((function(e,t){return[e,", ",t]}))}),Object.keys(n).length>0&&(0,R.jsxs)(R.Fragment,{children:[_||(_=(0,R.jsx)("span",{children:" / "})),Object.keys(n).map((function(e){var t=n[e],o=[].concat(C()(t.keys),C()(t.keysOtherBu)).length,a=t.keys.length>0&&i.ListLink?(0,R.jsx)(i.ListLink,{entityName:e,entityKeys:t.keys.slice(0,r),children:o}):(0,R.jsx)(T.ZP.Span,{children:o}),c=(0,R.jsx)(M,{relatedEntity:t,maxCountLink:r,children:a});return(0,R.jsx)(x().Fragment,{children:(0,R.jsxs)(q,{children:[t.entityLabel," (",c,")"]})},"entity-info-"+e)})).reduce((function(e,t){return[e,", ",t]}))]})]})};var U,W,H,Y=n(7281),z=N.ZP.div.withConfig({displayName:"StyledIconWrapper"})(U||(U=I()(["\n margin-bottom: ",";\n"])),Y.Z.space(.2));const V=function(e){var t=e.dialogInfo,n=e.navigationStrategy;return(0,R.jsxs)(R.Fragment,{children:[W||(W=(0,R.jsx)(z,{children:(0,R.jsx)(k.Z,{size:"30px"})})),H||(H=(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.deleteInProgress"})})),(0,R.jsx)(B,{rootEntities:t.rootEntitiesDeletable,relatedEntities:t.relatedDeletable,maxCountLink:100,navigationStrategy:n},"infopart-deletable")]})};var G={doDelete:O};const K=(0,d.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),G)((0,f.ZP)(V));var $,J,Q=n(83324),X=n(78958),ee=n(59713),te=n.n(ee),ne=n(27361),re=n.n(ne),ie=n(24875),oe=n(58664),ae=[X.Z.condition.BASE,X.Z.condition.DANGER,X.Z.condition.SUCCESS,X.Z.condition.WARNING],ce=($={},te()($,X.Z.condition.DANGER,ie.FS.color("signal.danger")),te()($,X.Z.condition.SUCCESS,ie.FS.color("signal.success")),te()($,X.Z.condition.WARNING,ie.FS.color("signal.warning")),te()($,X.Z.condition.BASE,(function(e){return(0,oe.HO)(re()(e.theme,"colors.paper"),1)})),$),le=N.ZP.div.withConfig({displayName:"StyledSignalBox"})(J||(J=I()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n border-radius: ",";\n ","\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return ce[e.condition]||(0,oe.HO)(re()(e.theme,"colors.paper"),1)}(e)}),Y.Z.space(-1),Y.Z.space(-1),ie.FS.radii("radii.regular"),(function(e){var t=e.condition,n=e.theme;return"base"!==t&&"\n * {\n color: ".concat(n.colors.paper,";\n }\n ")}));le.propTypes={condition:X.Z.oneOfPropTypeAndCompletelyMapped(ae,ce)};var se=function(e){var t=e.condition,n=e.title,r=e.children,i=e.meta;return(0,R.jsxs)(le,{condition:t,children:[n&&(0,R.jsx)(T.ZP.H5,{children:n}),x().Children.map(r,(function(e){return x().cloneElement(e)})),i&&(0,R.jsx)(T.ZP.Small,{children:i})]})};se.defaultProps={condition:X.Z.condition.BASE};const ue=se;var fe,de,pe,be,ye,he,ge,me=n(65035),ve=n(36589),Oe=N.ZP.div.withConfig({displayName:"StyledSectionWrapper"})(fe||(fe=I()(["\n padding-top: ",";\n"])),Y.Z.space(.6)),je=N.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(de||(de=I()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),ve.Z);const we=function(e){var t=e.dialogInfo,n=t.rootEntitiesDeletable,r=t.rootEntitiesNotDeletable,i=t.relatedDeletable,o=t.relatedNotDeletable,a=t.hasUnreadableEntities,c=e.doDelete,l=e.onCancel,s=e.navigationStrategy;return(0,Q.z)(l),(0,R.jsxs)(R.Fragment,{children:[pe||(pe=(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.confirmText"})})),(0,R.jsx)(B,{rootEntities:n,relatedEntities:i,maxCountLink:100,navigationStrategy:s},"infopart-deletable"),Object.keys(r).length>0&&(0,R.jsxs)(Oe,{children:[be||(be=(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.textNotDeletable"})})),(0,R.jsx)(B,{rootEntities:r,relatedEntities:o,maxCountLink:100,navigationStrategy:s},"infopart-notdeletable")]}),a&&(ye||(ye=(0,R.jsx)(Oe,{children:(0,R.jsx)(ue,{condition:"warning",children:(0,R.jsx)(T.ZP.Span,{children:(0,R.jsx)(P.Z,{id:"client.delete.unreadableEntities"})})})}))),(0,R.jsx)(Oe,{children:(0,R.jsxs)(je,{children:[(0,R.jsx)(me.Z,{onClick:c,disabled:Object.keys(n).every((function(e){return 0===n[e].keys.length})),children:he||(he=(0,R.jsx)(P.Z,{id:"client.delete.deleteButton"}))}),(0,R.jsx)(me.Z,{ink:"primary",look:"raised",onClick:l,children:ge||(ge=(0,R.jsx)(P.Z,{id:"client.delete.cancelButton"}))})]})})]})};var xe={doDelete:O,onCancel:function(){return{type:g}}};const Ee=(0,d.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),xe)((0,f.ZP)(we));var Pe,ke;const Te=function(e){var t=e.loadDialogInfo,n=e.dialogInfo,r=e.deletingInProgress,i=e.intl;(0,w.useEffect)((function(){t()}),[t]);var o;return r?Pe||(Pe=(0,R.jsx)(K,{})):(0,R.jsx)(E.Z,{required:[n],loadingText:(o="client.delete.loadingText",i.formatMessage({id:o})),children:n&&(ke||(ke=(0,R.jsx)(Ee,{})))})};var Se={loadDialogInfo:function(){return{type:p}}};const Ce=(0,d.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,deletingInProgress:e.del.deletingInProgress}}),Se)((0,f.ZP)(Te));var Ae,De=n(81770),Ze=(Ae={},te()(Ae,b,De.Z.singleTransferReducer("dialogInfo")),te()(Ae,m,De.Z.singleTransferReducer("entitiesToDelete")),te()(Ae,h,De.Z.singleTransferReducer("deletingInProgress")),Ae),Ie={dialogInfo:null,entitiesToDelete:null,deletingInProgress:!1};var Ne=n(87757),Le=n.n(Ne),Re=n(34857),Me=n(81719);function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){te()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qe="DELETABLE",Be=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.rootEntity,i=r.entityName,o=r.entityLabel,a=r.key;if(a.includes("/")){var c=a.split("/"),l=D()(c,2),s=l[0],u=l[1];return _e(_e({},e),{},te()({},s,{entityLabel:o,keys:[].concat(C()(re()(e,[s,"keys"],[])),C()(n?[u]:[]))}))}return _e(_e({},e),{},te()({},i,{entityLabel:o,keys:[].concat(C()(re()(e,[i,"keys"],[])),C()(n?[a]:[]))}))},Ue=function(e){return e.rootEntity.deleteStatus===qe&&!e.affectedEntities.find((function(e){return e.deleteStatus!==qe}))},We=function(e,t){var n=e.entitiesToDelete;return n.reduce((function(e,n){var r=Ue(n),i=r?"relatedDeletable":"relatedNotDeletable";return _e(_e(_e({},e),{},{rootEntitiesDeletable:Be(e.rootEntitiesDeletable,n,r)},!r&&{rootEntitiesNotDeletable:Be(e.rootEntitiesNotDeletable,n)}),{},te()({},i,function(e,t,n,r){return _e({},t.affectedEntities.reduce((function(e,t){return _e(_e({},e),n||t.deleteStatus!==qe?te()({},t.entityName,_e(_e({},re()(e,t.entityName,{keys:[],keysOtherBu:[],entityLabel:t.entityLabel})),null===t.businessUnitId||t.businessUnitId===r?{keys:Array.from(new Set([].concat(C()(re()(e,[t.entityName,"keys"],[])),[t.key])))}:{keysOtherBu:Array.from(new Set([].concat(C()(re()(e,[t.entityName,"keysOtherBu"],[])),[t.key])))})):{})}),_e({},e)))}(e[i],n,r,t)))}),{rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!!n.find((function(e){return e.unreadableEntities}))})},He=function(e){var t=e.entitiesToDelete;return{entityName:re()(t,"[0].rootEntity.entityName"),keys:t.reduce((function(e,t){return[].concat(C()(e),C()(Ue(t)?[t.rootEntity.key]:[]))}),[])}},Ye=o().shape({entityLabel:o().string,keys:o().arrayOf(o().string),keysOtherBu:o().arrayOf(o().string)}),ze=(o().shape({rootEntitiesDeletable:o().objectOf(Ye).isRequired,rootEntitiesNotDeletable:o().objectOf(Ye).isRequired,relatedDeletable:o().objectOf(Ye).isRequired,relatedNotDeletable:o().objectOf(Ye).isRequired,hasUnreadableEntities:o().bool}),Le().mark(tt)),Ve=Le().mark(nt),Ge=Le().mark(rt),Ke=Le().mark(it),$e=Le().mark(ot),Je=Le().mark(at),Qe=function(e){return e.input},Xe=function(e){return e.intl.messages},et=function(e){return e.del.entitiesToDelete};function tt(){var e,t,n;return Le().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Re.Ys)(Qe);case 2:return e=r.sent,t=e.selection,r.next=6,(0,Re.RE)(u.Z.getEntities,t,Me.Z.fetchEntities);case 6:return n=r.sent,r.abrupt("return",{entityModel:n.entityName,keys:n.keys});case 8:case"end":return r.stop()}}),ze)}function nt(){var e,t;return Le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Re.Ys)(Qe);case 2:return e=n.sent,t=e.customDeleteEndpoint,n.abrupt("return",t||"client/delete");case 5:case"end":return n.stop()}}),Ve)}function rt(){var e,t,n,r,i,o,a,c;return Le().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,Re.RE)(tt);case 2:return e=l.sent,l.next=5,(0,Re.RE)(nt);case 5:return t=l.sent,l.next=8,(0,Re.$6)([(0,Re.RE)(Me.Z.requestSaga,"".concat(t,"/dialog"),{method:"POST",body:e}),(0,Re.RE)(Me.Z.fetchPrincipal)]);case 8:return n=l.sent,r=D()(n,2),i=r[0],o=r[1],l.next=14,(0,Re.RE)(We,i.body,o.currentBusinessUnit.id);case 14:return a=l.sent,l.next=17,(0,Re.gz)(v(a));case 17:return l.next=19,(0,Re.RE)(He,i.body);case 19:return c=l.sent,l.next=22,(0,Re.gz)(j(c));case 22:case"end":return l.stop()}}),Ge)}function it(){var e,t,n,r,i,o,a;return Le().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,Re.Ys)(et);case 2:return e=c.sent,c.next=5,(0,Re.gz)({type:h,payload:{deletingInProgress:!0}});case 5:return c.next=7,(0,Re.RE)(nt);case 7:return t=c.sent,c.next=10,(0,Re.RE)(Me.Z.requestSaga,t,{method:"POST",body:{entityModel:e.entityName,keys:e.keys},acceptedStatusCodes:[409]});case 10:return n=c.sent,c.next=13,(0,Re.Ys)(Xe);case 13:if(r=c.sent,!n.ok){c.next=22;break}return i=n.body,o=Object.keys(i.deletedEntities).reduce((function(e,t){return[].concat(C()(e),C()(i.deletedEntities[t].map((function(e){return{entityName:t,key:e}}))))}),[]),a=[{type:"entity-delete-event",payload:{entities:o}}],c.next=20,(0,Re.gz)(l.Z.fireExternalEvent("onSuccess",{message:r["client.delete.successfullyMessage"],remoteEvents:a}));case 20:case 25:c.next=29;break;case 22:if(409!==n.status||!n.body.information){c.next=27;break}return c.next=25,(0,Re.gz)(l.Z.fireExternalEvent("onError",{message:n.body.information}));case 27:return c.next=29,(0,Re.gz)(l.Z.fireExternalEvent("onError",{message:r["client.delete.errorMessage"]}));case 29:case"end":return c.stop()}}),Ke)}function ot(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Re.gz)(l.Z.fireExternalEvent("onCancel"));case 2:case"end":return e.stop()}}),$e)}function at(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Re.$6)([(0,Re.Fm)(p,rt),(0,Re.Fm)(y,it),(0,Re.Fm)(g,ot)]);case 2:case"end":return e.stop()}}),Je)}const ct={del:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ie,t=arguments.length>1?arguments[1]:void 0,n=Ze[t.type];return n?n(e,t):e}};var lt,st=[at],ut="delete",ft=["onSuccess","onCancel","onError","emitAction"],dt=function(e,t,n,r){var i=lt||(lt=(0,R.jsx)(Ce,{})),o=c.Z.createStore(ct,st,t,ut);a.Z.addToStore(o,(function(e){return e.input.emitAction}));var u=!n.emitAction;return s.Z.addToStore(o,u),l.Z.addToStore(o,(function(e){return c.Z.getEvents(ft,e.input)})),c.Z.createApp(ut,i,o,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",ut]})};c.Z.registerAppInRegistry(ut,dt);var pt=function(e){return c.Z.useApp({initApp:dt,props:e,packageName:ut,externalEvents:ft}).component};pt.propTypes={selection:u.Z.propType.isRequired,customDeleteEndpoint:o().string};const bt=pt;c.Z.createBundleableApp(ut,dt,pt)},73665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(45697),i=n.n(r);const o={ID:"ID",QUERY:"QUERY"},a=i().shape({entityName:i().string.isRequired,ids:function(e,t,n){if(e.selection&&e.selection.type===o.ID&&!e.selection[t])return new Error("Selection.ids prop not defined. Component: ".concat(n,"'."))},query:function(e,t,n){if(e.selection&&e.selection.type===o.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:i().oneOf(Object.keys(o)).isRequired,count:i().number});var c=n(59713),l=n.n(c),s=n(87757),u=n.n(s),f=n(34857),d=n(44759),p=u().mark(g);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=1e5;function g(e,t){var n,r;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(n=e.entityName,e.type!==o.QUERY){i.next=9;break}return i.next=4,(0,f.RE)(t,e.entityName,y(y({},e.query),{},{limit:h}));case 4:if(!((r=i.sent).length>h)){i.next=8;break}return i.next=8,(0,f.RE)(d.Z.logError,"Selected records exceed limit of ".concat(h));case 8:return i.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 9:return i.abrupt("return",{entityName:n,keys:e.ids});case 10:case"end":return i.stop()}}),p)}const m={getEntities:g,getSingleKey:function(e,t){if(e.entityName!==t)throw new Error("Only selection of ".concat(t," supported"));if("ID"!==e.type)throw new Error("Only ID selection type supported");if(!e.ids||1!==e.ids.length)throw new Error("Exactly one ".concat(t," must be selected"));return e.ids[0]},propType:a,selectionTypes:o}},81749:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,b:()=>o});var r=n(45697),i={NONE:"none",FULLTEXT:"fulltext",SIMPLE:"simple",SIMPLE_ADVANCED:"simple_advanced",ADVANCED:"advanced",ADMIN:"admin"},o=n.n(r)().oneOf(Object.values(i));const a=i},13025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,l:()=>o});var r=n(45697),i={SINGLE:"single",MULTI:"multi",MULTI_EXPLICIT:"multi_explicit",NONE:"none"},o=n.n(r)().oneOf(Object.keys(i).map((function(e){return i[e]})))},54680:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G});var r=n(74806),i=n(59713),o=n.n(i),a=n(319),c=n.n(a),l=n(64593),s=n(10535),u=n(6699),f=n(34206),d=n(88162),p=n(85893),b={error:"exclamation-circle",home:"house-blank"},y=function(e){return b[e]||e};const h=function(e){var t=e.type;return t&&"record"!==t?(0,p.jsx)(d.Z,{icon:y(t)}):null};var g,m,v,O,j,w,x=n(6479),E=n.n(x),P=n(28655),k=n.n(P),T=n(1024),S=n.n(T),C=n(38205),A=n(40493),D=n(69829),Z=n(88601),I=n(7281),N=["component"],L=C.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(g||(g=k()(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||Z.Z.color("backgroundBreadcrumbs")(e)}),I.Z.space(-.7),I.Z.space(.39)),R=(0,C.ZP)((function(e){var t=e.component,n=E()(e,N);return S().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(m||(m=k()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.color("secondaryLight"),Z.Z.color("primary")),M=C.ZP.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(v||(v=k()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.color("primary")),F=(0,C.ZP)(D.Fe).withConfig({displayName:"StyledBreadcrumbSeparator"})(O||(O=k()(["\n margin-left: ",";\n margin-right: ",";\n"])),I.Z.space(-2),I.Z.space(-2)),_=C.ZP.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(j||(j=k()(["\n "," {\n margin-right: ",";\n }\n"])),A.q,I.Z.space(-1));const q=function(){return w||(w=(0,p.jsx)(F,{breakWords:!0,children:(0,p.jsx)(d.Z,{icon:"chevron-right"})}))};var B;function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var H=function(e){return e.title||e.display},Y=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(H(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(H).join(" - ");break;default:r=H(n)}return r},z=function(e){var t,n=e.intl,r=e.pathPrefix,i=e.breadcrumbsInfo,o=void 0===i?[]:i,a=e.currentView,d=e.backgroundColor,b=e.onClick,y=e.linkComp,g=[].concat(c()(o),c()(a?[a]:[]));if(0===g.length)return null;var m,v=g.map((function(e,n){var i,o=e.display||"",a=n===g.length-1?M:R,c=n===g.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},d=y?t||(t=(0,p.jsx)(y,{})):B||(B=(0,p.jsx)(u.Z,{}));return(0,p.jsx)(f.ZP.Span,{children:(0,p.jsx)(_,{children:(0,p.jsxs)(a,W(W(W({neutral:!0},c),l),{},{onClick:(i=e,function(){b&&b(i)}),component:d,children:[(0,p.jsx)(h,{type:e.type}),(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:s.Z.sanitizeHtml(o)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,p.jsx)(q,{},"icon".concat(n)),t]}));return(0,p.jsxs)(L,{backgroundColor:d,children:[(0,p.jsx)(l.q,{defer:!1,children:(0,p.jsx)("title",{children:Y(g,(m="client.component.breadcrumbs.createTitle",n.formatMessage({id:m})))})}),(0,p.jsx)(p.Fragment,{children:v})]})};z.defaultProps={pathPrefix:""};const V=z,G=(0,r.ZP)(V)},99579:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Icon:()=>N,default:()=>L});var r=n(59713),i=n.n(r),o=n(45697),a=n.n(o),c=n(6479),l=n.n(c),s=n(23636),u=n(93024),f=n(65735),d=n(73582),p=n(67814),b=n(27361),y=n.n(b),h=n(40493),g=n(85893),m=["icon","style","hasFixedWidth"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}s.library.add(d.IJ7,f.IJ7,f.C65,f.kJo,f._tD,f.A35,f.mTx,f.ptq,f.g4A,f.r8p,f.Pk,f.g9M,f.Tab,d.Tab,f.NBC,f.eFW,f.acZ,f.u2A,f.gMD,f.cwv,f.w49,f.fUD,f.icc,f.ca9,f.Vmj,f.gSj,f.WFE,f.hQn,f.LEp,f.WV2,f.FU$,f.diR,d.diR,f.f8k,d.f8k,u.xYR,u.neY,u.AYu,u.kBj,u.hVS,u.dc_,u.Av$,f.xiG,f.gJF,f.j1w,f.WKO,f.wn1,f.b7W,f.YHc,f.ZC5,f.UO1,d.Fyj,f.Qj4,f.FL8,f.foy,f.u9C,f.Fuz,f.iV1,f.Kl4,f.nYk,f.sqG,f.RLE,f.$aW,f.Zrf,f.jMV,f.pL1,f.g6h,f.SJY,f.qmU,f.nek,f.Qy6,f.lH_,d.pL1,f.hVM,f.yOf,f.Xgz,f.Mzg,f.r6l,f.IwR,f.aJJ,d.Alc,f.dLO,f.ntl,f.Hw7,f.FYs,f.$36,f.fT7,f.ioP,f.Cw9,f.Ry6,f.C3l,f.a1i,f.jGC,f.IeV,f.A8,f.hG5,f.FVb,f.AxY,f.mAj,f.hGM,f.UkD,f.BDt,f.QzV,f.py1,f.cf$,f.byT,f.dT$,f.G_j,f.A4,f.ar8,f.nNP,f.yGT,f.ILF,f.rux,f.qbi);var j=function(e){var t=e.icon,n=e.style,r=e.hasFixedWidth,i=l()(e,m),o=t.includes(",")?t.replace(/\s+/,"").split(","):t,a=O({},y()(n,"color")&&{color:n.color}),c=Array.isArray(o)?o[1]:o;return(0,g.jsx)(h.q,{children:(0,g.jsx)(p.G,O(O(O({icon:o,style:n},a),{},{fixedWidth:r},i),{},{"data-testid":"icon-".concat(c)}))})};j.defaultProps={hasFixedWidth:!0};const w=j,x=JSON.parse('{"abacus":{"id":"fal, abacus","lib":"fa"},"address-card":{"id":"fal, address-card","lib":"fa"},"apple":{"id":"fab, apple","lib":"fa","tags":["sso"]},"arrow-left":{"id":"fal, arrow-left","lib":"fa","tags":["navigate"]},"arrow-right":{"id":"fal, arrow-right","lib":"fa","tags":["navigate"]},"arrow-to-bottom":{"id":"fal, arrow-to-bottom","lib":"fa","tags":["download"]},"arrow-to-top":{"id":"fal, arrow-to-top","lib":"fa","tags":["upload"]},"arrow-up-long":{"id":"fal, arrow-up-long","lib":"fa","tags":["arrow-up-long"]},"ballot-check":{"id":"fal, ballot-check","lib":"fa"},"barcode-alt":{"id":"fal, barcode-alt","lib":"fa"},"bars":{"id":"fal, bars","lib":"fa","tags":["burger"]},"bell":{"id":"fal, bell","lib":"fa","tags":["notification"]},"bolt":{"id":"fal, bolt-lightning","lib":"fa"},"bolt-lightning":{"id":"fal, bolt-lightning","lib":"fa"},"book":{"id":"fal, book","lib":"fa"},"box":{"id":"fal, box","lib":"fa"},"box-open":{"id":"fal, box-open","lib":"fa"},"calendar":{"id":"fal, calendar","lib":"fa"},"calendar-arrow-down":{"id":"fal, calendar-arrow-down","lib":"fa"},"calendar-circle-user":{"id":"fal, calendar-circle-user","lib":"fa"},"calendar-check":{"id":"fal, calendar-check","lib":"fa"},"calendar-minus":{"id":"fal, calendar-minus","lib":"fa"},"calendar-plus":{"id":"fal, calendar-plus","lib":"fa"},"chalkboard-teacher":{"id":"fal, chalkboard-teacher","lib":"fa"},"chart-network":{"id":"fal, chart-network","lib":"fa"},"check":{"id":"fal, check","lib":"fa","tags":["ok"]},"check-circle":{"id":"fal, check-circle","lib":"fa","tags":["check"]},"check-circle-full":{"id":"fas, check-circle","lib":"fa"},"chevron-double-down":{"id":"fal, chevron-double-down","lib":"fa"},"chevron-double-left":{"id":"fal, chevron-double-left","lib":"fa"},"chevron-double-right":{"id":"fal, chevron-double-right","lib":"fa"},"chevron-double-up":{"id":"fal, chevron-double-up","lib":"fa"},"chevron-down":{"id":"fal, chevron-down","lib":"fa"},"chevron-left":{"id":"fal, chevron-left","lib":"fa"},"chevron-right":{"id":"fal, chevron-right","lib":"fa"},"chevron-up":{"id":"fal, chevron-up","lib":"fa"},"circle":{"id":"fal, circle","lib":"fa","tags":["selection"]},"circle-full":{"id":"fas, circle","lib":"fa"},"circle-notch":{"id":"fa, circle-notch","lib":"fa"},"circle-notch-light":{"id":"fal, circle-notch","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"facebook":{"id":"fab, facebook","lib":"fa","tags":["sso"]},"facebook-f":{"id":"fab, facebook-f","lib":"fa","tags":["sso"]},"file":{"id":"fal, file","lib":"fa"},"file-alt":{"id":"fal, file-alt","lib":"fa"},"file-code":{"id":"fal, file-code","lib":"fa"},"file-csv":{"id":"fal, file-csv","lib":"fa"},"file-excel":{"id":"fal, file-excel","lib":"fa"},"file-export":{"id":"fal, file-export","lib":"fa"},"file-import":{"id":"fal, file-import","lib":"fa"},"file-pdf":{"id":"fal, file-pdf","lib":"fa"},"file-spreadsheet":{"id":"fal, file-spreadsheet","lib":"fa"},"filter":{"id":"fal, filter","lib":"fa"},"folder":{"id":"fal, folder","lib":"fa"},"folders":{"id":"fal, folders","lib":"fa","tags":["copy"]},"globe":{"id":"fal, globe","lib":"fa"},"google":{"id":"fab, google","lib":"fa","tags":["sso"]},"horizontal-rule":{"id":"fal, horizontal-rule","lib":"fa"},"id-badge":{"id":"fal, id-badge","lib":"fa"},"info":{"id":"fal, info","lib":"fa"},"laptop-code":{"id":"fal, laptop-code","lib":"fa"},"link":{"id":"fal, link","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"lock":{"id":"fal, lock","lib":"fa"},"info-circle":{"id":"fal, info-circle","lib":"fa","tags":["info"]},"mail-bulk":{"id":"fal, mail-bulk","lib":"fa"},"map-marked":{"id":"fal, map-marked","lib":"fa"},"merge":{"id":"fal, merge","lib":"fa"},"microsoft":{"id":"fab, microsoft","lib":"fa","tags":["sso"]},"minus":{"id":"fal, minus","lib":"fa"},"newspaper":{"id":"fal, newspaper","lib":"fa"},"office":{"id":"office","lib":"toc"},"paper-clip":{"id":"fa, paper-clip","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"phone":{"id":"fal, phone","lib":"fa"},"phone-laptop":{"id":"fal, phone-laptop","lib":"fa"},"plus":{"id":"fal, plus","lib":"fa","tags":["new"]},"question-circle":{"id":"fal, question-circle","lib":"fa","tags":["help"]},"save":{"id":"fal, save","lib":"fa"},"search":{"id":"fal, search","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"square":{"id":"fal, square","lib":"fa"},"square-full":{"id":"fas, square-full","lib":"fa"},"square-minus":{"id":"fal, square-minus","lib":"fa"},"square-plus":{"id":"fal, square-plus","lib":"fa"},"star":{"id":"fal, star","lib":"fa","tags":["favorite"]},"star-full":{"id":"fas, star","lib":"fa","tags":["favorite"]},"sync":{"id":"fal, sync","lib":"fa","tags":["refresh"]},"tasks":{"id":"fal, tasks","lib":"fa"},"times":{"id":"fal, times","lib":"fa","tags":["delete","close"]},"times-circle":{"id":"fal, times-circle","lib":"fa","tags":["error"]},"tocco":{"id":"logo","lib":"toc"},"trash":{"id":"fal, trash","lib":"fa","tags":["trash"]},"upload":{"id":"fal, upload","lib":"fa"},"users":{"id":"fal, users","lib":"fa"},"lightbulb-exclamation":{"id":"fal, lightbulb-exclamation","lib":"fa"},"house-blank":{"id":"fal, house-blank","lib":"fa"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"},"user":{"id":"fal, user","lib":"fa"},"suitcase":{"id":"fal, suitcase","lib":"fa"}}');var E,P;function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S={logo:function(e){return(0,g.jsx)("svg",T(T({height:y()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:E||(E=(0,g.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(e){return(0,g.jsx)("svg",T(T({height:y()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",enableBackground:"new 0 0 2075 2499.8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2075 2499.8",children:P||(P=(0,g.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},C=function(e){var t=e.icon,n=e.style;return S[t](n)};C.propTypes={icon:a().string.isRequired,style:a().object};const A=C;function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I={fa:function(e,t){return(0,g.jsx)(w,Z(Z({},t),{},{icon:e.id}))},toc:function(e,t){return(0,g.jsx)(A,Z(Z({},t),{},{icon:e.id}))}},N=function(e){var t=x[e.icon];if(!t)return null;var n=I[t.lib];return n?n(t,e):null};N.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const L=N},40493:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r,i=n(28655),o=n.n(i),a=n(38205).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=o()([""])))},71392:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var r={INLINE:"inline",NONE:"none"}},65378:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(45697),i=n.n(r),o=n(98773);const a={propTypes:i().shape({embedType:i().oneOf(o.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})}},13442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(59713),i=n.n(r);function o(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var i=1,o="";if("?"===e[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<e.length;)if("\\"!==e[c]){if(")"===e[c]){if(0==--i){c++;break}}else if("("===e[c]&&(i++,"?"!==e[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));o+=e[c++]}else o+=e[c++]+e[c++];if(i)throw new TypeError("Unbalanced pattern at ".concat(n));if(!o)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:o}),n=c}else{for(var a="",c=n+1;c<e.length;){var l=e.charCodeAt(c);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[c++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=c}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,o="[^".concat(a(t.delimiter||"/#?"),"]+?"),c=[],l=0,s=0,u="",f=function(e){if(s<n.length&&n[s].type===e)return n[s++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[s],i=r.type,o=r.index;throw new TypeError("Unexpected ".concat(i," at ").concat(o,", expected ").concat(e))},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};s<n.length;){var b=f("CHAR"),y=f("NAME"),h=f("PATTERN");if(y||h){var g=b||"";-1===i.indexOf(g)&&(u+=g,g=""),u&&(c.push(u),u=""),c.push({name:y||l++,prefix:g,suffix:"",pattern:h||o,modifier:f("MODIFIER")||""})}else{var m=b||f("ESCAPED_CHAR");if(m)u+=m;else if(u&&(c.push(u),u=""),f("OPEN")){g=p();var v=f("NAME")||"",O=f("PATTERN")||"",j=p();d("CLOSE"),c.push({name:v||(O?l++:""),pattern:v&&!O?o:O,prefix:g,suffix:j,modifier:f("MODIFIER")||""})}else d("END")}}return c}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function c(e){return e&&e.sensitive?"":"i"}function l(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,o=n.start,l=void 0===o||o,s=n.end,u=void 0===s||s,f=n.encode,d=void 0===f?function(e){return e}:f,p=n.delimiter,b=void 0===p?"/#?":p,y=n.endsWith,h="[".concat(a(void 0===y?"":y),"]|$"),g="[".concat(a(b),"]"),m=l?"^":"",v=0,O=e;v<O.length;v++){var j=O[v];if("string"==typeof j)m+=a(d(j));else{var w=a(d(j.prefix)),x=a(d(j.suffix));if(j.pattern)if(t&&t.push(j),w||x)if("+"===j.modifier||"*"===j.modifier){var E="*"===j.modifier?"?":"";m+="(?:".concat(w,"((?:").concat(j.pattern,")(?:").concat(x).concat(w,"(?:").concat(j.pattern,"))*)").concat(x,")").concat(E)}else m+="(?:".concat(w,"(").concat(j.pattern,")").concat(x,")").concat(j.modifier);else"+"===j.modifier||"*"===j.modifier?m+="((?:".concat(j.pattern,")").concat(j.modifier,")"):m+="(".concat(j.pattern,")").concat(j.modifier);else m+="(?:".concat(w).concat(x,")").concat(j.modifier)}}if(u)i||(m+="".concat(g,"?")),m+=n.endsWith?"(?=".concat(h,")"):"$";else{var P=e[e.length-1],k="string"==typeof P?g.indexOf(P[P.length-1])>-1:void 0===P;i||(m+="(?:".concat(g,"(?=").concat(h,"))?")),k||(m+="(?=".concat(g,"|").concat(h,")"))}return new RegExp(m,c(n))}(o(e,n),t,n)}function s(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=n.exec(e.source);i;)t.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return s(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),c(n))}(e,t,n):l(e,t,n)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=n(81770),p=n(24688),b=n(63038),y=n.n(b),h=n(1024),g=n.n(h),m=n(85893);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){return function(t){var n=(0,h.useState)(null),r=y()(n,2),o=r[0],a=r[1],c=(0,h.useRef)(!0);return(0,h.useEffect)((function(){return e().then((function(e){return c.current?a((function(){return e})):null})),function(){c.current=!1}}),[]),null!==o?(0,m.jsx)(o,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)):null}}var j=n(44759);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E={},P=n(56746),k=function(e){return function(t){if(e.component)return(0,m.jsx)(e.component,{router:t,routes:e.routes});if(e.render){var n={router:t,routes:e.routes};return e.render(n)}}};const T=function(e){return(0,m.jsx)(P.AW,{path:e.path,exact:e.exact,render:k(e)})};function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const C=function(e){var t=e.history,n=e.routes;return(0,m.jsx)(P.F0,{history:t,children:(0,m.jsx)(g().Fragment,{children:n.map((function(e,t){return(0,m.jsx)(T,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),t)}))})})},A={loadRoute:function(e,t,n,r){return function(i){if(r&&E[r]){var o=E[r];return(0,m.jsx)(o,x({},i))}var a=O((function(){return new Promise((function(r){n().then((function(n){var i=n.default;i.reducers&&d.Z.injectReducers(e,i.reducers),i.sagas&&i.sagas.forEach((function(t){p.Z.injectSaga(e,t)})),i.inputDispatches&&i.inputDispatches.forEach((function(n){!function(e,t,n){var r=n.key,i=n.actionCreator,o=n.mandatory,a=void 0!==o&&o,c=n.defaultValue,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.Z.logError;if(Object.prototype.hasOwnProperty.call(t,r)||c){var s=i(t[r]||c);e.dispatch(s)}else!0===a&&l("EntityBrowser: Mandatory field '".concat(r,"' not set in input"))}(e,t,n)})),r(i.container)}))}))}));return r&&(E[r]=a),(0,m.jsx)(a,x({},i))}},Router:C,RouteWithSubRoutes:T,extractParamsFromPath:function(e,t){var n=[],r=s(e,n).exec(t);return null!==r?n.reduce((function(e,t,n){return f(f({},e),{},i()({},t.name,r[n+1]))}),{}):null}}},29441:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(59713),i=n.n(r),o=n(27361),a=n.n(o);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={};const u={persistViewInfo:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;s=l(l({},s),{},i()({},e,{level:n,info:l(l({},a()(s,[e,"info"],{})),t)}))},viewInfoSelector:function(e){return a()(s,[e,"info"],{})},clearPersistedViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s=l({},Object.keys(s).reduce((function(t,n){var r=s[n];return l(l({},t),r.level<e&&i()({},n,r))}),{}))}}},41143:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,c){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,i,o,a,c],u=0;(l=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},64593:(e,t,n)=>{"use strict";n.d(t,{q:()=>he});var r,i,o,a,c=n(89324),l=n.n(c),s=n(83524),u=n.n(s),f=n(69590),d=n.n(f),p=n(1024),b=n.n(p),y=n(27418),h=n.n(y),g="bodyAttributes",m="htmlAttributes",v="titleAttributes",O={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},j=(Object.keys(O).map((function(e){return O[e]})),"charset"),w="cssText",x="href",E="http-equiv",P="innerHTML",k="itemprop",T="name",S="property",C="rel",A="src",D="target",Z={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",N="defer",L="encodeSpecialCharacters",R="onChangeClientState",M="titleTemplate",F=Object.keys(Z).reduce((function(e,t){return e[Z[t]]=t,e}),{}),_=[O.NOSCRIPT,O.SCRIPT,O.STYLE],q="data-react-helmet",B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},W=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},V=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},G=function(e){var t=X(e,O.TITLE),n=X(e,M);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=X(e,I);return t||r||void 0},K=function(e){return X(e,R)||function(){}},$=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return H({},e,t)}),{})},J=function(e,t){return t.filter((function(e){return void 0!==e[O.BASE]})).map((function(e){return e[O.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},Q=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&ie("Helmet: "+e+' should be of type "Array". Instead found type "'+B(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var c=o[a],l=c.toLowerCase();-1===t.indexOf(l)||n===C&&"canonical"===e[n].toLowerCase()||l===C&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(c)||c!==P&&c!==w&&c!==k||(n=c)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][s]&&(i[n][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var c=o[a],l=h()({},r[c],i[c]);r[c]=l}return e}),[]).reverse()},X=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},ne="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:n.g.requestAnimationFrame||ee,re="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:n.g.cancelAnimationFrame||te,ie=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},oe=null,ae=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,c=e.noscriptTags,l=e.onChangeClientState,s=e.scriptTags,u=e.styleTags,f=e.title,d=e.titleAttributes;se(O.BODY,r),se(O.HTML,i),le(f,d);var p={baseTag:ue(O.BASE,n),linkTags:ue(O.LINK,o),metaTags:ue(O.META,a),noscriptTags:ue(O.NOSCRIPT,c),scriptTags:ue(O.SCRIPT,s),styleTags:ue(O.STYLE,u)},b={},y={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(b[e]=n),r.length&&(y[e]=p[e].oldTags)})),t&&t(),l(e,b,y)},ce=function(e){return Array.isArray(e)?e.join(""):e},le=function(e,t){void 0!==e&&document.title!==e&&(document.title=ce(e)),se(O.TITLE,t)},se=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(q),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),c=0;c<a.length;c++){var l=a[c],s=t[l]||"";n.getAttribute(l)!==s&&n.setAttribute(l,s),-1===i.indexOf(l)&&i.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var f=o.length-1;f>=0;f--)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute(q):n.getAttribute(q)!==a.join(",")&&n.setAttribute(q,a.join(","))}},ue=function(e,t){var n=document.head||document.querySelector(O.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===P)n.innerHTML=t.innerHTML;else if(r===w)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(q,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},fe=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Z[n]||n]=e[n],t}),t)},pe=function(e,t,n){switch(e){case O.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[q]=!0,i=de(n,r),[b().createElement(O.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=fe(n),o=ce(t);return i?"<"+e+' data-react-helmet="true" '+i+">"+V(o,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+V(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case g:case m:return{toComponent:function(){return de(t)},toString:function(){return fe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})[q]=!0,r);return Object.keys(t).forEach((function(e){var n=Z[e]||e;if(n===P||n===w){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),b().createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===P||e===w)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+V(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===_.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},be=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,c=e.noscriptTags,l=e.scriptTags,s=e.styleTags,u=e.title,f=void 0===u?"":u,d=e.titleAttributes;return{base:pe(O.BASE,t,r),bodyAttributes:pe(g,n,r),htmlAttributes:pe(m,i,r),link:pe(O.LINK,o,r),meta:pe(O.META,a,r),noscript:pe(O.NOSCRIPT,c,r),script:pe(O.SCRIPT,l,r),style:pe(O.STYLE,s,r),title:pe(O.TITLE,{title:f,titleAttributes:d},r)}},ye=u()((function(e){return{baseTag:J([x,D],e),bodyAttributes:$(g,e),defer:X(e,N),encode:X(e,L),htmlAttributes:$(m,e),linkTags:Q(O.LINK,[C,x],e),metaTags:Q(O.META,[T,j,E,S,k],e),noscriptTags:Q(O.NOSCRIPT,[P],e),onChangeClientState:K(e),scriptTags:Q(O.SCRIPT,[A,P],e),styleTags:Q(O.STYLE,[w],e),title:G(e),titleAttributes:$(v,e)}}),(function(e){oe&&re(oe),e.defer?oe=ne((function(){ae(e,(function(){oe=null}))})):(ae(e),oe=null)}),be)((function(){return null})),he=(i=ye,a=o=function(e){function t(){return U(this,t),z(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!d()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case O.SCRIPT:case O.NOSCRIPT:return{innerHTML:t};case O.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return H({},r,((t={})[n.type]=[].concat(r[n.type]||[],[H({},i,this.mapNestedChildrenToProps(n,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case O.TITLE:return H({},i,((t={})[r.type]=a,t.titleAttributes=H({},o),t));case O.BODY:return H({},i,{bodyAttributes:H({},o)});case O.HTML:return H({},i,{htmlAttributes:H({},o)})}return H({},i,((n={})[r.type]=H({},o),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=H({},t);return Object.keys(e).forEach((function(t){var r;n=H({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return b().Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[F[n]||n]=e[n],t}),t)}(Y(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case O.LINK:case O.META:case O.NOSCRIPT:case O.SCRIPT:case O.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=Y(e,["children"]),r=H({},n);return t&&(r=this.mapChildrenToProps(t,r)),b().createElement(i,r)},W(t,null,[{key:"canUseDOM",set:function(e){i.canUseDOM=e}}]),t}(b().Component),o.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=i.peek,o.rewind=function(){var e=i.rewind();return e||(e=be({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);he.renderStatic=he.rewind},17579:(e,t,n)=>{"use strict";var r=n(80070);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},89324:(e,t,n)=>{e.exports=n(17579)()},80070:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83524:(e,t,n)=>{"use strict";var r,i=n(1024),o=(r=i)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var l,s=[];function u(){l=e(s.map((function(e){return e.props}))),f.canUseDOM?t(l):n&&(l=n(l))}var f=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return l},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,s=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),u()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",c),f}}},14149:(e,t,n)=>{"use strict";function r(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}n.r(t),n.d(t,{default:()=>o});const o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&r(e),c=t&&r(t),l=a||c;if(e&&r(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var s=void 0;if(o.length){var u=o[o.length-1];s="."===u||".."===u||""===u}else s=!1;for(var f=0,d=o.length;d>=0;d--){var p=o[d];"."===p?i(o,d):".."===p?(i(o,d),f++):f&&(i(o,d),f--)}if(!l)for(;f--;f)o.unshift("..");!l||""===o[0]||o[0]&&r(o[0])||o.unshift("");var b=o.join("/");return s&&"/"!==b.substr(-1)&&(b+="/"),b}},54545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const i=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));var i=void 0===t?"undefined":r(t);if(i!==(void 0===n?"undefined":r(n)))return!1;if("object"===i){var o=t.valueOf(),a=n.valueOf();if(o!==t||a!==n)return e(o,a);var c=Object.keys(t),l=Object.keys(n);return c.length===l.length&&c.every((function(r){return e(t[r],n[r])}))}return!1}},30670:e=>{"use strict";e.exports=function(){}}}]);
|
|
1
|
+
(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[614],{8156:(e,t,n)=>{"use strict";n.d(t,{Z:()=>bt});var r,i=n(45697),o=n.n(i),a=n(50600),c=n(68803),l=n(19241),s=n(30604),u=n(73665),f=n(74806),d=n(50558),p="root/LOAD_DIALOG_INFO",b="delete/SET_DELETE_DIALOG_INFO",y="delete/DO_DELETE",h="delete/SET_DELETING_IN_PROGRESS",g="delete/ON_CANCEL",m="delete/SET_ENTITIES_TO_DELETE",v=function(e){return{type:b,payload:{dialogInfo:e}}},O=function(){return{type:y}},j=function(e){return{type:m,payload:{entitiesToDelete:e}}},w=n(1024),x=n.n(w),E=n(50258),P=n(44012),k=n(93235),T=n(34206),S=n(319),C=n.n(S),A=n(63038),D=n.n(A),Z=n(28655),I=n.n(Z),N=n(38205),L=n(76791),R=n(85893);const M=function(e){var t=e.relatedEntity,n=e.children,i=e.maxCountLink;if(t.keys.length<i&&0===t.keysOtherBu.length)return n;var o=(0,R.jsxs)(R.Fragment,{children:[t.keys.length>i&&(r||(r=(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.tooManyRecords"})}))),t.keysOtherBu.length>0&&(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.recordInOtherBU",values:{count:t.keysOtherBu.length}})})]});return(0,R.jsx)(L.Z,{content:o,placement:"top",children:n})};var F,_,q=N.ZP.span.withConfig({displayName:"NonBreakingText"})(F||(F=I()(["\n white-space: nowrap;\n"])));const B=function(e){var t=e.rootEntities,n=e.relatedEntities,r=e.maxCountLink,i=e.navigationStrategy;return(0,R.jsxs)(T.ZP.Span,{children:[(0,R.jsx)(T.ZP.B,{children:Object.entries(t).map((function(e){var t=D()(e,2),n=t[0],r=t[1];return(0,R.jsxs)("span",{children:[r.entityLabel," (",r.keys.length>0&&i.ListLink?(0,R.jsx)(i.ListLink,{entityName:n,entityKeys:r.keys,children:r.keys.length}):(0,R.jsx)(T.ZP.Span,{children:r.keys.length}),")"]},"root-entity-".concat(n))})).reduce((function(e,t){return[e,", ",t]}))}),Object.keys(n).length>0&&(0,R.jsxs)(R.Fragment,{children:[_||(_=(0,R.jsx)("span",{children:" / "})),Object.keys(n).map((function(e){var t=n[e],o=[].concat(C()(t.keys),C()(t.keysOtherBu)).length,a=t.keys.length>0&&i.ListLink?(0,R.jsx)(i.ListLink,{entityName:e,entityKeys:t.keys.slice(0,r),children:o}):(0,R.jsx)(T.ZP.Span,{children:o}),c=(0,R.jsx)(M,{relatedEntity:t,maxCountLink:r,children:a});return(0,R.jsx)(x().Fragment,{children:(0,R.jsxs)(q,{children:[t.entityLabel," (",c,")"]})},"entity-info-"+e)})).reduce((function(e,t){return[e,", ",t]}))]})]})};var U,W,H,Y=n(7281),z=N.ZP.div.withConfig({displayName:"StyledIconWrapper"})(U||(U=I()(["\n margin-bottom: ",";\n"])),Y.Z.space(.2));const V=function(e){var t=e.dialogInfo,n=e.navigationStrategy;return(0,R.jsxs)(R.Fragment,{children:[W||(W=(0,R.jsx)(z,{children:(0,R.jsx)(k.Z,{size:"30px"})})),H||(H=(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.deleteInProgress"})})),(0,R.jsx)(B,{rootEntities:t.rootEntitiesDeletable,relatedEntities:t.relatedDeletable,maxCountLink:100,navigationStrategy:n},"infopart-deletable")]})};var G={doDelete:O};const K=(0,d.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),G)((0,f.ZP)(V));var $,J,Q=n(83324),X=n(78958),ee=n(59713),te=n.n(ee),ne=n(27361),re=n.n(ne),ie=n(24875),oe=n(58664),ae=[X.Z.condition.BASE,X.Z.condition.DANGER,X.Z.condition.SUCCESS,X.Z.condition.WARNING],ce=($={},te()($,X.Z.condition.DANGER,ie.FS.color("signal.danger")),te()($,X.Z.condition.SUCCESS,ie.FS.color("signal.success")),te()($,X.Z.condition.WARNING,ie.FS.color("signal.warning")),te()($,X.Z.condition.BASE,(function(e){return(0,oe.HO)(re()(e.theme,"colors.paper"),1)})),$),le=N.ZP.div.withConfig({displayName:"StyledSignalBox"})(J||(J=I()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n border-radius: ",";\n ","\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return ce[e.condition]||(0,oe.HO)(re()(e.theme,"colors.paper"),1)}(e)}),Y.Z.space(-1),Y.Z.space(-1),ie.FS.radii("radii.regular"),(function(e){var t=e.condition,n=e.theme;return"base"!==t&&"\n * {\n color: ".concat(n.colors.paper,";\n }\n ")}));le.propTypes={condition:X.Z.oneOfPropTypeAndCompletelyMapped(ae,ce)};var se=function(e){var t=e.condition,n=e.title,r=e.children,i=e.meta;return(0,R.jsxs)(le,{condition:t,children:[n&&(0,R.jsx)(T.ZP.H5,{children:n}),x().Children.map(r,(function(e){return x().cloneElement(e)})),i&&(0,R.jsx)(T.ZP.Small,{children:i})]})};se.defaultProps={condition:X.Z.condition.BASE};const ue=se;var fe,de,pe,be,ye,he,ge,me=n(65035),ve=n(36589),Oe=N.ZP.div.withConfig({displayName:"StyledSectionWrapper"})(fe||(fe=I()(["\n padding-top: ",";\n"])),Y.Z.space(.6)),je=N.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(de||(de=I()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),ve.Z);const we=function(e){var t=e.dialogInfo,n=t.rootEntitiesDeletable,r=t.rootEntitiesNotDeletable,i=t.relatedDeletable,o=t.relatedNotDeletable,a=t.hasUnreadableEntities,c=e.doDelete,l=e.onCancel,s=e.navigationStrategy;return(0,Q.z)(l),(0,R.jsxs)(R.Fragment,{children:[pe||(pe=(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.confirmText"})})),(0,R.jsx)(B,{rootEntities:n,relatedEntities:i,maxCountLink:100,navigationStrategy:s},"infopart-deletable"),Object.keys(r).length>0&&(0,R.jsxs)(Oe,{children:[be||(be=(0,R.jsx)(T.ZP.P,{children:(0,R.jsx)(P.Z,{id:"client.delete.textNotDeletable"})})),(0,R.jsx)(B,{rootEntities:r,relatedEntities:o,maxCountLink:100,navigationStrategy:s},"infopart-notdeletable")]}),a&&(ye||(ye=(0,R.jsx)(Oe,{children:(0,R.jsx)(ue,{condition:"warning",children:(0,R.jsx)(T.ZP.Span,{children:(0,R.jsx)(P.Z,{id:"client.delete.unreadableEntities"})})})}))),(0,R.jsx)(Oe,{children:(0,R.jsxs)(je,{children:[(0,R.jsx)(me.Z,{onClick:c,disabled:Object.keys(n).every((function(e){return 0===n[e].keys.length})),children:he||(he=(0,R.jsx)(P.Z,{id:"client.delete.deleteButton"}))}),(0,R.jsx)(me.Z,{ink:"primary",look:"raised",onClick:l,children:ge||(ge=(0,R.jsx)(P.Z,{id:"client.delete.cancelButton"}))})]})})]})};var xe={doDelete:O,onCancel:function(){return{type:g}}};const Ee=(0,d.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),xe)((0,f.ZP)(we));var Pe,ke;const Te=function(e){var t=e.loadDialogInfo,n=e.dialogInfo,r=e.deletingInProgress,i=e.intl;(0,w.useEffect)((function(){t()}),[t]);var o;return r?Pe||(Pe=(0,R.jsx)(K,{})):(0,R.jsx)(E.Z,{required:[n],loadingText:(o="client.delete.loadingText",i.formatMessage({id:o})),children:n&&(ke||(ke=(0,R.jsx)(Ee,{})))})};var Se={loadDialogInfo:function(){return{type:p}}};const Ce=(0,d.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,deletingInProgress:e.del.deletingInProgress}}),Se)((0,f.ZP)(Te));var Ae,De=n(81770),Ze=(Ae={},te()(Ae,b,De.Z.singleTransferReducer("dialogInfo")),te()(Ae,m,De.Z.singleTransferReducer("entitiesToDelete")),te()(Ae,h,De.Z.singleTransferReducer("deletingInProgress")),Ae),Ie={dialogInfo:null,entitiesToDelete:null,deletingInProgress:!1};var Ne=n(87757),Le=n.n(Ne),Re=n(34857),Me=n(81719);function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){te()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qe="DELETABLE",Be=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.rootEntity,i=r.entityName,o=r.entityLabel,a=r.key;if(a.includes("/")){var c=a.split("/"),l=D()(c,2),s=l[0],u=l[1];return _e(_e({},e),{},te()({},s,{entityLabel:o,keys:[].concat(C()(re()(e,[s,"keys"],[])),C()(n?[u]:[]))}))}return _e(_e({},e),{},te()({},i,{entityLabel:o,keys:[].concat(C()(re()(e,[i,"keys"],[])),C()(n?[a]:[]))}))},Ue=function(e){return e.rootEntity.deleteStatus===qe&&!e.affectedEntities.find((function(e){return e.deleteStatus!==qe}))},We=function(e,t){var n=e.entitiesToDelete;return n.reduce((function(e,n){var r=Ue(n),i=r?"relatedDeletable":"relatedNotDeletable";return _e(_e(_e({},e),{},{rootEntitiesDeletable:Be(e.rootEntitiesDeletable,n,r)},!r&&{rootEntitiesNotDeletable:Be(e.rootEntitiesNotDeletable,n)}),{},te()({},i,function(e,t,n,r){return _e({},t.affectedEntities.reduce((function(e,t){return _e(_e({},e),n||t.deleteStatus!==qe?te()({},t.entityName,_e(_e({},re()(e,t.entityName,{keys:[],keysOtherBu:[],entityLabel:t.entityLabel})),null===t.businessUnitId||t.businessUnitId===r?{keys:Array.from(new Set([].concat(C()(re()(e,[t.entityName,"keys"],[])),[t.key])))}:{keysOtherBu:Array.from(new Set([].concat(C()(re()(e,[t.entityName,"keysOtherBu"],[])),[t.key])))})):{})}),_e({},e)))}(e[i],n,r,t)))}),{rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!!n.find((function(e){return e.unreadableEntities}))})},He=function(e){var t=e.entitiesToDelete;return{entityName:re()(t,"[0].rootEntity.entityName"),keys:t.reduce((function(e,t){return[].concat(C()(e),C()(Ue(t)?[t.rootEntity.key]:[]))}),[])}},Ye=o().shape({entityLabel:o().string,keys:o().arrayOf(o().string),keysOtherBu:o().arrayOf(o().string)}),ze=(o().shape({rootEntitiesDeletable:o().objectOf(Ye).isRequired,rootEntitiesNotDeletable:o().objectOf(Ye).isRequired,relatedDeletable:o().objectOf(Ye).isRequired,relatedNotDeletable:o().objectOf(Ye).isRequired,hasUnreadableEntities:o().bool}),Le().mark(tt)),Ve=Le().mark(nt),Ge=Le().mark(rt),Ke=Le().mark(it),$e=Le().mark(ot),Je=Le().mark(at),Qe=function(e){return e.input},Xe=function(e){return e.intl.messages},et=function(e){return e.del.entitiesToDelete};function tt(){var e,t,n;return Le().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Re.Ys)(Qe);case 2:return e=r.sent,t=e.selection,r.next=6,(0,Re.RE)(u.Z.getEntities,t,Me.Z.fetchEntities);case 6:return n=r.sent,r.abrupt("return",{entityModel:n.entityName,keys:n.keys});case 8:case"end":return r.stop()}}),ze)}function nt(){var e,t;return Le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Re.Ys)(Qe);case 2:return e=n.sent,t=e.customDeleteEndpoint,n.abrupt("return",t||"client/delete");case 5:case"end":return n.stop()}}),Ve)}function rt(){var e,t,n,r,i,o,a,c;return Le().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,Re.RE)(tt);case 2:return e=l.sent,l.next=5,(0,Re.RE)(nt);case 5:return t=l.sent,l.next=8,(0,Re.$6)([(0,Re.RE)(Me.Z.requestSaga,"".concat(t,"/dialog"),{method:"POST",body:e}),(0,Re.RE)(Me.Z.fetchPrincipal)]);case 8:return n=l.sent,r=D()(n,2),i=r[0],o=r[1],l.next=14,(0,Re.RE)(We,i.body,o.currentBusinessUnit.id);case 14:return a=l.sent,l.next=17,(0,Re.gz)(v(a));case 17:return l.next=19,(0,Re.RE)(He,i.body);case 19:return c=l.sent,l.next=22,(0,Re.gz)(j(c));case 22:case"end":return l.stop()}}),Ge)}function it(){var e,t,n,r,i,o,a;return Le().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,Re.Ys)(et);case 2:return e=c.sent,c.next=5,(0,Re.gz)({type:h,payload:{deletingInProgress:!0}});case 5:return c.next=7,(0,Re.RE)(nt);case 7:return t=c.sent,c.next=10,(0,Re.RE)(Me.Z.requestSaga,t,{method:"POST",body:{entityModel:e.entityName,keys:e.keys},acceptedStatusCodes:[409]});case 10:return n=c.sent,c.next=13,(0,Re.Ys)(Xe);case 13:if(r=c.sent,!n.ok){c.next=22;break}return i=n.body,o=Object.keys(i.deletedEntities).reduce((function(e,t){return[].concat(C()(e),C()(i.deletedEntities[t].map((function(e){return{entityName:t,key:e}}))))}),[]),a=[{type:"entity-delete-event",payload:{entities:o}}],c.next=20,(0,Re.gz)(l.Z.fireExternalEvent("onSuccess",{message:r["client.delete.successfullyMessage"],remoteEvents:a}));case 20:case 25:c.next=29;break;case 22:if(409!==n.status||!n.body.information){c.next=27;break}return c.next=25,(0,Re.gz)(l.Z.fireExternalEvent("onError",{message:n.body.information}));case 27:return c.next=29,(0,Re.gz)(l.Z.fireExternalEvent("onError",{message:r["client.delete.errorMessage"]}));case 29:case"end":return c.stop()}}),Ke)}function ot(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Re.gz)(l.Z.fireExternalEvent("onCancel"));case 2:case"end":return e.stop()}}),$e)}function at(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Re.$6)([(0,Re.Fm)(p,rt),(0,Re.Fm)(y,it),(0,Re.Fm)(g,ot)]);case 2:case"end":return e.stop()}}),Je)}const ct={del:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ie,t=arguments.length>1?arguments[1]:void 0,n=Ze[t.type];return n?n(e,t):e}};var lt,st=[at],ut="delete",ft=["onSuccess","onCancel","onError","emitAction"],dt=function(e,t,n,r){var i=lt||(lt=(0,R.jsx)(Ce,{})),o=c.Z.createStore(ct,st,t,ut);a.Z.addToStore(o,(function(e){return e.input.emitAction}));var u=!n.emitAction;return s.Z.addToStore(o,u),l.Z.addToStore(o,(function(e){return c.Z.getEvents(ft,e.input)})),c.Z.createApp(ut,i,o,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",ut]})};c.Z.registerAppInRegistry(ut,dt);var pt=function(e){return c.Z.useApp({initApp:dt,props:e,packageName:ut,externalEvents:ft}).component};pt.propTypes={selection:u.Z.propType.isRequired,customDeleteEndpoint:o().string};const bt=pt;c.Z.createBundleableApp(ut,dt,pt)},73665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(45697),i=n.n(r);const o={ID:"ID",QUERY:"QUERY"},a=i().shape({entityName:i().string.isRequired,ids:function(e,t,n){if(e.selection&&e.selection.type===o.ID&&!e.selection[t])return new Error("Selection.ids prop not defined. Component: ".concat(n,"'."))},query:function(e,t,n){if(e.selection&&e.selection.type===o.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:i().oneOf(Object.keys(o)).isRequired,count:i().number});var c=n(59713),l=n.n(c),s=n(87757),u=n.n(s),f=n(34857),d=n(44759),p=u().mark(g);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=1e5;function g(e,t){var n,r;return u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(n=e.entityName,e.type!==o.QUERY){i.next=9;break}return i.next=4,(0,f.RE)(t,e.entityName,y(y({},e.query),{},{limit:h}));case 4:if(!((r=i.sent).length>h)){i.next=8;break}return i.next=8,(0,f.RE)(d.Z.logError,"Selected records exceed limit of ".concat(h));case 8:return i.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 9:return i.abrupt("return",{entityName:n,keys:e.ids});case 10:case"end":return i.stop()}}),p)}const m={getEntities:g,getSingleKey:function(e,t){if(e.entityName!==t)throw new Error("Only selection of ".concat(t," supported"));if("ID"!==e.type)throw new Error("Only ID selection type supported");if(!e.ids||1!==e.ids.length)throw new Error("Exactly one ".concat(t," must be selected"));return e.ids[0]},propType:a,selectionTypes:o}},81749:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,b:()=>o});var r=n(45697),i={NONE:"none",FULLTEXT:"fulltext",SIMPLE:"simple",SIMPLE_ADVANCED:"simple_advanced",ADVANCED:"advanced",ADMIN:"admin"},o=n.n(r)().oneOf(Object.values(i));const a=i},13025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,l:()=>o});var r=n(45697),i={SINGLE:"single",MULTI:"multi",MULTI_EXPLICIT:"multi_explicit",NONE:"none"},o=n.n(r)().oneOf(Object.keys(i).map((function(e){return i[e]})))},54680:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G});var r=n(74806),i=n(59713),o=n.n(i),a=n(319),c=n.n(a),l=n(64593),s=n(10535),u=n(6699),f=n(34206),d=n(88162),p=n(85893),b={error:"exclamation-circle",home:"house-blank"},y=function(e){return b[e]||e};const h=function(e){var t=e.type;return t&&"record"!==t?(0,p.jsx)(d.Z,{icon:y(t)}):null};var g,m,v,O,j,w,x=n(6479),E=n.n(x),P=n(28655),k=n.n(P),T=n(1024),S=n.n(T),C=n(38205),A=n(40493),D=n(69829),Z=n(88601),I=n(7281),N=["component"],L=C.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(g||(g=k()(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||Z.Z.color("backgroundBreadcrumbs")(e)}),I.Z.space(-.7),I.Z.space(.39)),R=(0,C.ZP)((function(e){var t=e.component,n=E()(e,N);return S().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(m||(m=k()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.color("secondaryLight"),Z.Z.color("primary")),M=C.ZP.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(v||(v=k()(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.fontWeight("bold"),(function(e){return e.active&&Z.Z.color("primary")}),Z.Z.color("primary")),F=(0,C.ZP)(D.Fe).withConfig({displayName:"StyledBreadcrumbSeparator"})(O||(O=k()(["\n margin-left: ",";\n margin-right: ",";\n"])),I.Z.space(-2),I.Z.space(-2)),_=C.ZP.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(j||(j=k()(["\n "," {\n margin-right: ",";\n }\n"])),A.q,I.Z.space(-1));const q=function(){return w||(w=(0,p.jsx)(F,{breakWords:!0,children:(0,p.jsx)(d.Z,{icon:"chevron-right"})}))};var B;function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var H=function(e){return e.title||e.display},Y=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(H(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(H).join(" - ");break;default:r=H(n)}return r},z=function(e){var t,n=e.intl,r=e.pathPrefix,i=e.breadcrumbsInfo,o=void 0===i?[]:i,a=e.currentView,d=e.backgroundColor,b=e.onClick,y=e.linkComp,g=[].concat(c()(o),c()(a?[a]:[]));if(0===g.length)return null;var m,v=g.map((function(e,n){var i,o=e.display||"",a=n===g.length-1?M:R,c=n===g.length-1&&{active:"true"},l=void 0!==e.path?{to:"".concat(r,"/").concat(e.path)}:{},d=y?t||(t=(0,p.jsx)(y,{})):B||(B=(0,p.jsx)(u.Z,{}));return(0,p.jsx)(f.ZP.Span,{children:(0,p.jsx)(_,{children:(0,p.jsxs)(a,W(W(W({neutral:!0},c),l),{},{onClick:(i=e,function(){b&&b(i)}),component:d,children:[(0,p.jsx)(h,{type:e.type}),(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:s.Z.sanitizeHtml(o)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,p.jsx)(q,{},"icon".concat(n)),t]}));return(0,p.jsxs)(L,{backgroundColor:d,children:[(0,p.jsx)(l.q,{defer:!1,children:(0,p.jsx)("title",{children:Y(g,(m="client.component.breadcrumbs.createTitle",n.formatMessage({id:m})))})}),(0,p.jsx)(p.Fragment,{children:v})]})};z.defaultProps={pathPrefix:""};const V=z,G=(0,r.ZP)(V)},99579:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Icon:()=>N,default:()=>L});var r=n(59713),i=n.n(r),o=n(45697),a=n.n(o),c=n(6479),l=n.n(c),s=n(23636),u=n(93024),f=n(65735),d=n(73582),p=n(67814),b=n(27361),y=n.n(b),h=n(40493),g=n(85893),m=["icon","style","hasFixedWidth"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}s.library.add(d.IJ7,f.IJ7,f.C65,f.kJo,f._tD,f.A35,f.mTx,f.ptq,f.g4A,f.r8p,f.Pk,f.g9M,f.Tab,d.Tab,f.NBC,f.eFW,f.acZ,f.u2A,f.gMD,f.cwv,f.w49,f.fUD,f.icc,f.ca9,f.Vmj,f.gSj,f.WFE,f.hQn,f.LEp,f.WV2,f.FU$,f.diR,d.diR,f.f8k,d.f8k,u.xYR,u.neY,u.AYu,u.kBj,u.hVS,u.dc_,u.Av$,f.xiG,f.gJF,f.j1w,f.WKO,f.wn1,f.b7W,f.YHc,f.ZC5,f.UO1,d.Fyj,f.Qj4,f.FL8,f.foy,f.u9C,f.Fuz,f.iV1,f.Kl4,f.nYk,f.sqG,f.RLE,f.XAH,f.Zrf,f.jMV,f.pL1,f.g6h,f.SJY,f.qmU,f.nek,f.Qy6,f.lH_,d.pL1,f.hVM,f.yOf,f.Xgz,f.Mzg,f.r6l,f.IwR,f.aJJ,d.Alc,f.dLO,f.ntl,f.Hw7,f.FYs,f.$36,f.fT7,f.ioP,f.Cw9,f.Ry6,f.C3l,f.a1i,f.jGC,f.IeV,f.A8,f.hG5,f.FVb,f.AxY,f.mAj,f.hGM,f.UkD,f.BDt,f.QzV,f.py1,f.cf$,f.byT,f.dT$,f.G_j,f.A4,f.ar8,f.nNP,f.yGT,f.ILF,f.rux,f.qbi);var j=function(e){var t=e.icon,n=e.style,r=e.hasFixedWidth,i=l()(e,m),o=t.includes(",")?t.replace(/\s+/,"").split(","):t,a=O({},y()(n,"color")&&{color:n.color}),c=Array.isArray(o)?o[1]:o;return(0,g.jsx)(h.q,{children:(0,g.jsx)(p.G,O(O(O({icon:o,style:n},a),{},{fixedWidth:r},i),{},{"data-testid":"icon-".concat(c)}))})};j.defaultProps={hasFixedWidth:!0};const w=j,x=JSON.parse('{"abacus":{"id":"fal, abacus","lib":"fa"},"address-card":{"id":"fal, address-card","lib":"fa"},"apple":{"id":"fab, apple","lib":"fa","tags":["sso"]},"arrow-left":{"id":"fal, arrow-left","lib":"fa","tags":["navigate"]},"arrow-right":{"id":"fal, arrow-right","lib":"fa","tags":["navigate"]},"arrow-to-bottom":{"id":"fal, arrow-to-bottom","lib":"fa","tags":["download"]},"arrow-to-top":{"id":"fal, arrow-to-top","lib":"fa","tags":["upload"]},"arrow-up-long":{"id":"fal, arrow-up-long","lib":"fa","tags":["arrow-up-long"]},"ballot-check":{"id":"fal, ballot-check","lib":"fa"},"barcode-alt":{"id":"fal, barcode-alt","lib":"fa"},"bars":{"id":"fal, bars","lib":"fa","tags":["burger"]},"bell":{"id":"fal, bell","lib":"fa","tags":["notification"]},"bolt":{"id":"fal, bolt-lightning","lib":"fa"},"bolt-lightning":{"id":"fal, bolt-lightning","lib":"fa"},"book":{"id":"fal, book","lib":"fa"},"box":{"id":"fal, box","lib":"fa"},"box-open":{"id":"fal, box-open","lib":"fa"},"calendar":{"id":"fal, calendar","lib":"fa"},"calendar-arrow-down":{"id":"fal, calendar-arrow-down","lib":"fa"},"calendar-circle-user":{"id":"fal, calendar-circle-user","lib":"fa"},"calendar-check":{"id":"fal, calendar-check","lib":"fa"},"calendar-minus":{"id":"fal, calendar-minus","lib":"fa"},"calendar-plus":{"id":"fal, calendar-plus","lib":"fa"},"chalkboard-teacher":{"id":"fal, chalkboard-teacher","lib":"fa"},"chart-network":{"id":"fal, chart-network","lib":"fa"},"check":{"id":"fal, check","lib":"fa","tags":["ok"]},"check-circle":{"id":"fal, check-circle","lib":"fa","tags":["check"]},"check-circle-full":{"id":"fas, check-circle","lib":"fa"},"chevron-double-down":{"id":"fal, chevron-double-down","lib":"fa"},"chevron-double-left":{"id":"fal, chevron-double-left","lib":"fa"},"chevron-double-right":{"id":"fal, chevron-double-right","lib":"fa"},"chevron-double-up":{"id":"fal, chevron-double-up","lib":"fa"},"chevron-down":{"id":"fal, chevron-down","lib":"fa"},"chevron-left":{"id":"fal, chevron-left","lib":"fa"},"chevron-right":{"id":"fal, chevron-right","lib":"fa"},"chevron-up":{"id":"fal, chevron-up","lib":"fa"},"circle":{"id":"fal, circle","lib":"fa","tags":["selection"]},"circle-full":{"id":"fas, circle","lib":"fa"},"circle-notch":{"id":"fa, circle-notch","lib":"fa"},"circle-notch-light":{"id":"fal, circle-notch","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"facebook":{"id":"fab, facebook","lib":"fa","tags":["sso"]},"facebook-f":{"id":"fab, facebook-f","lib":"fa","tags":["sso"]},"file":{"id":"fal, file","lib":"fa"},"file-alt":{"id":"fal, file-alt","lib":"fa"},"file-code":{"id":"fal, file-code","lib":"fa"},"file-csv":{"id":"fal, file-csv","lib":"fa"},"file-excel":{"id":"fal, file-excel","lib":"fa"},"file-export":{"id":"fal, file-export","lib":"fa"},"file-import":{"id":"fal, file-import","lib":"fa"},"file-pdf":{"id":"fal, file-pdf","lib":"fa"},"file-spreadsheet":{"id":"fal, file-spreadsheet","lib":"fa"},"filter":{"id":"fal, filter","lib":"fa"},"folder":{"id":"fal, folder","lib":"fa"},"folders":{"id":"fal, folders","lib":"fa","tags":["copy"]},"globe":{"id":"fal, globe","lib":"fa"},"google":{"id":"fab, google","lib":"fa","tags":["sso"]},"horizontal-rule":{"id":"fal, horizontal-rule","lib":"fa"},"id-badge":{"id":"fal, id-badge","lib":"fa"},"info":{"id":"fal, info","lib":"fa"},"laptop-code":{"id":"fal, laptop-code","lib":"fa"},"link":{"id":"fal, link","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"lock":{"id":"fal, lock","lib":"fa"},"info-circle":{"id":"fal, info-circle","lib":"fa","tags":["info"]},"mail-bulk":{"id":"fal, mail-bulk","lib":"fa"},"map-marked":{"id":"fal, map-marked","lib":"fa"},"merge":{"id":"fal, merge","lib":"fa"},"microsoft":{"id":"fab, microsoft","lib":"fa","tags":["sso"]},"minus":{"id":"fal, minus","lib":"fa"},"newspaper":{"id":"fal, newspaper","lib":"fa"},"office":{"id":"office","lib":"toc"},"paper-clip":{"id":"fa, paper-clip","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"phone":{"id":"fal, phone","lib":"fa"},"phone-laptop":{"id":"fal, phone-laptop","lib":"fa"},"plus":{"id":"fal, plus","lib":"fa","tags":["new"]},"question-circle":{"id":"fal, question-circle","lib":"fa","tags":["help"]},"save":{"id":"fal, save","lib":"fa"},"search":{"id":"fal, search","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"square":{"id":"fal, square","lib":"fa"},"square-full":{"id":"fas, square-full","lib":"fa"},"square-minus":{"id":"fal, square-minus","lib":"fa"},"square-plus":{"id":"fal, square-plus","lib":"fa"},"star":{"id":"fal, star","lib":"fa","tags":["favorite"]},"star-full":{"id":"fas, star","lib":"fa","tags":["favorite"]},"sync":{"id":"fal, sync","lib":"fa","tags":["refresh"]},"tasks":{"id":"fal, tasks","lib":"fa"},"times":{"id":"fal, times","lib":"fa","tags":["delete","close"]},"times-circle":{"id":"fal, times-circle","lib":"fa","tags":["error"]},"tocco":{"id":"logo","lib":"toc"},"trash":{"id":"fal, trash","lib":"fa","tags":["trash"]},"upload":{"id":"fal, upload","lib":"fa"},"users":{"id":"fal, users","lib":"fa"},"lightbulb-exclamation":{"id":"fal, lightbulb-exclamation","lib":"fa"},"house-blank":{"id":"fal, house-blank","lib":"fa"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"},"user":{"id":"fal, user","lib":"fa"},"suitcase":{"id":"fal, suitcase","lib":"fa"}}');var E,P;function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S={logo:function(e){return(0,g.jsx)("svg",T(T({height:y()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:E||(E=(0,g.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(e){return(0,g.jsx)("svg",T(T({height:y()(e,"fontSize",20)},e),{},{"aria-hidden":"true",role:"img",enableBackground:"new 0 0 2075 2499.8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2075 2499.8",children:P||(P=(0,g.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},C=function(e){var t=e.icon,n=e.style;return S[t](n)};C.propTypes={icon:a().string.isRequired,style:a().object};const A=C;function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I={fa:function(e,t){return(0,g.jsx)(w,Z(Z({},t),{},{icon:e.id}))},toc:function(e,t){return(0,g.jsx)(A,Z(Z({},t),{},{icon:e.id}))}},N=function(e){var t=x[e.icon];if(!t)return null;var n=I[t.lib];return n?n(t,e):null};N.propTypes={icon:a().string.isRequired,style:a().objectOf(a().string)};const L=N},40493:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r,i=n(28655),o=n.n(i),a=n(38205).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=o()([""])))},71392:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var r={INLINE:"inline",NONE:"none"}},65378:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(45697),i=n.n(r),o=n(98773);const a={propTypes:i().shape({embedType:i().oneOf(o.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})}},13442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(59713),i=n.n(r);function o(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var i=1,o="";if("?"===e[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<e.length;)if("\\"!==e[c]){if(")"===e[c]){if(0==--i){c++;break}}else if("("===e[c]&&(i++,"?"!==e[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));o+=e[c++]}else o+=e[c++]+e[c++];if(i)throw new TypeError("Unbalanced pattern at ".concat(n));if(!o)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:o}),n=c}else{for(var a="",c=n+1;c<e.length;){var l=e.charCodeAt(c);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[c++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=c}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,o="[^".concat(a(t.delimiter||"/#?"),"]+?"),c=[],l=0,s=0,u="",f=function(e){if(s<n.length&&n[s].type===e)return n[s++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[s],i=r.type,o=r.index;throw new TypeError("Unexpected ".concat(i," at ").concat(o,", expected ").concat(e))},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};s<n.length;){var b=f("CHAR"),y=f("NAME"),h=f("PATTERN");if(y||h){var g=b||"";-1===i.indexOf(g)&&(u+=g,g=""),u&&(c.push(u),u=""),c.push({name:y||l++,prefix:g,suffix:"",pattern:h||o,modifier:f("MODIFIER")||""})}else{var m=b||f("ESCAPED_CHAR");if(m)u+=m;else if(u&&(c.push(u),u=""),f("OPEN")){g=p();var v=f("NAME")||"",O=f("PATTERN")||"",j=p();d("CLOSE"),c.push({name:v||(O?l++:""),pattern:v&&!O?o:O,prefix:g,suffix:j,modifier:f("MODIFIER")||""})}else d("END")}}return c}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function c(e){return e&&e.sensitive?"":"i"}function l(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,o=n.start,l=void 0===o||o,s=n.end,u=void 0===s||s,f=n.encode,d=void 0===f?function(e){return e}:f,p=n.delimiter,b=void 0===p?"/#?":p,y=n.endsWith,h="[".concat(a(void 0===y?"":y),"]|$"),g="[".concat(a(b),"]"),m=l?"^":"",v=0,O=e;v<O.length;v++){var j=O[v];if("string"==typeof j)m+=a(d(j));else{var w=a(d(j.prefix)),x=a(d(j.suffix));if(j.pattern)if(t&&t.push(j),w||x)if("+"===j.modifier||"*"===j.modifier){var E="*"===j.modifier?"?":"";m+="(?:".concat(w,"((?:").concat(j.pattern,")(?:").concat(x).concat(w,"(?:").concat(j.pattern,"))*)").concat(x,")").concat(E)}else m+="(?:".concat(w,"(").concat(j.pattern,")").concat(x,")").concat(j.modifier);else"+"===j.modifier||"*"===j.modifier?m+="((?:".concat(j.pattern,")").concat(j.modifier,")"):m+="(".concat(j.pattern,")").concat(j.modifier);else m+="(?:".concat(w).concat(x,")").concat(j.modifier)}}if(u)i||(m+="".concat(g,"?")),m+=n.endsWith?"(?=".concat(h,")"):"$";else{var P=e[e.length-1],k="string"==typeof P?g.indexOf(P[P.length-1])>-1:void 0===P;i||(m+="(?:".concat(g,"(?=").concat(h,"))?")),k||(m+="(?=".concat(g,"|").concat(h,")"))}return new RegExp(m,c(n))}(o(e,n),t,n)}function s(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=n.exec(e.source);i;)t.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return s(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),c(n))}(e,t,n):l(e,t,n)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=n(81770),p=n(24688),b=n(63038),y=n.n(b),h=n(1024),g=n.n(h),m=n(85893);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){return function(t){var n=(0,h.useState)(null),r=y()(n,2),o=r[0],a=r[1],c=(0,h.useRef)(!0);return(0,h.useEffect)((function(){return e().then((function(e){return c.current?a((function(){return e})):null})),function(){c.current=!1}}),[]),null!==o?(0,m.jsx)(o,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)):null}}var j=n(44759);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E={},P=n(56746),k=function(e){return function(t){if(e.component)return(0,m.jsx)(e.component,{router:t,routes:e.routes});if(e.render){var n={router:t,routes:e.routes};return e.render(n)}}};const T=function(e){return(0,m.jsx)(P.AW,{path:e.path,exact:e.exact,render:k(e)})};function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const C=function(e){var t=e.history,n=e.routes;return(0,m.jsx)(P.F0,{history:t,children:(0,m.jsx)(g().Fragment,{children:n.map((function(e,t){return(0,m.jsx)(T,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),t)}))})})},A={loadRoute:function(e,t,n,r){return function(i){if(r&&E[r]){var o=E[r];return(0,m.jsx)(o,x({},i))}var a=O((function(){return new Promise((function(r){n().then((function(n){var i=n.default;i.reducers&&d.Z.injectReducers(e,i.reducers),i.sagas&&i.sagas.forEach((function(t){p.Z.injectSaga(e,t)})),i.inputDispatches&&i.inputDispatches.forEach((function(n){!function(e,t,n){var r=n.key,i=n.actionCreator,o=n.mandatory,a=void 0!==o&&o,c=n.defaultValue,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.Z.logError;if(Object.prototype.hasOwnProperty.call(t,r)||c){var s=i(t[r]||c);e.dispatch(s)}else!0===a&&l("EntityBrowser: Mandatory field '".concat(r,"' not set in input"))}(e,t,n)})),r(i.container)}))}))}));return r&&(E[r]=a),(0,m.jsx)(a,x({},i))}},Router:C,RouteWithSubRoutes:T,extractParamsFromPath:function(e,t){var n=[],r=s(e,n).exec(t);return null!==r?n.reduce((function(e,t,n){return f(f({},e),{},i()({},t.name,r[n+1]))}),{}):null}}},29441:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(59713),i=n.n(r),o=n(27361),a=n.n(o);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={};const u={persistViewInfo:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;s=l(l({},s),{},i()({},e,{level:n,info:l(l({},a()(s,[e,"info"],{})),t)}))},viewInfoSelector:function(e){return a()(s,[e,"info"],{})},clearPersistedViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s=l({},Object.keys(s).reduce((function(t,n){var r=s[n];return l(l({},t),r.level<e&&i()({},n,r))}),{}))}}},41143:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,c){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,i,o,a,c],u=0;(l=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},64593:(e,t,n)=>{"use strict";n.d(t,{q:()=>he});var r,i,o,a,c=n(89324),l=n.n(c),s=n(83524),u=n.n(s),f=n(69590),d=n.n(f),p=n(1024),b=n.n(p),y=n(27418),h=n.n(y),g="bodyAttributes",m="htmlAttributes",v="titleAttributes",O={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},j=(Object.keys(O).map((function(e){return O[e]})),"charset"),w="cssText",x="href",E="http-equiv",P="innerHTML",k="itemprop",T="name",S="property",C="rel",A="src",D="target",Z={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",N="defer",L="encodeSpecialCharacters",R="onChangeClientState",M="titleTemplate",F=Object.keys(Z).reduce((function(e,t){return e[Z[t]]=t,e}),{}),_=[O.NOSCRIPT,O.SCRIPT,O.STYLE],q="data-react-helmet",B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},W=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},V=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},G=function(e){var t=X(e,O.TITLE),n=X(e,M);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=X(e,I);return t||r||void 0},K=function(e){return X(e,R)||function(){}},$=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return H({},e,t)}),{})},J=function(e,t){return t.filter((function(e){return void 0!==e[O.BASE]})).map((function(e){return e[O.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},Q=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&ie("Helmet: "+e+' should be of type "Array". Instead found type "'+B(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var c=o[a],l=c.toLowerCase();-1===t.indexOf(l)||n===C&&"canonical"===e[n].toLowerCase()||l===C&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(c)||c!==P&&c!==w&&c!==k||(n=c)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][s]&&(i[n][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var c=o[a],l=h()({},r[c],i[c]);r[c]=l}return e}),[]).reverse()},X=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},ne="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:n.g.requestAnimationFrame||ee,re="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:n.g.cancelAnimationFrame||te,ie=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},oe=null,ae=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,c=e.noscriptTags,l=e.onChangeClientState,s=e.scriptTags,u=e.styleTags,f=e.title,d=e.titleAttributes;se(O.BODY,r),se(O.HTML,i),le(f,d);var p={baseTag:ue(O.BASE,n),linkTags:ue(O.LINK,o),metaTags:ue(O.META,a),noscriptTags:ue(O.NOSCRIPT,c),scriptTags:ue(O.SCRIPT,s),styleTags:ue(O.STYLE,u)},b={},y={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(b[e]=n),r.length&&(y[e]=p[e].oldTags)})),t&&t(),l(e,b,y)},ce=function(e){return Array.isArray(e)?e.join(""):e},le=function(e,t){void 0!==e&&document.title!==e&&(document.title=ce(e)),se(O.TITLE,t)},se=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(q),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),c=0;c<a.length;c++){var l=a[c],s=t[l]||"";n.getAttribute(l)!==s&&n.setAttribute(l,s),-1===i.indexOf(l)&&i.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var f=o.length-1;f>=0;f--)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute(q):n.getAttribute(q)!==a.join(",")&&n.setAttribute(q,a.join(","))}},ue=function(e,t){var n=document.head||document.querySelector(O.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===P)n.innerHTML=t.innerHTML;else if(r===w)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(q,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},fe=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Z[n]||n]=e[n],t}),t)},pe=function(e,t,n){switch(e){case O.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[q]=!0,i=de(n,r),[b().createElement(O.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=fe(n),o=ce(t);return i?"<"+e+' data-react-helmet="true" '+i+">"+V(o,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+V(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case g:case m:return{toComponent:function(){return de(t)},toString:function(){return fe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})[q]=!0,r);return Object.keys(t).forEach((function(e){var n=Z[e]||e;if(n===P||n===w){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),b().createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===P||e===w)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+V(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===_.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},be=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,c=e.noscriptTags,l=e.scriptTags,s=e.styleTags,u=e.title,f=void 0===u?"":u,d=e.titleAttributes;return{base:pe(O.BASE,t,r),bodyAttributes:pe(g,n,r),htmlAttributes:pe(m,i,r),link:pe(O.LINK,o,r),meta:pe(O.META,a,r),noscript:pe(O.NOSCRIPT,c,r),script:pe(O.SCRIPT,l,r),style:pe(O.STYLE,s,r),title:pe(O.TITLE,{title:f,titleAttributes:d},r)}},ye=u()((function(e){return{baseTag:J([x,D],e),bodyAttributes:$(g,e),defer:X(e,N),encode:X(e,L),htmlAttributes:$(m,e),linkTags:Q(O.LINK,[C,x],e),metaTags:Q(O.META,[T,j,E,S,k],e),noscriptTags:Q(O.NOSCRIPT,[P],e),onChangeClientState:K(e),scriptTags:Q(O.SCRIPT,[A,P],e),styleTags:Q(O.STYLE,[w],e),title:G(e),titleAttributes:$(v,e)}}),(function(e){oe&&re(oe),e.defer?oe=ne((function(){ae(e,(function(){oe=null}))})):(ae(e),oe=null)}),be)((function(){return null})),he=(i=ye,a=o=function(e){function t(){return U(this,t),z(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!d()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case O.SCRIPT:case O.NOSCRIPT:return{innerHTML:t};case O.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return H({},r,((t={})[n.type]=[].concat(r[n.type]||[],[H({},i,this.mapNestedChildrenToProps(n,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case O.TITLE:return H({},i,((t={})[r.type]=a,t.titleAttributes=H({},o),t));case O.BODY:return H({},i,{bodyAttributes:H({},o)});case O.HTML:return H({},i,{htmlAttributes:H({},o)})}return H({},i,((n={})[r.type]=H({},o),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=H({},t);return Object.keys(e).forEach((function(t){var r;n=H({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return b().Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[F[n]||n]=e[n],t}),t)}(Y(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case O.LINK:case O.META:case O.NOSCRIPT:case O.SCRIPT:case O.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=Y(e,["children"]),r=H({},n);return t&&(r=this.mapChildrenToProps(t,r)),b().createElement(i,r)},W(t,null,[{key:"canUseDOM",set:function(e){i.canUseDOM=e}}]),t}(b().Component),o.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=i.peek,o.rewind=function(){var e=i.rewind();return e||(e=be({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);he.renderStatic=he.rewind},17579:(e,t,n)=>{"use strict";var r=n(80070);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},89324:(e,t,n)=>{e.exports=n(17579)()},80070:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83524:(e,t,n)=>{"use strict";var r,i=n(1024),o=(r=i)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var l,s=[];function u(){l=e(s.map((function(e){return e.props}))),f.canUseDOM?t(l):n&&(l=n(l))}var f=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return l},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,s=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),u()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",c),f}}},14149:(e,t,n)=>{"use strict";function r(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}n.r(t),n.d(t,{default:()=>o});const o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&r(e),c=t&&r(t),l=a||c;if(e&&r(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var s=void 0;if(o.length){var u=o[o.length-1];s="."===u||".."===u||""===u}else s=!1;for(var f=0,d=o.length;d>=0;d--){var p=o[d];"."===p?i(o,d):".."===p?(i(o,d),f++):f&&(i(o,d),f--)}if(!l)for(;f--;f)o.unshift("..");!l||""===o[0]||o[0]&&r(o[0])||o.unshift("");var b=o.join("/");return s&&"/"!==b.substr(-1)&&(b+="/"),b}},54545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const i=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));var i=void 0===t?"undefined":r(t);if(i!==(void 0===n?"undefined":r(n)))return!1;if("object"===i){var o=t.valueOf(),a=n.valueOf();if(o!==t||a!==n)return e(o,a);var c=Object.keys(t),l=Object.keys(n);return c.length===l.length&&c.every((function(r){return e(t[r],n[r])}))}return!1}},30670:e=>{"use strict";e.exports=function(){}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[877],{80446:(t,e,n)=>{n.r(e),n.d(e,{AsYouType:()=>ln,AsYouTypeCustom:()=>un,DIGITS:()=>tt.jd,DIGIT_PLACEHOLDER:()=>me,Metadata:()=>mn,ParseError:()=>v.Z,PhoneNumberMatcher:()=>se,PhoneNumberSearch:()=>rr,PhoneNumberSearchCustom:()=>Kn,default:()=>o._,findNumbers:()=>Ht,findPhoneNumbers:()=>er,findPhoneNumbersCustom:()=>Qn,findPhoneNumbersInText:()=>ae,format:()=>kn,formatCustom:()=>An,formatIncompletePhoneNumber:()=>bn,formatNumber:()=>kn,formatRFC3966:()=>Cn.Y,getCountries:()=>fn,getCountryCallingCode:()=>hn,getCountryCallingCodeCustom:()=>C.Gg,getExampleNumber:()=>pn,getExtPrefix:()=>gn,getNumberType:()=>Un,getNumberTypeCustom:()=>Zn,getPhoneCode:()=>hn,getPhoneCodeCustom:()=>C.Gg,isPossibleNumber:()=>Bn,isPossiblePhoneNumber:()=>y,isSupportedCountry:()=>sn,isValidNumber:()=>Vn,isValidNumberCustom:()=>Wn,isValidNumberForRegion:()=>Gn,isValidPhoneNumber:()=>h,parse:()=>xn,parseCustom:()=>Nn,parseDigits:()=>tt.ZP,parseIncompletePhoneNumber:()=>vn.Z,parseNumber:()=>xn,parsePhoneNumber:()=>a,parsePhoneNumberCharacter:()=>vn.J,parsePhoneNumberFromString:()=>o._,parsePhoneNumberWithError:()=>a,parseRFC3966:()=>Cn.m,searchNumbers:()=>qt,searchPhoneNumbers:()=>nr,searchPhoneNumbersCustom:()=>tr,searchPhoneNumbersInText:()=>ue,validatePhoneNumberLength:()=>O});var r=n(92324),i=n(4541);function a(){return(0,r.Z)(i.Z,arguments)}var o=n(52817),u=n(4784);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(){var t=(0,i.b)(arguments),e=t.text,n=t.options,r=t.metadata;n=s(s({},n),{},{extract:!1});var a=(0,u.Z)(e,n,r);return a&&a.isValid()||!1}function h(){return(0,r.Z)(f,arguments)}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(){var t=(0,i.b)(arguments),e=t.text,n=t.options,r=t.metadata;n=m(m({},n),{},{extract:!1});var a=(0,u.Z)(e,n,r);return a&&a.isPossible()||!1}function y(){return(0,r.Z)(p,arguments)}var b=n(88490),v=n(40792),C=n(12581),N=n(87856);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){w(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(){var t=(0,i.b)(arguments),e=t.text,n=t.options,r=t.metadata;n=P(P({},n),{},{extract:!1});try{var a=(0,b.Z)(e,n,r);(r=new C.ZP(r)).selectNumberingPlan(a.countryCallingCode);var o=(0,N.Z)(a.nationalNumber,r);if("IS_POSSIBLE"!==o)return o}catch(t){if(t instanceof v.Z)return t.message;throw t}}function O(){return(0,r.Z)(S,arguments)}var A=n(91507),E=n(95619),j=n(33878);function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t,e,n){return e&&k(t.prototype,e),n&&k(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var F=T((function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;I(this,t),this.key=e,this.value=n,this.next=r,this.prev=i})),D=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;I(this,t),this.size=0,this.limit=e,this.head=null,this.tail=null,this.cache={}}return T(t,[{key:"put",value:function(t,e){if(this.ensureLimit(),this.head){var n=new F(t,e,this.head);this.head.prev=n,this.head=n}else this.head=this.tail=new F(t,e);this.cache[t]=this.head,this.size++}},{key:"get",value:function(t){if(this.cache[t]){var e=this.cache[t].value;return this.remove(t),this.put(t,e),e}console.log("Item not available in cache for key ".concat(t))}},{key:"ensureLimit",value:function(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function(t){var e=this.cache[t];null!==e.prev?e.prev.next=e.next:this.head=e.next,null!==e.next?e.next.prev=e.prev:this.tail=e.prev,delete this.cache[t],this.size--}},{key:"clear",value:function(){this.head=null,this.tail=null,this.size=0,this.cache={}}}]),t}();function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Z=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.cache=new D(e)}var e,n,r;return e=t,(n=[{key:"getPatternForRegExp",value:function(t){var e=this.cache.get(t);return e||(e=new RegExp("^"+t),this.cache.put(t,e)),e}}])&&R(e.prototype,n),r&&R(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function M(t,e){if(t<0||e<=0||e<t)throw new TypeError;return"{".concat(t,",").concat(e,"}")}function _(t,e){var n=e.search(t);return n>=0?e.slice(0,n):e}var U=" - \u2028\u2029 ",L="[".concat(U,"]"),$="[^".concat(U,"]"),B="[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9","]"),W="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",V="[".concat(W,"]"),Y=new RegExp(V),G="[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩$¢£¥₩","]"),z=new RegExp(G),H="[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦","]"),J=new RegExp(H),X=new RegExp("[\0--ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");function q(t){return!(!Y.test(t)&&!J.test(t))&&X.test(t)}function K(t){return"%"===t||z.test(t)}var Q=n(71567),tt=n(29233);function et(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return nt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const rt={POSSIBLE:function(t,e,n){return!0},VALID:function(t,e,n){return!(!(0,Q.Z)(t,void 0,n)||!it(t,e.toString(),n))},STRICT_GROUPING:function(t,e,n,r){var i=e.toString();return!(!(0,Q.Z)(t,void 0,n)||!it(t,i,n)||ot(t,i)||!at(t,n))&&ut(t,e,n,ct,r)},EXACT_GROUPING:function(t,e,n,r){var i=e.toString();return!(!(0,Q.Z)(t,void 0,n)||!it(t,i,n)||ot(t,i)||!at(t,n))&&ut(t,e,n,st,r)}};function it(t,e,n){for(var r=0;r<e.length-1;r++){var i=e.charAt(r);if("x"===i||"X"===i){var a=e.charAt(r+1);if("x"===a||"X"===a){if(r++,util.isNumberMatch(t,e.substring(r))!=MatchType.NSN_MATCH)return!1}else if((0,tt.ZP)(e.substring(r))!==t.ext)return!1}}return!0}function at(t,e){if("FROM_DEFAULT_COUNTRY"!=t.getCountryCodeSource())return!0;var n=util.getRegionCodeForCountryCode(t.getCountryCode()),r=util.getMetadataForRegion(n);if(null==r)return!0;var i=util.getNationalSignificantNumber(t),a=util.chooseFormattingPatternForNumber(r.numberFormats(),i);if(a&&a.getNationalPrefixFormattingRule().length>0){if(a.getNationalPrefixOptionalWhenFormatting())return!0;if(PhoneNumberUtil.formattingRuleHasFirstGroupOnly(a.getNationalPrefixFormattingRule()))return!0;var o=PhoneNumberUtil.normalizeDigitsOnly(t.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(o,r,null)}return!0}function ot(t,e){var n=e.indexOf("/");if(n<0)return!1;var r=e.indexOf("/",n+1);return!(r<0)&&(!(t.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||t.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)||PhoneNumberUtil.normalizeDigitsOnly(e.substring(0,n))!==String(t.getCountryCode())||e.slice(r+1).indexOf("/")>=0)}function ut(t,e,n,r,i){var a=normalizeDigits(e,!0),o=lt(n,t,null);if(r(n,t,a,o))return!0;var u=MetadataManager.getAlternateFormatsForCountry(t.getCountryCode()),l=util.getNationalSignificantNumber(t);if(u)for(var s,c=et(u.numberFormats());!(s=c()).done;){var f=s.value;if(f.leadingDigitsPatterns().length>0)if(!i.getPatternForRegExp("^"+f.leadingDigitsPatterns()[0]).test(l))continue;if(r(n,t,a,o=lt(n,t,f)))return!0}return!1}function lt(t,e,n){if(n){var r=util.getNationalSignificantNumber(e);return util.formatNsnUsingPattern(r,n,"RFC3966",t).split("-")}var i=formatNumber(e,"RFC3966",t),a=i.indexOf(";");a<0&&(a=i.length);var o=i.indexOf("-")+1;return i.slice(o,a).split("-")}function st(t,e,n,r){var i=n.split(NON_DIGITS_PATTERN),a=e.hasExtension()?i.length-2:i.length-1;if(1==i.length||i[a].contains(util.getNationalSignificantNumber(e)))return!0;for(var o,u,l=r.length-1;l>0&&a>=0;){if(i[a]!==r[l])return!1;l--,a--}return a>=0&&(o=i[a],u=r[0],o.indexOf(u,o.length-u.length)===o.length-u.length)}function ct(t,e,n,r){var i,a,o=0;if(e.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var u=String(e.getCountryCode());o=n.indexOf(u)+u.length()}for(var l=0;l<r.length;l++){if((o=n.indexOf(r[l],o))<0)return!1;if(o+=r[l].length(),0==l&&o<n.length()){var s=util.getRegionCodeForCountryCode(e.getCountryCode());if(null!=util.getNddPrefixForRegion(s,!0)&&Character.isDigit(n.charAt(o))){var c=util.getNationalSignificantNumber(e);return i=n.slice(o-r[l].length),a=c,0===i.indexOf(a)}}}return n.slice(o).contains(e.getExtension())}var ft=/[\\/] *x/;function ht(t){return _(ft,t)}var gt=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,mt=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,dt=/^:[0-5]\d/;function pt(t,e,n){if(gt.test(t))return!1;if(mt.test(t)){var r=n.slice(e+t.length);if(dt.test(r))return!1}return!0}var yt="(\\[([",bt=")\\])]",vt="[^".concat(yt).concat(bt,"]"),Ct="[".concat(yt).concat(E.xy,"]"),Nt=new RegExp("^"+Ct),xt=M(0,3),Pt=new RegExp("^(?:[(\\[([])?(?:"+vt+"+["+")\\])]])?"+vt+"+(?:["+"(\\[([]"+vt+"+["+")\\])]])"+xt+vt+"*$"),wt=/\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;function St(t,e,n,r){if(Pt.test(t)&&!wt.test(t)){if("POSSIBLE"!==r){if(e>0&&!Nt.test(t)){var i=n[e-1];if(K(i)||q(i))return!1}var a=e+t.length;if(a<n.length){var o=n[a];if(K(o)||q(o))return!1}}return!0}}var Ot=n(9017);function At(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Et(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Et(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jt(Object(n),!0).forEach((function(e){Tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function It(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Dt=(0,j.Z)("matching"),Rt=["\\/+(.*)/","(\\([^(]*)","(?:".concat(L,"-|-").concat(L,")").concat(L,"*(.+)"),"[‒-―-]".concat(L,"*(.+)"),"\\.+".concat(L,"*([^.]+)"),"".concat(L,"+(").concat($,"+)")],Zt=M(0,2),Mt=M(0,4),_t=E.sJ+E.xg,Ut=M(0,_t),Lt="[".concat(E.uv,"]")+Mt,$t=B+M(1,_t),Bt="(?:"+Ct+Lt+")"+Zt+$t+"(?:"+Lt+$t+")"+Ut+"(?:"+Dt+")?",Wt=new RegExp("[^".concat("0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൦-൵๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9").concat(W,"#]+$")),Vt=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Yt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(It(this,t),!(n=kt(kt({},n),{},{defaultCallingCode:n.defaultCallingCode,defaultCountry:n.defaultCountry&&(0,C.aS)(n.defaultCountry,r)?n.defaultCountry:void 0,leniency:n.leniency||n.extended?"POSSIBLE":"VALID",maxTries:n.maxTries||Vt})).leniency)throw new TypeError("`Leniency` not supplied");if(n.maxTries<0)throw new TypeError("`maxTries` not supplied");if(this.text=e,this.options=n,this.metadata=r,this.leniency=rt[n.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(n.leniency,"."));this.maxTries=n.maxTries,this.PATTERN=new RegExp(Bt,"ig"),this.state="NOT_READY",this.searchIndex=0,this.regExpCache=new Z(32)}var e,n,r;return e=t,n=[{key:"find",value:function(){for(var t;this.maxTries>0&&null!==(t=this.PATTERN.exec(this.text));){var e=t[0],n=t.index;if(pt(e=ht(e),n,this.text)){var r=this.parseAndVerify(e,n,this.text)||this.extractInnerMatch(e,n,this.text);if(r){if(this.options.v2){var i=new A.Z(r.country||r.countryCallingCode,r.phone,this.metadata);return r.ext&&(i.ext=r.ext),{startsAt:r.startsAt,endsAt:r.endsAt,number:i}}return r}}this.maxTries--}}},{key:"extractInnerMatch",value:function(t,e,n){for(var r,i=At(Rt);!(r=i()).done;)for(var a=r.value,o=!0,u=void 0,l=new RegExp(a,"g");this.maxTries>0&&null!==(u=l.exec(t));){if(o){var s=_(Wt,t.slice(0,u.index)),c=this.parseAndVerify(s,e,n);if(c)return c;this.maxTries--,o=!1}var f=_(Wt,u[1]),h=t.indexOf(f,u.index),g=this.parseAndVerify(f,e+h,n);if(g)return g;this.maxTries--}}},{key:"parseAndVerify",value:function(t,e,n){if(St(t,e,n,this.options.leniency)){var r=(0,Ot.Z)(t,{extended:!0,defaultCountry:this.options.defaultCountry,defaultCallingCode:this.options.defaultCallingCode},this.metadata);if(r.possible&&this.leniency(r,t,this.metadata,this.regExpCache)){var i={startsAt:e,endsAt:e+t.length,phone:r.phone};return r.country&&"001"!==r.country?i.country=r.country:i.countryCallingCode=r.countryCallingCode,r.ext&&(i.ext=r.ext),i}}}},{key:"hasNext",value:function(){return"NOT_READY"===this.state&&(this.lastMatch=this.find(),this.lastMatch?this.state="READY":this.state="DONE"),"READY"===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var t=this.lastMatch;return this.lastMatch=null,this.state="NOT_READY",t}}],n&&Ft(e.prototype,n),r&&Ft(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Gt(t,e,n){for(var r=new Yt(t,e,n),i=[];r.hasNext();)i.push(r.next());return i}function zt(){var t=(0,i.b)(arguments),e=t.text,n=t.options,r=t.metadata;return Gt(e,n,r)}function Ht(){return(0,r.Z)(zt,arguments)}function Jt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xt(){var t=(0,i.b)(arguments),e=t.text,n=t.options,r=t.metadata,a=new Yt(e,n,r);return Jt({},Symbol.iterator,(function(){return{next:function(){return a.hasNext()?{done:!1,value:a.next()}:{done:!0}}}}))}function qt(){return(0,r.Z)(Xt,arguments)}function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qt(Object(n),!0).forEach((function(e){ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ne(t,e,n,r){var i=re(e,n,r);return zt(t,i.options,i.metadata)}function re(t,e,n){return n?t&&(e=te(te({},e),{},{defaultCountry:t})):e?(n=e,e=t?ie(t)?t:{defaultCountry:t}:void 0):(n=t,e=void 0),{options:te(te({},e),{},{v2:!0}),metadata:n}}var ie=function(t){return"object"===Kt(t)};function ae(){return(0,r.Z)(ne,arguments)}function oe(t,e,n,r){var i=re(e,n,r);return Xt(t,i.options,i.metadata)}function ue(){return(0,r.Z)(oe,arguments)}var le=n(98951);function se(t,e){return Yt.call(this,t,e,le.Z)}function ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}se.prototype=Object.create(Yt.prototype,{}),se.prototype.constructor=se;var fe=function(){function t(e){var n=e.onCountryChange,r=e.onCallingCodeChange;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onCountryChange=n,this.onCallingCodeChange=r}var e,n,r;return e=t,(n=[{key:"reset",value:function(t){var e=t.country,n=t.callingCode;this.international=!1,this.IDDPrefix=void 0,this.missingPlus=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(e,n)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];this[r]=t[r]}}},{key:"initCountryAndCallingCode",value:function(t,e){this.setCountry(t),this.setCallingCode(e)}},{key:"setCountry",value:function(t){this.country=t,this.onCountryChange(t)}},{key:"setCallingCode",value:function(t){this.callingCode=t,this.onCallingCodeChange(t,this.country)}},{key:"startInternationalNumber",value:function(t,e){this.international=!0,this.initCountryAndCallingCode(t,e)}},{key:"appendDigits",value:function(t){this.digits+=t}},{key:"appendNationalSignificantNumberDigits",value:function(t){this.nationalSignificantNumber+=t}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])&&ce(e.prototype,n),r&&ce(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function he(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return ge(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var me="x",de=new RegExp(me);function pe(t,e){if(e<1)return"";for(var n="";e>1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}function ye(t,e){return")"===t[e]&&e++,function(t){var e=[],n=0;for(;n<t.length;)"("===t[n]?e.push(n):")"===t[n]&&e.pop(),n++;var r=0,i="";e.push(t.length);for(var a=0,o=e;a<o.length;a++){var u=o[a];i+=t.slice(r,u),r=u+1}return i}(t.slice(0,e))}var be=n(25738);function ve(t,e,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(e.pattern(),")$")).test(t.nationalSignificantNumber))return function(t,e,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;t.nationalSignificantNumber,t.international,t.nationalPrefix,t.carrierCode;if(i(e)){var o=Ce(t,e,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(o)return o}return Ce(t,e,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}(t,e,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function Ce(t,e,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,o=(0,be.Z)(t.nationalSignificantNumber,e,{carrierCode:t.carrierCode,useInternationalFormat:t.international,withNationalPrefix:i,metadata:r});if(i||(t.nationalPrefix?o=t.nationalPrefix+a(e)+o:t.complexPrefixBeforeNationalSignificantNumber&&(o=t.complexPrefixBeforeNationalSignificantNumber+" "+o)),function(t,e){return(0,tt.ZP)(t)===e.getNationalDigits()}(o,t))return o}function Ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var xe=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"parse",value:function(t){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(t),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var e=this.context[0],n=e.branches,r=e.instructions;if(n)return{op:"|",args:n.concat([Oe(r)])};if(0===r.length)throw new Error("Pattern is required");return 1===r.length?r[0]:r}},{key:"startContext",value:function(t){this.context.push(t)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(t){if(!t)throw new Error("Pattern is required");var e=t.match(Se);if(e){var n=e[1],r=t.slice(0,e.index),i=t.slice(e.index+n.length);switch(n){case"(?:":r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(r&&this.parsePattern(r),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var a=this.getContext().branches;a.push(Oe(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:a});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(r&&this.parsePattern(r),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(Oe(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Pe(r)});break;default:throw new Error("Unknown operator: ".concat(n))}i&&this.parsePattern(i)}else{if(we.test(t))throw new Error("Illegal characters found in a pattern: ".concat(t));this.getContext().instructions=this.getContext().instructions.concat(t.split(""))}}}])&&Ne(e.prototype,n),r&&Ne(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Pe(t){for(var e=[],n=0;n<t.length;){if("-"===t[n]){if(0===n||n===t.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(t));for(var r=t[n-1].charCodeAt(0)+1,i=t[n+1].charCodeAt(0)-1,a=r;a<=i;)e.push(String.fromCharCode(a)),a++}else e.push(t[n]);n++}return e}var we=/[\(\)\[\]\?\:\|]/,Se=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function Oe(t){return 1===t.length?t[0]:t}function Ae(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ee(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ke=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.matchTree=(new xe).parse(e)}var e,n,r;return e=t,n=[{key:"match",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.allowOverflow;if(!t)throw new Error("String is required");var r=Te(t.split(""),this.matchTree,!0);if(r&&r.match&&delete r.matchedChars,!r||!r.overflow||n)return r}}],n&&je(e.prototype,n),r&&je(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Te(t,e,n){if("string"==typeof e){var r=t.join("");return 0===e.indexOf(r)?t.length===e.length?{match:!0,matchedChars:t}:{partialMatch:!0}:0===r.indexOf(e)?n&&t.length>e.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var i=t.slice(),a=0;a<e.length;){var o=Te(i,e[a],n&&a===e.length-1);if(!o)return;if(o.overflow)return o;if(!o.match){if(o.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(o,null,2)))}if(0===(i=i.slice(o.matchedChars.length)).length)return a===e.length-1?{match:!0,matchedChars:t}:{partialMatch:!0};a++}return n?{overflow:!0}:{match:!0,matchedChars:t.slice(0,t.length-i.length)}}switch(e.op){case"|":for(var u,l,s=Ae(e.args);!(l=s()).done;){var c=Te(t,l.value,n);if(c){if(c.overflow)return c;if(c.match)return{match:!0,matchedChars:c.matchedChars};if(!c.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(c,null,2)));u=!0}}return u?{partialMatch:!0}:void 0;case"[]":for(var f,h=Ae(e.args);!(f=h()).done;){var g=f.value;if(t[0]===g)return 1===t.length?{match:!0,matchedChars:t}:n?{overflow:!0}:{match:!0,matchedChars:[g]}}return;default:throw new Error("Unsupported instruction tree: ".concat(e))}}var Ie=n(62354);function Fe(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return De(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return De(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function De(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ze=pe("9",15),Me=/[- ]/,_e=function(){return/\[([^\[\]])*\]/g},Ue=function(){return/\d(?=[^,}][^,}])/g},Le=new RegExp("["+E.uv+"]*\\$1["+E.uv+"]*(\\$\\d["+E.uv+"]*)*$"),$e=function(){function t(e){e.state;var n=e.metadata;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.metadata=n,this.resetFormat()}var e,n,r;return e=t,n=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(t,e){this.resetFormat(),t?(this.isNANP="1"===t.callingCode(),this.matchingFormats=t.formats(),e.nationalSignificantNumber&&this.narrowDownMatchingFormats(e)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(t,e){var n,r,i=this;if(n=e.nationalSignificantNumber,r=this.metadata,"IS_POSSIBLE"===(0,N.Z)(n,r))for(var a,o=Fe(this.matchingFormats);!(a=o()).done;){var u=a.value,l=ve(e,u,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(t){return i.shouldTryNationalPrefixFormattingRule(t,{international:e.international,nationalPrefix:e.nationalPrefix})},getSeparatorAfterNationalPrefix:function(t){return i.getSeparatorAfterNationalPrefix(t)}});if(l)return this.resetFormat(),this.chosenFormat=u,this.setNationalNumberTemplate(l.replace(/\d/g,me),e),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(me),l}return this.formatNationalNumberWithNextDigits(t,e)}},{key:"formatNationalNumberWithNextDigits",value:function(t,e){var n=this.chosenFormat,r=this.chooseFormat(e);if(r)return r===n?this.formatNextNationalNumberDigits(t):this.formatNextNationalNumberDigits(e.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(t){var e=this,n=t.nationalSignificantNumber,r=t.nationalPrefix,i=t.international,a=n,o=a.length-3;o<0&&(o=0),this.matchingFormats=this.matchingFormats.filter((function(t){return e.formatSuits(t,i,r)&&e.formatMatches(t,a,o)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(t,e,n){return!(n&&!t.usesNationalPrefix()&&!t.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!e&&!n&&t.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(t,e,n){var r=t.leadingDigitsPatterns().length;if(0===r)return!0;n=Math.min(n,r-1);var i=t.leadingDigitsPatterns()[n];if(e.length<3)try{return void 0!==new ke(i).match(e,{allowOverflow:!0})}catch(t){return console.error(t),!0}return new RegExp("^(".concat(i,")")).test(e)}},{key:"getFormatFormat",value:function(t,e){return e?t.internationalFormat():t.format()}},{key:"chooseFormat",value:function(t){for(var e,n=this,r=function(){var r=e.value;return n.chosenFormat===r?"break":Le.test(n.getFormatFormat(r,t.international))?n.createTemplateForFormat(r,t)?(n.chosenFormat=r,"break"):(n.matchingFormats=n.matchingFormats.filter((function(t){return t!==r})),"continue"):"continue"},i=Fe(this.matchingFormats.slice());!(e=i()).done;){var a=r();if("break"===a)break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(t,e){if(!(t.pattern().indexOf("|")>=0)){var n=this.getTemplateForFormat(t,e);return n?(this.setNationalNumberTemplate(n,e),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(t){return this.isNANP||t&&t.nationalPrefixFormattingRule()&&Me.test(t.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(t,e){var n=t.IDDPrefix,r=t.missingPlus;return n?e&&!1===e.spacing?n:n+" ":r?"":"+"}},{key:"getTemplate",value:function(t){if(this.template){for(var e=-1,n=0,r=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t,{spacing:!1}):"";n<r.length+t.getDigitsWithoutInternationalPrefix().length;)e=this.template.indexOf(me,e+1),n++;return ye(this.template,e+1)}}},{key:"setNationalNumberTemplate",value:function(t,e){this.nationalNumberTemplate=t,this.populatedNationalNumberTemplate=t,this.populatedNationalNumberTemplatePosition=-1,e.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(e).replace(/[\d\+]/g,me)+pe(me,e.callingCode.length)+" "+t:this.template=t}},{key:"getTemplateForFormat",value:function(t,e){var n=e.nationalSignificantNumber,r=e.international,i=e.nationalPrefix,a=e.complexPrefixBeforeNationalSignificantNumber,o=t.pattern();o=o.replace(_e(),"\\d").replace(Ue(),"\\d");var u=Ze.match(o)[0];if(!(n.length>u.length)){var l=new RegExp("^"+o+"$"),s=n.replace(/\d/g,"9");l.test(s)&&(u=s);var c,f=this.getFormatFormat(t,r);if(this.shouldTryNationalPrefixFormattingRule(t,{international:r,nationalPrefix:i})){var h=f.replace(be.i,t.nationalPrefixFormattingRule());if((0,tt.ZP)(t.nationalPrefixFormattingRule())===(i||"")+(0,tt.ZP)("$1")&&(f=h,c=!0,i))for(var g=i.length;g>0;)f=f.replace(/\d/,me),g--}var m=u.replace(new RegExp(o),f).replace(new RegExp("9","g"),me);return c||(a?m=pe(me,a.length)+" "+m:i&&(m=pe(me,i.length)+this.getSeparatorAfterNationalPrefix(t)+m)),r&&(m=(0,Ie.Z)(m)),m}}},{key:"formatNextNationalNumberDigits",value:function(t){var e=function(t,e,n){for(var r,i=he(n.split(""));!(r=i()).done;){var a=r.value;if(t.slice(e+1).search(de)<0)return;e=t.search(de),t=t.replace(de,a)}return[t,e]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,t);if(e)return this.populatedNationalNumberTemplate=e[0],this.populatedNationalNumberTemplatePosition=e[1],ye(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(t,e){var n=e.international,r=e.nationalPrefix;if(t.nationalPrefixFormattingRule()){var i=t.usesNationalPrefix();if(i&&r||!i&&!n)return!0}}}],n&&Re(e.prototype,n),r&&Re(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Be=n(13661),We=n(99471),Ve=n(5227),Ye=n(13633);function Ge(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,u=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);o=!0);}catch(t){u=!0,i=t}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ze(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ze(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function He(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Je="["+E.uv+E.xc+"]+",Xe=new RegExp("^"+Je+"$","i"),qe="(?:["+E.xy+"]["+E.uv+E.xc+"]*|["+E.uv+E.xc+"]+)",Ke=new RegExp("[^"+E.uv+E.xc+"]+.*$"),Qe=/[^\d\[\]]/,tn=function(){function t(e){var n=e.defaultCountry,r=e.defaultCallingCode,i=e.metadata,a=e.onNationalSignificantNumberChange;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}var e,n,r;return e=t,(n=[{key:"input",value:function(t,e){var n,r=function(t){var e=Ge(function(t){var e=function(t){var e,n=t.search(qe);if(!(n<0))return"+"===(t=t.slice(n))[0]&&(e=!0,t=t.slice("+".length)),t=t.replace(Ke,""),e&&(t="+"+t),t}(t)||"";return"+"===e[0]?[e.slice("+".length),!0]:[e]}(t),2),n=e[0],r=e[1];return Xe.test(n)||(n=""),[n,r]}(t),i=Ge(r,2),a=i[0],o=i[1],u=(0,tt.ZP)(a);return o&&(e.digits||(e.startInternationalNumber(),u||(n=!0))),u&&this.inputDigits(u,e),{digits:u,justLeadingPlus:n}}},{key:"inputDigits",value:function(t,e){var n=e.digits,r=n.length<3&&n.length+t.length>=3;if(e.appendDigits(t),r&&this.extractIddPrefix(e),this.isWaitingForCountryCallingCode(e)){if(!this.extractCountryCallingCode(e))return}else e.appendNationalSignificantNumberDigits(t);e.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(e.getNationalDigits(),(function(t){return e.update(t)}))}},{key:"isWaitingForCountryCallingCode",value:function(t){var e=t.international,n=t.callingCode;return e&&!n}},{key:"extractCountryCallingCode",value:function(t){var e=(0,Be.Z)("+"+t.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=e.countryCallingCode,r=e.number;if(n)return t.setCallingCode(n),t.update({nationalSignificantNumber:r}),!0}},{key:"reset",value:function(t){if(t){this.hasSelectedNumberingPlan=!0;var e=t._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=e&&Qe.test(e)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(t,e){if(this.hasSelectedNumberingPlan){var n=(0,Ve.Z)(t,this.metadata),r=n.nationalPrefix,i=n.nationalNumber,a=n.carrierCode;if(i!==t)return this.onExtractedNationalNumber(r,a,i,t,e),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(t,e,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(t,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=(0,Ve.Z)(t,this.metadata),i=r.nationalPrefix,a=r.nationalNumber,o=r.carrierCode;if(a!==e)return this.onExtractedNationalNumber(i,o,a,t,n),!0}}},{key:"onExtractedNationalNumber",value:function(t,e,n,r,i){var a,o,u=r.lastIndexOf(n);if(u>=0&&u===r.length-n.length){o=!0;var l=r.slice(0,u);l!==t&&(a=l)}i({nationalPrefix:t,carrierCode:e,nationalSignificantNumber:n,nationalSignificantNumberMatchesInput:o,complexPrefixBeforeNationalSignificantNumber:a}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(t){return!!this.extractAnotherNationalSignificantNumber(t.getNationalDigits(),t.nationalSignificantNumber,(function(e){return t.update(e)}))||(this.extractIddPrefix(t)||this.fixMissingPlus(t)?(this.extractCallingCodeAndNationalSignificantNumber(t),!0):void 0)}},{key:"extractIddPrefix",value:function(t){var e=t.international,n=t.IDDPrefix,r=t.digits;if(t.nationalSignificantNumber,!e&&!n){var i=(0,Ye.Z)(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==i&&i!==r?(t.update({IDDPrefix:r.slice(0,r.length-i.length)}),this.startInternationalNumber(t,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(t){if(!t.international){var e=(0,We.Z)(t.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=e.countryCallingCode;if(e.number,n)return t.update({missingPlus:!0}),this.startInternationalNumber(t,{country:t.country,callingCode:n}),!0}}},{key:"startInternationalNumber",value:function(t,e){var n=e.country,r=e.callingCode;t.startInternationalNumber(n,r),t.nationalSignificantNumber&&(t.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(t){this.extractCountryCallingCode(t)&&this.extractNationalSignificantNumber(t.getNationalDigits(),(function(e){return t.update(e)}))}}])&&He(e.prototype,n),r&&He(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();var en=n(40465);function nn(t){return nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(t)}function rn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,u=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);o=!0);}catch(t){u=!0,i=t}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return an(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return an(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function an(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function on(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var un=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.metadata=new C.ZP(n);var r=rn(this.getCountryAndCallingCode(e),2),i=r[0],a=r[1];this.defaultCountry=i,this.defaultCallingCode=a,this.reset()}var e,n,r;return e=t,(n=[{key:"getCountryAndCallingCode",value:function(t){var e,n;return t&&("object"===nn(t)?(e=t.defaultCountry,n=t.defaultCallingCode):e=t),e&&!this.metadata.hasCountry(e)&&(e=void 0),[e,n]}},{key:"input",value:function(t){var e=this.parser.input(t,this.state),n=e.digits;if(e.justLeadingPlus)this.formattedOutput="+";else if(n){var r;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(n,this.state)),void 0===r&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var i=this.state.getNationalDigits();i&&(r=this.formatter.format(i,this.state))}this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var t=this;return this.state=new fe({onCountryChange:function(e){t.country=e},onCallingCodeChange:function(e,n){t.metadata.selectNumberingPlan(n,e),t.formatter.reset(t.metadata.numberingPlan,t.state),t.parser.reset(t.metadata.numberingPlan)}}),this.formatter=new $e({state:this.state,metadata:this.metadata}),this.parser=new tn({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){t.determineTheCountryIfNeeded(),t.formatter.reset(t.metadata.numberingPlan,t.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){var t=this.state.country;return t}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(t){var e=this;if(this.isInternational()){var n=function(t){return e.formatter.getInternationalPrefixBeforeCountryCallingCode(e.state,{spacing:!!t})+t},r=this.state.callingCode;return n(r?t?"".concat(r," ").concat(t):r:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return t}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var t=this.state,e=t.nationalSignificantNumber,n=t.complexPrefixBeforeNationalSignificantNumber,r=t.nationalPrefix,i=e,a=n||r;return a&&(i=a+i),i}},{key:"getNonFormattedNumber",value:function(){var t=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(t?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var t=this.getNonFormattedNumber();if(t)return t.replace(/[\+\d]/g,me)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var t=this.state.callingCode,e=this.metadata.getCountryCodesForCallingCode(t);return e&&e.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry((0,en.Z)(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumberValue",value:function(){var t=this.state,e=t.digits,n=t.callingCode,r=t.country,i=t.nationalSignificantNumber;if(e)return this.isInternational()?n?"+"+n+i:"+"+e:r||n?"+"+(r?this.metadata.countryCallingCode():n)+i:void 0}},{key:"getNumber",value:function(){var t=this.state,e=t.nationalSignificantNumber,n=t.carrierCode,r=t.callingCode,i=this._getCountry();if(e&&(i||r)){var a=new A.Z(i||r,e,this.metadata.metadata);return n&&(a.carrierCode=n),a}}},{key:"isPossible",value:function(){var t=this.getNumber();return!!t&&t.isPossible()}},{key:"isValid",value:function(){var t=this.getNumber();return!!t&&t.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])&&on(e.prototype,n),r&&on(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ln(t){return un.call(this,t,le.Z)}function sn(){return(0,r.Z)(C.aS,arguments)}function cn(t){return new C.ZP(t).getCountries()}function fn(){return(0,r.Z)(cn,arguments)}function hn(){return(0,r.Z)(C.Gg,arguments)}function gn(){return(0,r.Z)(C.y9,arguments)}function mn(){return C.ZP.call(this,le.Z)}function dn(t,e,n){if(e[t])return new A.Z(t,e[t],n)}function pn(){return(0,r.Z)(dn,arguments)}function yn(t,e,n){return n||(n=e,e=void 0),new un(e,n).input(t)}function bn(){return(0,r.Z)(yn,arguments)}ln.prototype=Object.create(un.prototype,{}),ln.prototype.constructor=ln,mn.prototype=Object.create(C.ZP.prototype,{}),mn.prototype.constructor=mn;var vn=n(13955),Cn=n(457);function Nn(){var t=(0,i.b)(arguments),e=t.text,n=t.options,r=t.metadata;return(0,Ot.Z)(e,n,r)}function xn(){return(0,r.Z)(Nn,arguments)}var Pn=n(669);function wn(t){return wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(t)}function Sn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,u=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);o=!0);}catch(t){u=!0,i=t}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return On(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return On(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function On(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function An(){var t=En(arguments),e=t.input,n=t.format,r=t.options,i=t.metadata;return(0,Pn.Z)(e,n,r,i)}function En(t){var e,n,r,i,a=Sn(Array.prototype.slice.call(t),5),o=a[0],u=a[1],l=a[2],s=a[3],c=a[4];if("string"==typeof o)if("string"==typeof l)n=l,c?(r=s,i=c):i=s,e=(0,Ot.Z)(o,{defaultCountry:u,extended:!0},i);else{if("string"!=typeof u)throw new Error("`format` argument not passed to `formatNumber(number, format)`");n=u,s?(r=l,i=s):i=l,e=(0,Ot.Z)(o,{extended:!0},i)}else{if(!jn(o))throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");e=o,n=u,s?(r=l,i=s):i=l}return"International"===n?n="INTERNATIONAL":"National"===n&&(n="NATIONAL"),{input:e,format:n,options:r,metadata:i}}var jn=function(t){return"object"===wn(t)};function kn(){return(0,r.Z)(An,arguments)}var Tn=n(93345),In=n(91089);function Fn(t){return Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(t)}function Dn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,u=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);o=!0);}catch(t){u=!0,i=t}finally{try{o||null==n.return||n.return()}finally{if(u)throw i}}return a}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Rn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zn(){var t=Mn(arguments),e=t.input,n=t.options,r=t.metadata;return(0,In.Z)(e,n,r)}function Mn(t){var e,n,r=Dn(Array.prototype.slice.call(t),4),i=r[0],a=r[1],o=r[2],u=r[3],l={};if("string"==typeof i)"object"!==Fn(a)?(u?(l=o,n=u):n=o,e=(0,Tn.ZP)(i)?(0,Ot.Z)(i,{defaultCountry:a},n):{}):(o?(l=a,n=o):n=a,e=(0,Tn.ZP)(i)?(0,Ot.Z)(i,void 0,n):{});else{if(!_n(i))throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");e=i,o?(l=a,n=o):n=a}return{input:e,options:l,metadata:n}}var _n=function(t){return"object"===Fn(t)};function Un(){return(0,r.Z)(Zn,arguments)}var Ln=n(15864);function $n(){var t=Mn(arguments),e=t.input,n=t.options,r=t.metadata;return(0,Ln.Z)(e,n,r)}function Bn(){return(0,r.Z)($n,arguments)}function Wn(){var t=Mn(arguments),e=t.input,n=t.options,r=t.metadata;return(0,Q.Z)(e,n,r)}function Vn(){return(0,r.Z)(Wn,arguments)}function Yn(t,e,n){if("string"!=typeof t)throw new TypeError("number must be a string");if("string"!=typeof e)throw new TypeError("country must be a string");return function(t,e,n,r){return n=n||{},t.country===e&&(0,Q.Z)(t,n,r)}((0,Tn.ZP)(t)?(0,Ot.Z)(t,{defaultCountry:e},n):{},e,void 0,n)}function Gn(){return(0,r.Z)(Yn,arguments)}function zn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(0,j.Z)("parsing");var Hn=new RegExp("^["+E.c6+"]+"),Jn=new RegExp("["+E.uv+"]+$");function Xn(t,e,n){void 0===e&&(e={});for(var r=new Kn(t,e,n),i=[];r.hasNext();)i.push(r.next());return i}function qn(t,e,n){void 0===e&&(e={});var r,i,a,o=new Kn(t,e,n);return r={},i=Symbol.iterator,a=function(){return{next:function(){return o.hasNext()?{done:!1,value:o.next()}:{done:!0}}}},i in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}var Kn=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.text=e,this.options=n||{},this.metadata=r,this.state="NOT_READY",this.regexp=new RegExp(Tn.R1,"ig")}var e,n,r;return e=t,(n=[{key:"find",value:function(){var t=this.regexp.exec(this.text);if(t){var e=t[0],n=t.index;e=e.replace(Hn,""),n+=t[0].length-e.length,e=ht(e=e.replace(Jn,""));var r=this.parseCandidate(e,n);return r||this.find()}}},{key:"parseCandidate",value:function(t,e){if(pt(t,e,this.text)&&St(t,e,this.text,this.options.extended?"POSSIBLE":"VALID")){var n=(0,Ot.Z)(t,this.options,this.metadata);if(n.phone)return n.startsAt=e,n.endsAt=e+t.length,n}}},{key:"hasNext",value:function(){return"NOT_READY"===this.state&&(this.last_match=this.find(),this.last_match?this.state="READY":this.state="DONE"),"READY"===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var t=this.last_match;return this.last_match=null,this.state="NOT_READY",t}}])&&zn(e.prototype,n),r&&zn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Qn(){var t=(0,i.b)(arguments),e=t.text,n=t.options,r=t.metadata;return Xn(e,n,r)}function tr(){var t=(0,i.b)(arguments),e=t.text,n=t.options,r=t.metadata;return qn(e,n,r)}function er(){return(0,r.Z)(Qn,arguments)}function nr(){return(0,r.Z)(tr,arguments)}function rr(t,e){Kn.call(this,t,e,le.Z)}rr.prototype=Object.create(Kn.prototype,{}),rr.prototype.constructor=rr}}]);
|