@modul/mbui 1.6.7-beta-dev-33b4819b → 1.6.7-beta-dev-8075b95d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -397,7 +397,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
397
397
|
font-medium
|
|
398
398
|
focus:outline-none
|
|
399
399
|
focus-within:outline-none
|
|
400
|
-
`;r.InputMaskWidget=c.default.forwardRef(function(t,r){var n=t.label,i=t.error,o=t.leftElement,u=t.rightElement,p=t.className,g=t.wrapperClassName,b=t.bottomElement,y=function(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,a);return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:(0,l.cn)(m,g)},c.default.createElement(f.InputLabel,{className:(0,l.cn)({"text-critical":i}),htmlFor:y.id||y.name},n),c.default.createElement("div",{className:"flex items-center mt-4"},o,c.default.createElement("div",{className:"grow"},c.default.createElement(d.IMaskInput,s(s({},y),{},{ref:r,className:(0,l.cn)(h,p),"aria-describedby":i?"".concat(y.id||y.name,"-help-text"):void 0})),b),u)),i&&c.default.createElement("p",{id:"".concat(y.id||y.name,"-help-text"),className:"ml-4 mt-2 text-[12px] text-critical"},i))}),r.InputMaskWidget.displayName="InputMaskWidget"},56180:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}var a=["className","classNames","showOutsideDays","disabled"];function o(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}Object.defineProperty(r,"__esModule",{value:!0}),r.Calendar=void 0;var u=n(31635),l=(0,u.__importStar)(n(54953)),c=n(98205),d=n(18559),f=(0,u.__importDefault)(n(95623)),m="opacity-50 hover:opacity-100 ring-offset-2 focus-visible:opacity-100 focus-visible:outline-primary border-input border rounded-sm shadow-sm";function h(t){var r=t.className,n=t.classNames,i=t.showOutsideDays,o=t.disabled,u=function(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,a);return l.createElement(c.DayPicker,s({locale:f.default,showOutsideDays:void 0===i||i,disabled:o,className:(0,d.cn)("inline-flex",r),classNames:s({months:"relative",month:"flex flex-col space-y-[16px] items-center",month_grid:"w-full border-collapse",month_caption:"inline m-x-auto",caption_label:"text-sm font-medium capitalize",nav:"flex justify-between absolute start-0 end-0",button_previous:m,button_next:m,weekdays:"flex",weekday:"text-light w-[32px] font-normal text-[14px]",week:"flex w-full mt-2",day_button:"w-[32px] h-[32px] p-0",day:(0,d.cn)("aria-selected:opacity-100 text-[14px] leading-[1]","range"===u.mode?"[&:(.day-range-middle)]:rounded-0 [&:has(>.day-range-end)]:rounded-r-sm [&:has(>.day-range-start)]:rounded-l-sm first:[&:has([aria-selected])]:rounded-l-sm last:[&:has([aria-selected])]:rounded-r-sm":"[&:([aria-selected])]:rounded-sm"),range_start:"day-range-start",range_end:"day-range-end",range_middle:"date-range-middle aria-selected:bg-btn-primary/50 aria-selected:text-white",selected:"bg-btn-primary text-btn-primary rounded-sm",today:"bg-btn-secondary text-btn-secondary rounded-sm",outside:"day-outside opacity-50 aria-selected:bg-primary aria-selected:text-[white] aria-selected:opacity-30",disabled:"text-light opacity-50",hidden:"invisible"},n),components:{}},u))}r.Calendar=h,h.displayName="Calendar"},56355:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DatePickerValue=r.RangeDate=r.SingleDate=r.DatePlaceholder=void 0;var i=(0,n(31635).__importDefault)(n(54953)),a=n(93718),o=n(16016),s=n(17131);r.DatePlaceholder=function(t){var r=t.placeholder;return i.default.createElement("span",{className:"w-[calc(100%-26px)] text-light truncate"},r)},r.SingleDate=function(t){var r=t.date,n=t.dateFormat;return i.default.createElement("span",{className:"w-[calc(100%-26px)] truncate"},(0,a.format)(r,n,{locale:o.ru}))},r.RangeDate=function(t){var r=t.date,n=t.dateFormat;return i.default.createElement("span",{className:"flex items-center w-[calc(100%-26px)]"},i.default.createElement("span",{className:"truncate"},(null==r?void 0:r.from)&&(0,a.format)(r.from,n,{locale:o.ru})),i.default.createElement("span",{className:"mx-2"},"-"),i.default.createElement("span",{className:"truncate"},(null==r?void 0:r.to)&&(0,a.format)(r.to,n,{locale:o.ru})))},r.DatePickerValue=function(t){var n=t.mode,a=t.selected,o=t.dateFormat,u=t.placeholder;return i.default.createElement(i.default.Fragment,null,"single"===n&&a&&i.default.createElement(r.SingleDate,{date:a,dateFormat:o}),"range"===n&&a&&i.default.createElement(r.RangeDate,{date:a,dateFormat:o}),!a&&i.default.createElement(r.DatePlaceholder,{placeholder:u}),i.default.createElement(s.Calendar,{width:18,height:18,className:"ml-auto text-light shrink-0"}))}},56490:(t,r,n)=>{"use strict";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of s(r))l.call(t,u)||u===n||a(t,u,{get:()=>r[u],enumerable:!(i=o(r,u))||i.enumerable});return t},d={};((t,r)=>{for(var n in r)a(t,n,{get:r[n],enumerable:!0})})(d,{Root:()=>g,Slot:()=>g,Slottable:()=>v,createSlot:()=>p,createSlottable:()=>y}),t.exports=c(a({},"__esModule",{value:!0}),d);var f=((t,r,n)=>(n=null!=t?i(u(t)):{},c(!r&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)))(n(54953)),m=n(1969),h=n(74848);function p(t){let r=function(t){let r=f.forwardRef((t,r)=>{let{children:n,...i}=t;if(f.isValidElement(n)){var a;let t,o,s=(a=n,(o=(t=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?a.ref:(o=(t=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(t,r){let n={...r};for(let i in r){let a=t[i],o=r[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...t)=>{let r=o(...t);return a(...t),r}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...t,...n}}(i,n.props);return n.type!==f.Fragment&&(u.ref=r?(0,m.composeRefs)(r,s):s),f.cloneElement(n,u)}return f.Children.count(n)>1?f.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}(t),n=f.forwardRef((t,n)=>{let{children:i,...a}=t,o=f.Children.toArray(i),s=o.find(M);if(s){let t=s.props.children,i=o.map(r=>r!==s?r:f.Children.count(t)>1?f.Children.only(null):f.isValidElement(t)?t.props.children:null);return(0,h.jsx)(r,{...a,ref:n,children:f.isValidElement(t)?f.cloneElement(t,void 0,i):null})}return(0,h.jsx)(r,{...a,ref:n,children:i})});return n.displayName=`${t}.Slot`,n}var g=p("Slot"),b=Symbol("radix.slottable");function y(t){let r=({children:t})=>(0,h.jsx)(h.Fragment,{children:t});return r.displayName=`${t}.Slottable`,r.__radixId=b,r}var v=y("Slottable");function M(t){return f.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===b}},56595:(t,r,n)=>{"use strict";r.previousDay=function(t,r,n){let o=(0,i.getDay)(t,n)-r;return o<=0&&(o+=7),(0,a.subDays)(t,o,n)};var i=n(77166),a=n(92999)},56612:(t,r,n)=>{"use strict";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of s(r))l.call(t,u)||u===n||a(t,u,{get:()=>r[u],enumerable:!(i=o(r,u))||i.enumerable});return t},d={};((t,r)=>{for(var n in r)a(t,n,{get:r[n],enumerable:!0})})(d,{Root:()=>v,Slot:()=>p,Slottable:()=>b}),t.exports=c(a({},"__esModule",{value:!0}),d);var f=((t,r,n)=>(n=null!=t?i(u(t)):{},c(!r&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)))(n(54953)),m=n(10207),h=n(74848),p=f.forwardRef((t,r)=>{let{children:n,...i}=t,a=f.Children.toArray(n),o=a.find(y);if(o){let t=o.props.children,n=a.map(r=>r!==o?r:f.Children.count(t)>1?f.Children.only(null):f.isValidElement(t)?t.props.children:null);return(0,h.jsx)(g,{...i,ref:r,children:f.isValidElement(t)?f.cloneElement(t,void 0,n):null})}return(0,h.jsx)(g,{...i,ref:r,children:n})});p.displayName="Slot";var g=f.forwardRef((t,r)=>{let{children:n,...i}=t;if(f.isValidElement(n)){let t=function(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref}(n);return f.cloneElement(n,{...function(t,r){let n={...r};for(let i in r){let a=t[i],o=r[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...t)=>{o(...t),a(...t)}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...t,...n}}(i,n.props),ref:r?(0,m.composeRefs)(r,t):t})}return f.Children.count(n)>1?f.Children.only(null):null});g.displayName="SlotClone";var b=({children:t})=>(0,h.jsx)(h.Fragment,{children:t});function y(t){return f.isValidElement(t)&&t.type===b}var v=p},56766:(t,r,n)=>{"use strict";t.exports=n.p+"assets/images/bankcards/maod2.svg"},56826:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ServicePricing=r.StickyFooter=r.ListItem=r.List=r.ProgressBarWidget=r.Consultation=r.ReliabilityIndicators=r.CheckingCounterparty=r.Hero=r.PageNavbar=r.WhiteBusinessPage=void 0;var i=(0,n(31635).__importDefault)(n(54953)),a=n(18559),o=`
|
|
400
|
+
`;r.InputMaskWidget=c.default.forwardRef(function(t,r){var n=t.label,i=t.error,o=t.leftElement,u=t.rightElement,p=t.className,g=t.wrapperClassName,b=t.bottomElement,y=function(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,a);return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:(0,l.cn)(m,g)},c.default.createElement(f.InputLabel,{className:(0,l.cn)({"text-critical":i}),htmlFor:y.id||y.name},n),c.default.createElement("div",{className:"flex items-center mt-4"},o,c.default.createElement("div",{className:"grow"},c.default.createElement(d.IMaskInput,s(s({},y),{},{ref:r,className:(0,l.cn)(h,p),"aria-describedby":i?"".concat(y.id||y.name,"-help-text"):void 0})),b),u)),i&&c.default.createElement("p",{id:"".concat(y.id||y.name,"-help-text"),className:"ml-4 mt-2 text-[12px] text-critical"},i))}),r.InputMaskWidget.displayName="InputMaskWidget"},56180:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}var a=["className","classNames","showOutsideDays","disabled"];function o(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}Object.defineProperty(r,"__esModule",{value:!0}),r.Calendar=void 0;var u=n(31635),l=(0,u.__importStar)(n(54953)),c=n(98205),d=n(18559),f=(0,u.__importDefault)(n(95623)),m="opacity-50 hover:opacity-100 ring-offset-2 focus-visible:opacity-100 focus-visible:outline-primary border-input border rounded-sm shadow-sm";function h(t){var r=t.className,n=t.classNames,i=t.showOutsideDays,o=t.disabled,u=function(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,a);return l.createElement(c.DayPicker,s({locale:f.default,showOutsideDays:void 0===i||i,disabled:o,className:(0,d.cn)("inline-flex",r),classNames:s({months:"relative",month:"flex flex-col space-y-[16px] items-center",month_grid:"w-full border-collapse",month_caption:"inline m-x-auto",caption_label:"text-sm font-medium capitalize",nav:"flex justify-between absolute start-0 end-0",button_previous:m,button_next:m,weekdays:"flex",weekday:"text-light w-[32px] font-normal text-[14px]",week:"flex w-full mt-2",day_button:"w-[32px] h-[32px] p-0",day:(0,d.cn)("aria-selected:opacity-100 text-[14px] leading-[1]","range"===u.mode?"[&:(.day-range-middle)]:rounded-0 [&:has(>.day-range-end)]:rounded-r-sm [&:has(>.day-range-start)]:rounded-l-sm first:[&:has([aria-selected])]:rounded-l-sm last:[&:has([aria-selected])]:rounded-r-sm":"[&:([aria-selected])]:rounded-sm"),range_start:"day-range-start",range_end:"day-range-end",range_middle:"date-range-middle aria-selected:bg-btn-primary/50 aria-selected:text-white",selected:"bg-btn-primary text-btn-primary rounded-sm",today:"bg-btn-secondary text-btn-secondary rounded-sm",outside:"day-outside opacity-50 aria-selected:bg-primary aria-selected:text-[white] aria-selected:opacity-30",disabled:"text-light opacity-50",hidden:"invisible"},n),components:{}},u))}r.Calendar=h,h.displayName="Calendar"},56355:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DatePickerValue=r.RangeDate=r.SingleDate=r.DatePlaceholder=void 0;var i=(0,n(31635).__importDefault)(n(54953)),a=n(93718),o=n(16016),s=n(17131);r.DatePlaceholder=function(t){var r=t.placeholder;return i.default.createElement("span",{className:"w-[calc(100%-26px)] text-light truncate"},r)},r.SingleDate=function(t){var r=t.date,n=t.dateFormat;return i.default.createElement("span",{className:"w-[calc(100%-26px)] truncate"},(0,a.format)(r,n,{locale:o.ru}))},r.RangeDate=function(t){var r=t.date,n=t.dateFormat;return i.default.createElement("span",{className:"flex items-center w-[calc(100%-26px)]"},i.default.createElement("span",{className:"truncate"},(null==r?void 0:r.from)&&(0,a.format)(r.from,n,{locale:o.ru})),i.default.createElement("span",{className:"mx-2"},"-"),i.default.createElement("span",{className:"truncate"},(null==r?void 0:r.to)&&(0,a.format)(r.to,n,{locale:o.ru})))},r.DatePickerValue=function(t){var n=t.mode,a=t.selected,o=t.dateFormat,u=t.placeholder;return i.default.createElement(i.default.Fragment,null,"single"===n&&a&&i.default.createElement(r.SingleDate,{date:a,dateFormat:o}),"range"===n&&a&&i.default.createElement(r.RangeDate,{date:a,dateFormat:o}),!a&&i.default.createElement(r.DatePlaceholder,{placeholder:u}),i.default.createElement(s.Calendar,{className:"ml-auto text-light shrink-0"}))}},56490:(t,r,n)=>{"use strict";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of s(r))l.call(t,u)||u===n||a(t,u,{get:()=>r[u],enumerable:!(i=o(r,u))||i.enumerable});return t},d={};((t,r)=>{for(var n in r)a(t,n,{get:r[n],enumerable:!0})})(d,{Root:()=>g,Slot:()=>g,Slottable:()=>v,createSlot:()=>p,createSlottable:()=>y}),t.exports=c(a({},"__esModule",{value:!0}),d);var f=((t,r,n)=>(n=null!=t?i(u(t)):{},c(!r&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)))(n(54953)),m=n(1969),h=n(74848);function p(t){let r=function(t){let r=f.forwardRef((t,r)=>{let{children:n,...i}=t;if(f.isValidElement(n)){var a;let t,o,s=(a=n,(o=(t=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?a.ref:(o=(t=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(t,r){let n={...r};for(let i in r){let a=t[i],o=r[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...t)=>{let r=o(...t);return a(...t),r}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...t,...n}}(i,n.props);return n.type!==f.Fragment&&(u.ref=r?(0,m.composeRefs)(r,s):s),f.cloneElement(n,u)}return f.Children.count(n)>1?f.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}(t),n=f.forwardRef((t,n)=>{let{children:i,...a}=t,o=f.Children.toArray(i),s=o.find(M);if(s){let t=s.props.children,i=o.map(r=>r!==s?r:f.Children.count(t)>1?f.Children.only(null):f.isValidElement(t)?t.props.children:null);return(0,h.jsx)(r,{...a,ref:n,children:f.isValidElement(t)?f.cloneElement(t,void 0,i):null})}return(0,h.jsx)(r,{...a,ref:n,children:i})});return n.displayName=`${t}.Slot`,n}var g=p("Slot"),b=Symbol("radix.slottable");function y(t){let r=({children:t})=>(0,h.jsx)(h.Fragment,{children:t});return r.displayName=`${t}.Slottable`,r.__radixId=b,r}var v=y("Slottable");function M(t){return f.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===b}},56595:(t,r,n)=>{"use strict";r.previousDay=function(t,r,n){let o=(0,i.getDay)(t,n)-r;return o<=0&&(o+=7),(0,a.subDays)(t,o,n)};var i=n(77166),a=n(92999)},56612:(t,r,n)=>{"use strict";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of s(r))l.call(t,u)||u===n||a(t,u,{get:()=>r[u],enumerable:!(i=o(r,u))||i.enumerable});return t},d={};((t,r)=>{for(var n in r)a(t,n,{get:r[n],enumerable:!0})})(d,{Root:()=>v,Slot:()=>p,Slottable:()=>b}),t.exports=c(a({},"__esModule",{value:!0}),d);var f=((t,r,n)=>(n=null!=t?i(u(t)):{},c(!r&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)))(n(54953)),m=n(10207),h=n(74848),p=f.forwardRef((t,r)=>{let{children:n,...i}=t,a=f.Children.toArray(n),o=a.find(y);if(o){let t=o.props.children,n=a.map(r=>r!==o?r:f.Children.count(t)>1?f.Children.only(null):f.isValidElement(t)?t.props.children:null);return(0,h.jsx)(g,{...i,ref:r,children:f.isValidElement(t)?f.cloneElement(t,void 0,n):null})}return(0,h.jsx)(g,{...i,ref:r,children:n})});p.displayName="Slot";var g=f.forwardRef((t,r)=>{let{children:n,...i}=t;if(f.isValidElement(n)){let t=function(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref}(n);return f.cloneElement(n,{...function(t,r){let n={...r};for(let i in r){let a=t[i],o=r[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...t)=>{o(...t),a(...t)}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...t,...n}}(i,n.props),ref:r?(0,m.composeRefs)(r,t):t})}return f.Children.count(n)>1?f.Children.only(null):null});g.displayName="SlotClone";var b=({children:t})=>(0,h.jsx)(h.Fragment,{children:t});function y(t){return f.isValidElement(t)&&t.type===b}var v=p},56766:(t,r,n)=>{"use strict";t.exports=n.p+"assets/images/bankcards/maod2.svg"},56826:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ServicePricing=r.StickyFooter=r.ListItem=r.List=r.ProgressBarWidget=r.Consultation=r.ReliabilityIndicators=r.CheckingCounterparty=r.Hero=r.PageNavbar=r.WhiteBusinessPage=void 0;var i=(0,n(31635).__importDefault)(n(54953)),a=n(18559),o=`
|
|
401
401
|
flex
|
|
402
402
|
flex-col
|
|
403
403
|
container
|
|
@@ -622,21 +622,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
622
622
|
`,h=function(t){return l.default.createElement("button",u(u({className:(0,d.cn)(f)},t),{},{"aria-label":"Увеличить",type:"button"}),l.default.createElement(c.Plus,{className:"text-inherit","aria-hidden":!0}))},p=function(t){return l.default.createElement("button",u(u({className:(0,d.cn)(f)},t),{},{"aria-label":"Уменьшить",type:"button"}),l.default.createElement(c.MinusShort,{className:"text-inherit","aria-hidden":!0}))};r.Counter=(0,l.forwardRef)(function(t,r){var n,a=t.min,s=void 0===a?0:a,c=t.max,f=void 0===c?99:c,g=t.value,b=t.defaultValue,y=t.readOnly,v=t.onChange,M=t.wrapperCSS,j=function(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,i),A=function(t){if(Array.isArray(t))return t}(n=(0,l.useState)(function(){var t;return null!=(t=null!=g?g:b)?t:Number(s)}))||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,a,o,s,u=[],l=!0,c=!1;try{o=(n=n.call(t)).next,!1;for(;!(l=(i=o.call(n)).done)&&(u.push(i.value),u.length!==r);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return u}}(n,2)||function(t,r){if(t){if("string"==typeof t)return o(t,2);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,r):void 0}}(n,2)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
623
623
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),w=A[0],I=A[1];(0,l.useEffect)(function(){g&&I(g)},[g]);var S=void 0!==g?g:w,P=(0,l.useCallback)(function(t){var r=Math.min(Math.max(t,Number(s)),Number(f));void 0===g&&I(r),null==v||v({target:{value:String(r)}})},[s,f,g,v]);return l.default.createElement("div",{className:(0,d.cn)("inline-flex h-10",M)},l.default.createElement(p,{disabled:S===s,onClick:function(t){t.stopPropagation(),P(S-1)}}),l.default.createElement("input",u({className:(0,d.cn)(m),type:"number",autoComplete:"off",ref:r,readOnly:void 0===y||y,value:S,onChange:function(t){P(Number(t.target.value))},min:s,max:f},j)),l.default.createElement(h,{disabled:S===f,onClick:function(t){t.stopPropagation(),P(S+1)}}))})},96399:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.labelYearDropdown=function(t){return"Choose the Year"}},96524:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}function a(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}Object.defineProperty(r,"__esModule",{value:!0});var o=(0,n(31635).__importStar)(n(54953)),s=n(47716);r.default=function(t){return o.createElement(s.SvgIcon,function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),o.createElement("path",{d:"M10.96 15a1.2 1.2 0 0 1 1.64-.43l1.21.7a3.6 3.6 0 0 1 1.79 3.11v2.02a2.4 2.4 0 0 1-2.4 2.4H3.6a2.4 2.4 0 0 1-2.4-2.4v-2.02c0-1.27.68-2.46 1.79-3.1l1.21-.71a1.2 1.2 0 0 1 1.64.43c.34.58.15 1.3-.43 1.64l-1.21.71c-.37.2-.6.61-.6 1.03v2.02h9.6v-2.02c0-.42-.23-.81-.6-1.03l-1.21-.7a1.2 1.2 0 0 1-.43-1.65Zm7.2 0a1.2 1.2 0 0 1 1.64-.43l1.21.7a3.6 3.6 0 0 1 1.79 3.11v2.02a2.4 2.4 0 0 1-2.4 2.4h-1.13a1.2 1.2 0 0 1-1.2-1.2c0-.66.54-1.2 1.2-1.2h1.13v-2.02c0-.42-.23-.81-.6-1.03l-1.21-.7a1.2 1.2 0 0 1-.43-1.65ZM8.4 2.4c2.39 0 4.8 1.51 4.8 4.87 0 3.33-2.11 5.93-4.8 5.93s-4.8-2.6-4.8-5.93C3.6 3.9 6.01 2.4 8.4 2.4Zm7.2 0c2.39 0 4.8 1.5 4.8 4.87 0 3.33-2.11 5.93-4.8 5.93a1.2 1.2 0 0 1-1.2-1.2c0-.66.54-1.2 1.2-1.2 1.49 0 2.4-1.84 2.4-3.53 0-2.15-1.5-2.47-2.4-2.47a1.2 1.2 0 0 1-1.2-1.2c0-.66.54-1.2 1.2-1.2ZM8.4 4.8c-.9 0-2.4.32-2.4 2.47 0 1.7.91 3.53 2.4 3.53 1.49 0 2.4-1.82 2.4-3.53 0-2.15-1.5-2.47-2.4-2.47Z",fill:"currentColor"}))}},96629:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}var a=["balance","cur","account"];function o(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}Object.defineProperty(r,"__esModule",{value:!0}),r.OptionAccount=void 0;var s=(0,n(31635).__importDefault)(n(54953)),u=n(50422),l=n(54589),c=function(t){var r=t.balance,n=t.cur,c=t.account,d=function(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,a),f=r&&n?s.default.createElement(s.default.Fragment,null,r," ",s.default.createElement(l.CurrencySymbol,{value:n})):void 0;return s.default.createElement(u.Option,function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}({rightLabel:f,secondLabel:c||void 0},d))};r.OptionAccount=c,c.displayName="OptionAccount"},96710:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},96799:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}function a(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}Object.defineProperty(r,"__esModule",{value:!0});var o=(0,n(31635).__importStar)(n(54953)),s=n(47716);r.default=function(t){return o.createElement(s.SvgIcon,function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),o.createElement("path",{fill:"currentColor",d:"m16.8 6c.66 0 1.2.54 1.2 1.2s-.54 1.2-1.2 1.2a1.2 1.2 0 0 1 -1.2-1.2c0-.66.54-1.2 1.2-1.2zm-8.4 15.6v-1.2h1.2c.66 0 1.2-.54 1.2-1.2v-1.2h1.2c.66 0 1.2-.54 1.2-1.2v-1.62a7.2 7.2 0 1 0 -4.67-5.39l-6.63 6.61c-.46.46-.7 1.06-.7 1.7v2.3a2.4 2.4 0 0 0 2.4 2.4h3.6c.66 0 1.2-.54 1.2-1.2zm2.32-10.58c.3-.32.43-.78.3-1.2a4.8 4.8 0 1 1 2.3 2.8 1.2 1.2 0 0 0 -1.42.18l-.74.74c-.23.22-.36.54-.36.85v1.2h-1.2c-.66 0-1.2.54-1.2 1.2v1.2h-1.2c-.66 0-1.2.54-1.2 1.2v1.2h-2.4v-2.3z"}))}},96936:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}function a(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}Object.defineProperty(r,"__esModule",{value:!0});var o=(0,n(31635).__importStar)(n(54953)),s=n(47716);r.default=function(t){return o.createElement(s.SvgIcon,function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),o.createElement("path",{d:"m18.46 2.4c.9 0 1.74.52 2.14 1.33l2.07 4.14c.08.17.13.35.13.54 0 1.05-.47 2-1.2 2.66v8.13a2.4 2.4 0 0 1 -2.4 2.4h-4.8a1.2 1.2 0 0 1 -1.2-1.2v-3.6h-2.4v3.6c0 .66-.54 1.2-1.2 1.2h-4.8a2.4 2.4 0 0 1 -2.4-2.4v-8.13a3.58 3.58 0 0 1 -1.2-2.66c0-.2.05-.37.13-.54l2.07-4.14a2.38 2.38 0 0 1 2.14-1.33zm-1.66 8.67a3.57 3.57 0 0 1 -4.8.01 3.56 3.56 0 0 1 -4.8-.01c-.64.58-1.48.94-2.4.94v7.2h3.6v-3.6c0-.67.54-1.2 1.2-1.2h4.8c.66 0 1.2.53 1.2 1.2v3.6h3.6v-7.21c-.92 0-1.76-.36-2.4-.94zm-11.26-6.26-1.92 3.84a1.2 1.2 0 0 0 2.38-.12l.02-.24a1.2 1.2 0 0 1 2.4.12c-.01.66.53 1.2 1.19 1.2s1.2-.54 1.2-1.2.54-1.2 1.2-1.2 1.2.54 1.2 1.2.54 1.2 1.2 1.2 1.2-.54 1.2-1.2a1.2 1.2 0 0 1 2.4-.12v.24c.07.6.58 1.08 1.2 1.08.58 0 1.07-.41 1.18-.96l-1.93-3.85h-12.92z",fill:"currentColor"}))}},97140:(t,r,n)=>{"use strict";r.getISOWeeksInYear=function(t,r){let n=(0,o.startOfISOWeekYear)(t,r);return Math.round(((0,o.startOfISOWeekYear)((0,i.addWeeks)(n,60))-n)/a.millisecondsInWeek)};var i=n(97460),a=n(11179),o=n(40737)},97145:(t,r,n)=>{"use strict";r.differenceInMonths=function(t,r,n){let[u,l,c]=(0,i.normalizeDates)(n?.in,t,t,r),d=(0,a.compareAsc)(l,c),f=Math.abs((0,o.differenceInCalendarMonths)(l,c));if(f<1)return 0;1===l.getMonth()&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-d*f);let m=(0,a.compareAsc)(l,c)===-d;(0,s.isLastDayOfMonth)(u)&&1===f&&1===(0,a.compareAsc)(u,c)&&(m=!1);let h=d*(f-m);return 0===h?0:h};var i=n(21779),a=n(57100),o=n(98479),s=n(43617)},97193:(t,r,n)=>{"use strict";n.d(r,{B1:()=>N,C0:()=>p,DD:()=>a,Dz:()=>M,Jx:()=>c,LI:()=>u,PG:()=>b,RI:()=>l,Sg:()=>g,T9:()=>s,TV:()=>v,WJ:()=>A,_3:()=>h,aD:()=>w,bV:()=>S,jk:()=>o,lP:()=>I,nI:()=>P,qE:()=>m,r_:()=>i,sq:()=>y,w7:()=>j});let i=["top","right","bottom","left"],a=i.reduce((t,r)=>t.concat(r,r+"-start",r+"-end"),[]),o=Math.min,s=Math.max,u=Math.round,l=Math.floor,c=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function m(t,r,n){return s(t,o(r,n))}function h(t,r){return"function"==typeof t?t(r):t}function p(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function b(t){return"x"===t?"y":"x"}function y(t){return"y"===t?"height":"width"}function v(t){return["top","bottom"].includes(p(t))?"y":"x"}function M(t){return b(v(t))}function j(t,r,n){void 0===n&&(n=!1);let i=g(t),a=M(t),o=y(a),s="x"===a?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return r.reference[o]>r.floating[o]&&(s=S(s)),[s,S(s)]}function A(t){let r=S(t);return[w(t),r,w(r)]}function w(t){return t.replace(/start|end/g,t=>f[t])}function I(t,r,n,i){let a=g(t),o=function(t,r,n){let i=["left","right"],a=["right","left"];switch(t){case"top":case"bottom":if(n)return r?a:i;return r?i:a;case"left":case"right":return r?["top","bottom"]:["bottom","top"];default:return[]}}(p(t),"start"===n,i);return a&&(o=o.map(t=>t+"-"+a),r&&(o=o.concat(o.map(w)))),o}function S(t){return t.replace(/left|right|bottom|top/g,t=>d[t])}function P(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function N(t){let{x:r,y:n,width:i,height:a}=t;return{width:i,height:a,top:n,left:r,right:r+i,bottom:n+a,x:r,y:n}}},97241:(t,r,n)=>{"use strict";r.minutesToHours=function(t){return Math.trunc(t/i.minutesInHour)};var i=n(11179)},97460:(t,r,n)=>{"use strict";r.addWeeks=function(t,r,n){return(0,i.addDays)(t,7*r,n)};var i=n(82832)},97497:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},97693:(t,r,n)=>{"use strict";r.DateParser=void 0;var i=n(45414),a=n(9262),o=n(34850);let s=[31,28,31,30,31,30,31,31,30,31,30,31],u=[31,29,31,30,31,30,31,31,30,31,30,31];class l extends a.Parser{priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return(0,o.parseNumericPattern)(i.numericPatterns.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return(0,o.parseNDigits)(r.length,t)}}validate(t,r){let n=t.getFullYear(),i=(0,o.isLeapYearIndex)(n),a=t.getMonth();return i?r>=1&&r<=u[a]:r>=1&&r<=s[a]}set(t,r,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}r.DateParser=l},97702:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isMatch=void 0,r.dateMatchModifiers=s;let i=n(34521),a=n(34003),o=n(24681);function s(t,r,n=i.defaultDateLib){let u=Array.isArray(r)?r:[r],{isSameDay:l,differenceInCalendarDays:c,isAfter:d}=n;return u.some(r=>{if("boolean"==typeof r)return r;if(n.isDate(r))return l(t,r);if((0,o.isDatesArray)(r,n))return r.includes(t);if((0,o.isDateRange)(r))return(0,a.rangeIncludesDate)(r,t,!1,n);if((0,o.isDayOfWeekType)(r))return Array.isArray(r.dayOfWeek)?r.dayOfWeek.includes(t.getDay()):r.dayOfWeek===t.getDay();if((0,o.isDateInterval)(r)){let n=c(r.before,t),i=c(r.after,t),a=n>0,o=i<0;return d(r.before,r.after)?o&&a:a||o}return(0,o.isDateAfterType)(r)?c(t,r.after)>0:(0,o.isDateBeforeType)(r)?c(r.before,t)>0:"function"==typeof r&&r(t)})}r.isMatch=s},97790:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}var a=["className"],o=["className"],s=["className","variant","type","children"];function u(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function l(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?u(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function c(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}Object.defineProperty(r,"__esModule",{value:!0}),r.Alert=void 0;var d=(0,n(31635).__importStar)(n(54953)),f=n(18559),m=n(17131),h="[&+div]:ml-2 shrink-0",p={info:d.createElement(m.InfoSolid,{"aria-hidden":!0,className:(0,f.cn)(h,"text-primary"),width:24,height:24}),warning:d.createElement(m.Warning,{"aria-hidden":!0,className:(0,f.cn)(h,"text-warning"),width:24,height:24}),success:d.createElement(m.CheckCircleSolid,{"aria-hidden":!0,className:(0,f.cn)(h,"text-success"),width:24,height:24}),critical:d.createElement(m.InfoSolid,{"aria-hidden":!0,className:(0,f.cn)(h,"text-critical"),width:24,height:24})},g=d.forwardRef(function(t,r){var n=t.className,i=c(t,a);return d.createElement("div",l({role:"heading",ref:r,className:(0,f.cn)("text-[14px] font-medium",n)},i))}),b=d.forwardRef(function(t,r){var n=t.className,i=c(t,o);return d.createElement("p",l({ref:r,className:(0,f.cn)("text-[14px] [&>a]:text-primary [&>a]:underline",n)},i))}),y=function(t,r){var n="px-2 py-4 border rounded-md ";return({info:"".concat("text"!==r?"".concat(n," bg-primary-light border-[--cl-blue-6]"):"text-primary"),warning:"".concat("text"!==r?"".concat(n," bg-warning-light border-[--cl-orange-6]"):"text-warning"),success:"".concat("text"!==r?"".concat(n," bg-success-light border-[--cl-green-6]"):"text-success"),critical:"".concat("text"!==r?"".concat(n," bg-critical-light border-[--cl-red-6]"):"text-critical")})[t]},v=function(t){var r=t.className,n=t.variant,i=void 0===n?"info":n,a=t.type,o=t.children,u=c(t,s);return d.createElement("div",l({className:(0,f.cn)("flex",y(i,a),r),role:"alert"},u),p[i],d.createElement("div",{className:"pt-[2px]"},o))};r.Alert=v,v.displayName="Alert",v.Title=g,v.Title.displayName="Alert.Title",v.Description=b,v.Description.displayName="Alert.Description"},97799:(t,r,n)=>{"use strict";r.isSameMonth=function(t,r,n){let[a,o]=(0,i.normalizeDates)(n?.in,t,r);return a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()};var i=n(21779)},97812:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}var a=["className"],o=["className"],s=["className"],u=["className","children"];function l(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function c(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function d(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?c(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function f(t){if(null==t)throw TypeError("Cannot destructure "+t)}Object.defineProperty(r,"__esModule",{value:!0}),r.FormField=r.FormMessage=r.FormDescription=r.FormControl=r.FormLabel=r.FormItem=r.Form=r.useFormField=void 0;var m=(0,n(31635).__importStar)(n(54953)),h=n(56612),p=n(90330),g=n(18559),b=n(54404);r.Form=p.FormProvider;var y=m.createContext({});r.FormField=function(t){var r=Object.assign({},(f(t),t));return m.createElement(y.Provider,{value:{name:r.name}},m.createElement(p.Controller,d({},r)))};var v=function(){var t=m.useContext(y),r=m.useContext(M),n=(0,p.useFormContext)(),i=n.getFieldState,a=n.formState,o=i(t.name,a);if(!t)throw Error("useFormField should be used within <FormField>");var s=r.id;return d({id:s,name:t.name,formItemId:"".concat(s,"-form-item"),formDescriptionId:"".concat(s,"-form-item-description"),formMessageId:"".concat(s,"-form-item-message")},o)};r.useFormField=v;var M=m.createContext({}),j=m.forwardRef(function(t,r){var n=t.className,i=l(t,a),o=m.useId();return m.createElement(M.Provider,{value:{id:o}},m.createElement("div",d({ref:r,className:(0,g.cn)("space-y-2",n)},i)))});r.FormItem=j,j.displayName="FormItem";var A=m.forwardRef(function(t,r){var n=t.className,i=l(t,o),a=v(),s=a.error,u=a.formItemId;return m.createElement(b.Label,d({ref:r,className:(0,g.cn)(s&&"text-destructive",n),htmlFor:u},i))});r.FormLabel=A,A.displayName="FormLabel";var w=m.forwardRef(function(t,r){var n=Object.assign({},(f(t),t)),i=v(),a=i.error,o=i.formItemId,s=i.formDescriptionId,u=i.formMessageId;return m.createElement(h.Slot,d({ref:r,id:o,"aria-describedby":a?"".concat(s," ").concat(u):"".concat(s),"aria-invalid":!!a},n))});r.FormControl=w,w.displayName="FormControl";var I=m.forwardRef(function(t,r){var n=t.className,i=l(t,s),a=v().formDescriptionId;return m.createElement("p",d({ref:r,id:a,className:(0,g.cn)("text-[0.8rem] text-light",n)},i))});r.FormDescription=I,I.displayName="FormDescription";var S=m.forwardRef(function(t,r){var n=t.className,i=t.children,a=l(t,u),o=v(),s=o.error,c=o.formMessageId,f=s?String(null==s?void 0:s.message):i;return f?m.createElement("p",d({ref:r,id:c,className:(0,g.cn)("text-[0.8rem] font-medium text-destructive",n)},a),f):null});r.FormMessage=S,S.displayName="FormMessage"},97814:(t,r,n)=>{"use strict";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of s(r))l.call(t,u)||u===n||a(t,u,{get:()=>r[u],enumerable:!(i=o(r,u))||i.enumerable});return t},d={};((t,r)=>{for(var n in r)a(t,n,{get:r[n],enumerable:!0})})(d,{useEscapeKeydown:()=>h}),t.exports=c(a({},"__esModule",{value:!0}),d);var f=((t,r,n)=>(n=null!=t?i(u(t)):{},c(!r&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)))(n(54953)),m=n(38e3);function h(t,r=globalThis?.document){let n=(0,m.useCallbackRef)(t);f.useEffect(()=>{let t=t=>{"Escape"===t.key&&n(t)};return r.addEventListener("keydown",t,{capture:!0}),()=>r.removeEventListener("keydown",t,{capture:!0})},[n,r])}},97899:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Stepper=void 0;var i=n(48070);Object.defineProperty(r,"Stepper",{enumerable:!0,get:function(){return i.Stepper}})},98165:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTYiIGhlaWdodD0iMTYwIiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjRjlBRTA3IiBkPSJNMCAwaDI1NnYxNjBIMHoiLz48L3N2Zz4="},98205:function(t,r,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,r,n,i){void 0===i&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,i,a)}:function(t,r,n,i){void 0===i&&(i=n),t[i]=r[n]}),a=this&&this.__exportStar||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||i(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),r.TZDate=void 0,a(n(73217),r),a(n(95739),r),a(n(5962),r),a(n(12124),r),a(n(74641),r),a(n(87599),r),a(n(78485),r),a(n(50687),r),a(n(13687),r),a(n(94832),r);var o=n(89418);Object.defineProperty(r,"TZDate",{enumerable:!0,get:function(){return o.TZDate}})},98307:(t,r,n)=>{"use strict";r.getMinutes=function(t,r){return(0,i.toDate)(t,r?.in).getMinutes()};var i=n(36339)},98479:(t,r,n)=>{"use strict";r.differenceInCalendarMonths=function(t,r,n){let[a,o]=(0,i.normalizeDates)(n?.in,t,r);return 12*(a.getFullYear()-o.getFullYear())+(a.getMonth()-o.getMonth())};var i=n(21779)},98513:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getStyleForModifiers=function(t,r={},n={}){let a={...r?.[i.UI.Day]};return Object.entries(t).filter(([,t])=>!0===t).forEach(([t])=>{a={...a,...n?.[t]}}),a};let i=n(13687)},98661:(t,r,n)=>{"use strict";r.subBusinessDays=function(t,r,n){return(0,i.addBusinessDays)(t,-r,n)};var i=n(72778)},98854:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}var a=["ref","autoFocus","triggerWrapperCSS","dropWrapperCSS","classTrigger","triggerDisabled","mode","disabled","disabledDates","disableFutureDates","disablePastDates","selected","dateFormat","placeholder","onSelect"];function o(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function u(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,a,o,s,u=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===r){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(u.push(i.value),u.length!==r);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return u}}(t,r)||function(t,r){if(t){if("string"==typeof t)return l(t,r);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,r):void 0}}(t,r)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
624
624
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function l(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=Array(r);n<r;n++)i[n]=t[n];return i}Object.defineProperty(r,"__esModule",{value:!0}),r.DrawerDatePicker=void 0;var c=n(31635),d=(0,c.__importStar)(n(54953)),f=n(18559),m=n(93271),h=n(11839),p=n(60396),g=n(54898),b=n(56355),y=(0,c.__importDefault)(n(69843)),v=`
|
|
625
|
-
w-full
|
|
626
|
-
px-4
|
|
627
|
-
h-12
|
|
628
|
-
border-input
|
|
629
625
|
inline-flex
|
|
630
626
|
items-center
|
|
631
627
|
text-left
|
|
632
|
-
form-input
|
|
633
|
-
rounded-md
|
|
634
|
-
focus:outline-none
|
|
635
|
-
focus-visible:ring
|
|
636
|
-
focus-visible:outline-none
|
|
637
|
-
focus-visible:ring-primary
|
|
638
|
-
focus-visible:ring-offset-1
|
|
639
|
-
disabled:bg-light
|
|
640
|
-
disabled:text-light
|
|
641
|
-
disabled:cursor-not-allowed
|
|
642
|
-
`;r.DrawerDatePicker=function(t){var r=t.ref,n=t.autoFocus,i=t.triggerWrapperCSS,o=t.dropWrapperCSS,l=(t.classTrigger,t.triggerDisabled,t.mode),c=t.disabled,M=void 0!==c&&c,j=t.disabledDates,A=t.disableFutureDates,w=void 0!==A&&A,I=t.disablePastDates,S=void 0!==I&&I,P=t.selected,N=t.dateFormat,O=t.placeholder,x=t.onSelect,D=function(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,a),L=new Date,C=u((0,d.useState)(!1),2),k=C[0],E=C[1],T=u((0,d.useState)(L),2),z=T[0],W=T[1],Z=u((0,d.useState)("month"),2),R=Z[0],Y=Z[1],_=function(t){W(t),Y(function(t){return"month"===t?"year":"month"})};return(0,d.useEffect)(function(){var t,r,n=new Date,i=((0,y.default)(z)?n:z).getFullYear();"year"===R&&(r=document.getElementById("year-".concat(i))),null==(t=r)||t.scrollIntoView({block:"start"})},[R,k,z]),d.default.createElement(m.Drawer,s(s({},D),{},{onOpenChange:function(t){E(t)},modal:!0}),d.default.createElement(m.DrawerTitle,null),d.default.createElement(m.DrawerTrigger,{className:(0,f.cn)(v,i),autoFocus:n,disabled:M,"aria-disabled":M,"data-testid":"datepicker-value"},d.default.createElement(b.DatePickerValue,{mode:l,selected:P,dateFormat:void 0===N?"dd.MM.yyyy":N,placeholder:void 0===O?"Введите дату":O})),d.default.createElement(m.DrawerContent,{className:(0,f.cn)(o),ref:r},"month"===R?d.default.createElement(g.MonthView,{selected:P,selectedMonth:z,toggleView:_,onSelect:x,month:(0,p.getFirstMonthOfCurrentYear)(P,L),disabled:j,disableFutureDates:w,disablePastDates:S,mode:l,resetTrigger:"year"===R}):d.default.createElement(h.YearView,{disableFutureDates:w,disablePastDates:S,onMonthSelect:_})))}},98971:(t,r,n)=>{"use strict";r.startOfWeek=function(t,r){let n=(0,i.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=(0,a.toDate)(t,r?.in),u=s.getDay();return s.setDate(s.getDate()-(7*(u<o)+u-o)),s.setHours(0,0,0,0),s};var i=n(74872),a=n(36339)},99047:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useScrollToMonth=void 0;var i=n(54953);r.useScrollToMonth=function(t){var r=t.containerRef,n=t.selectedMonth;(0,i.useEffect)(function(){var t=function(){if(n&&r.current){var t=n.getFullYear(),i=n.toLocaleString("en-US",{month:"long"}),a=document.getElementById("month-".concat(t,"-").concat(i));if(a&&r.current){var o=r.current,s=a.offsetTop-o.offsetTop-20;o.scrollTo({top:s,behavior:"auto"})}}};if(r.current){var i=new MutationObserver(function(){var r=null==n?void 0:n.getFullYear(),a=null==n?void 0:n.toLocaleString("en-US",{month:"long"});document.getElementById("month-".concat(r,"-").concat(a))&&(t(),i.disconnect())});return i.observe(r.current,{childList:!0,subtree:!0}),function(){i.disconnect()}}},[r,n])}},99246:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}function a(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}Object.defineProperty(r,"__esModule",{value:!0});var o=(0,n(31635).__importStar)(n(54953)),s=n(47716);r.default=function(t){return o.createElement(s.SvgIcon,function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),o.createElement("path",{d:"m22.452 8.055-4.8 4.8a1.22 1.22 0 0 1-1.704 0 1.21 1.21 0 0 1 0-1.704l2.76-2.748H2.4c-.66 0-1.2-.54-1.2-1.2 0-.66.54-1.2 1.2-1.2h16.308l-2.76-2.748a1.21 1.21 0 0 1 0-1.704 1.21 1.21 0 0 1 1.704 0l4.8 4.8a1.21 1.21 0 0 1 0 1.704Zm-.852 7.548H5.292l2.76-2.748a1.21 1.21 0 0 0 0-1.704 1.21 1.21 0 0 0-1.704 0l-4.8 4.8a1.21 1.21 0 0 0 0 1.704l4.8 4.8a1.22 1.22 0 0 0 1.704 0 1.21 1.21 0 0 0 0-1.704l-2.76-2.748H21.6c.66 0 1.2-.54 1.2-1.2 0-.66-.54-1.2-1.2-1.2Z",fill:"currentColor"}))}},99291:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSI+PHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI4IiBmaWxsPSIjMDAwIiByeD0iNCIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik04IDExdjYuOTdoMi4yM3YtMy43M2guMjRsMS4yNCAzLjczaDFsMS4yMy0zLjczaC4yNXYzLjczaDIuMjJWMTFIMTQuMnMtLjY1IDAtMSAxYy0uNzkgMi4zMy0uOTggMi45OC0uOTggMi45OHMtLjEtLjM1LTEtMi45OGMtLjM0LTEtLjk4LTEtLjk4LTF6bTkuNCAwdjYuOTdoMS45OHMuNSAwIC43NC0uNWwxLjc0LTMuNDhoLjI0djMuOThoMi4yM1YxMWgtMS45OHMtLjUuMDUtLjc0LjVsLTEuNzMgMy40OGgtLjI1VjExem03LjUyIDBoNC42YzEuNCAwIDIuNDggMS4xIDIuNDggMi40OSAwIC4xNSAwIC4zNS0uMDUuNWgtMy42NmMtMS42MyAwLTMuMTItMS40NS0zLjM3LTIuOTltLjQgNi45N3YtMy43NGg2LjUzYy0uMyAxLTEuMjQgMS43NS0yLjMyIDEuNzVoLTEuOTh2MS45OXoiLz48L3N2Zz4="},99374:(t,r,n)=>{var i=n(23805),a=n(44394),o=0/0,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return o;if(i(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=i(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=l.test(t);return n||c.test(t)?d(t.slice(2),n?2:8):u.test(t)?o:+t}},99556:function(t,r,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){return(0,a.useContext)(o.default)};let a=n(54953),o=i(n(27093))},99690:(t,r,n)=>{"use strict";r.getDaysInMonth=function(t,r){let n=(0,a.toDate)(t,r?.in),o=n.getFullYear(),s=n.getMonth(),u=(0,i.constructFrom)(n,0);return u.setFullYear(o,s+1,0),u.setHours(0,0,0,0),u.getDate()};var i=n(3539),a=n(36339)},99730:(t,r,n)=>{"use strict";var i=n(48982),a=n(54953),o=n(5556);function s(t){return t&&t.__esModule?t:{default:t}}var u=s(i),l=s(a),c=s(o);let d={mask:c.default.oneOfType([c.default.array,c.default.func,c.default.string,c.default.instanceOf(RegExp),c.default.oneOf([Date,Number,u.default.Masked]),c.default.instanceOf(u.default.Masked)]),value:c.default.any,unmask:c.default.oneOfType([c.default.bool,c.default.oneOf(["typed"])]),prepare:c.default.func,prepareChar:c.default.func,validate:c.default.func,commit:c.default.func,overwrite:c.default.oneOfType([c.default.bool,c.default.oneOf(["shift"])]),eager:c.default.oneOfType([c.default.bool,c.default.oneOf(["append","remove"])]),skipInvalid:c.default.bool,onAccept:c.default.func,onComplete:c.default.func,placeholderChar:c.default.string,displayChar:c.default.string,lazy:c.default.bool,definitions:c.default.object,blocks:c.default.object,enum:c.default.arrayOf(c.default.string),maxLength:c.default.number,from:c.default.number,to:c.default.number,pattern:c.default.string,format:c.default.func,parse:c.default.func,autofix:c.default.oneOfType([c.default.bool,c.default.oneOf(["pad"])]),radix:c.default.string,thousandsSeparator:c.default.string,mapToRadix:c.default.arrayOf(c.default.string),scale:c.default.number,normalizeZeros:c.default.bool,padFractionalZeros:c.default.bool,min:c.default.oneOfType([c.default.number,c.default.instanceOf(Date)]),max:c.default.oneOfType([c.default.number,c.default.instanceOf(Date)]),dispatch:c.default.func,inputRef:c.default.oneOfType([c.default.func,c.default.shape({current:c.default.object})])},f=Object.keys(d).filter(t=>"value"!==t),m=["value","unmask","onAccept","onComplete","inputRef"],h=f.filter(t=>0>m.indexOf(t));function p(t){var r;let n=((r=class extends l.default.Component{constructor(t){super(t),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){let t=this.props,r=this._extractMaskOptionsFromProps(t);if(r.mask)this.maskRef?(this.maskRef.updateOptions(r),"value"in t&&void 0!==t.value&&(this.maskValue=t.value)):this.initMask(r);else if(this.destroyMask(),"value"in t&&void 0!==t.value){var n;null!=(n=this.element)&&n.isContentEditable&&"INPUT"!==this.element.tagName&&"TEXTAREA"!==this.element.tagName?this.element.textContent=t.value:this.element.value=t.value}}componentWillUnmount(){this.destroyMask()}_inputRef(t){this.element=t,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=t:this.props.inputRef(t))}initMask(t){void 0===t&&(t=this._extractMaskOptionsFromProps(this.props)),this.maskRef=u.default(this.element,t).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&void 0!==this.props.value&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(t){let{...r}=t;return Object.keys(r).filter(t=>0>h.indexOf(t)).forEach(t=>{delete r[t]}),r}_extractNonMaskProps(t){let{...r}=t;return f.forEach(t=>{"maxLength"!==t&&delete r[t]}),"defaultValue"in r||(r.defaultValue=t.mask?"":r.value),delete r.value,r}get maskValue(){return this.maskRef?"typed"===this.props.unmask?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(t){this.maskRef&&(t=null==t&&"typed"!==this.props.unmask?"":t,"typed"===this.props.unmask?this.maskRef.typedValue=t:this.props.unmask?this.maskRef.unmaskedValue=t:this.maskRef.value=t)}_onAccept(t){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,t)}_onComplete(t){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,t)}render(){return l.default.createElement(t,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}}).displayName=void 0,r.propTypes=void 0,r);return n.displayName="IMask("+(t.displayName||t.name||"Component")+")",n.propTypes=d,l.default.forwardRef((t,r)=>l.default.createElement(n,{...t,ref:r}))}let g=p(t=>{let{inputRef:r,...n}=t;return l.default.createElement("input",{...n,ref:r})}),b=l.default.forwardRef((t,r)=>l.default.createElement(g,{...t,ref:r}));Object.defineProperty(r,"IMask",{enumerable:!0,get:function(){return u.default}}),r.IMaskInput=b,r.IMaskMixin=p,r.useIMask=function(t,r){let{onAccept:n,onComplete:i,ref:o=a.useRef(null),defaultValue:s,defaultUnmaskedValue:l,defaultTypedValue:c}=void 0===r?{}:r,d=a.useRef(null),[f,m]=a.useState({}),[h,p]=a.useState(""),[g,b]=a.useState(""),[y,v]=a.useState(),M=a.useCallback(()=>{var t;null==(t=d.current)||t.destroy(),d.current=null},[]),j=a.useCallback(()=>{let t=d.current;t&&(m({value:t.value,unmaskedValue:t.unmaskedValue,typedValue:t.typedValue}),v(t.typedValue),b(t.unmaskedValue),p(t.value))},[]),A=a.useCallback(t=>{let r=d.current;r&&(j(),null==n||n(r.value,r,t))},[n]),w=a.useCallback(t=>d.current&&(null==i?void 0:i(d.current.value,d.current,t)),[i]);return a.useEffect(()=>{let{value:t,...r}=f,n=d.current;n&&void 0!==h&&(t!==h&&(n.value=h,n.value!==h&&A()),m(r))},[h]),a.useEffect(()=>{let{unmaskedValue:t,...r}=f,n=d.current;n&&void 0!==g&&(t!==g&&(n.unmaskedValue=g,n.unmaskedValue!==g&&A()),m(r))},[g]),a.useEffect(()=>{let{typedValue:t,...r}=f,n=d.current;n&&void 0!==y&&(t!==y&&(n.typedValue=y,n.masked.typedValueEquals(y)||A()),m(r))},[y]),a.useEffect(()=>{let r=o.current;if(!r||!(null!=t&&t.mask))return M();let n=d.current;n?null==n||n.updateOptions(t):r&&null!=t&&t.mask&&(d.current=u.default(r,t),j(),void 0!==s&&p(s),void 0!==l&&b(l),void 0!==c&&v(c))},[t,M,A]),a.useEffect(()=>{if(!d.current)return;let t=d.current;return t.on("accept",A),t.on("complete",w),()=>{t.off("accept",A),t.off("complete",w)}},[A,w]),a.useEffect(()=>M,[M]),{ref:o,maskRef:d,value:h,setValue:p,unmaskedValue:g,setUnmaskedValue:b,typedValue:y,setTypedValue:v}}},99796:(t,r,n)=>{"use strict";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of s(r))l.call(t,u)||u===n||a(t,u,{get:()=>r[u],enumerable:!(i=o(r,u))||i.enumerable});return t},d={};((t,r)=>{for(var n in r)a(t,n,{get:r[n],enumerable:!0})})(d,{FocusScope:()=>M,Root:()=>P}),t.exports=c(a({},"__esModule",{value:!0}),d);var f=((t,r,n)=>(n=null!=t?i(u(t)):{},c(!r&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)))(n(54953)),m=n(66560),h=n(62053),p=n(38e3),g=n(74848),b="focusScope.autoFocusOnMount",y="focusScope.autoFocusOnUnmount",v={bubbles:!1,cancelable:!0},M=f.forwardRef((t,r)=>{let{loop:n=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=t,[u,l]=f.useState(null),c=(0,p.useCallbackRef)(a),d=(0,p.useCallbackRef)(o),M=f.useRef(null),S=(0,m.useComposedRefs)(r,t=>l(t)),P=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(i){let t=function(t){if(P.paused||!u)return;let r=t.target;u.contains(r)?M.current=r:w(M.current,{select:!0})},r=function(t){if(P.paused||!u)return;let r=t.relatedTarget;null!==r&&(u.contains(r)||w(M.current,{select:!0}))};document.addEventListener("focusin",t),document.addEventListener("focusout",r);let n=new MutationObserver(function(t){if(document.activeElement===document.body)for(let r of t)r.removedNodes.length>0&&w(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",r),n.disconnect()}}},[i,u,P.paused]),f.useEffect(()=>{if(u){I.add(P);let t=document.activeElement;if(!u.contains(t)){let r=new CustomEvent(b,v);u.addEventListener(b,c),u.dispatchEvent(r),r.defaultPrevented||(function(t,{select:r=!1}={}){let n=document.activeElement;for(let i of t)if(w(i,{select:r}),document.activeElement!==n)return}(j(u).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&w(u))}return()=>{u.removeEventListener(b,c),setTimeout(()=>{let r=new CustomEvent(y,v);u.addEventListener(y,d),u.dispatchEvent(r),r.defaultPrevented||w(t??document.body,{select:!0}),u.removeEventListener(y,d),I.remove(P)},0)}}},[u,c,d,P]);let N=f.useCallback(t=>{if(!n&&!i||P.paused)return;let r="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,a=document.activeElement;if(r&&a){let r=t.currentTarget,[i,o]=function(t){let r=j(t);return[A(r,t),A(r.reverse(),t)]}(r);i&&o?t.shiftKey||a!==o?t.shiftKey&&a===i&&(t.preventDefault(),n&&w(o,{select:!0})):(t.preventDefault(),n&&w(i,{select:!0})):a===r&&t.preventDefault()}},[n,i,P.paused]);return(0,g.jsx)(h.Primitive.div,{tabIndex:-1,...s,ref:S,onKeyDown:N})});function j(t){let r=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let r="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||r?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function A(t,r){for(let n of t)if(!function(t,{upTo:r}){if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===r||t!==r);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(n,{upTo:r}))return n}function w(t,{select:r=!1}={}){if(t&&t.focus){var n;let i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&(n=t)instanceof HTMLInputElement&&"select"in n&&r&&t.select()}}M.displayName="FocusScope";var I=function(){let t=[];return{add(r){let n=t[0];r!==n&&n?.pause(),(t=S(t,r)).unshift(r)},remove(r){t=S(t,r),t[0]?.resume()}}}();function S(t,r){let n=[...t],i=n.indexOf(r);return -1!==i&&n.splice(i,1),n}var P=M},99927:function(t,r,n){"use strict";var i=this&&this.__rest||function(t,r){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>r.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(t);a<i.length;a++)0>r.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(n[i[a]]=t[i[a]]);return n},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){let r=Object.assign(Object.assign({},(0,M.default)()),t),{_className:n="react-pdf__Page",_enableRegisterUnregisterPage:a=!0,canvasBackground:A,canvasRef:w,children:I,className:S,customRenderer:P,customTextRenderer:N,devicePixelRatio:O,error:x="Failed to load the page.",height:D,inputRef:L,loading:C="Loading page…",noData:k="No page specified.",onGetAnnotationsError:E,onGetAnnotationsSuccess:T,onGetStructTreeError:z,onGetStructTreeSuccess:W,onGetTextError:Z,onGetTextSuccess:R,onLoadError:Y,onLoadSuccess:_,onRenderAnnotationLayerError:G,onRenderAnnotationLayerSuccess:H,onRenderError:F,onRenderSuccess:V,onRenderTextLayerError:B,onRenderTextLayerSuccess:U,pageIndex:X,pageNumber:Q,pdf:J,registerPage:K,renderAnnotationLayer:q=!0,renderForms:$=!1,renderMode:ee="canvas",renderTextLayer:et=!0,rotate:er,scale:en=1,unregisterPage:ei,width:ea}=r,eo=i(r,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[es,eu]=(0,j.default)(),{value:el,error:ec}=es,ed=(0,s.useRef)(null);(0,f.default)(J,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");let ef=(0,v.isProvided)(Q)?Q-1:null!=X?X:null,em=null!=Q?Q:(0,v.isProvided)(X)?X+1:null,eh=null!=er?er:el?el.rotate:null,ep=(0,s.useMemo)(()=>{if(!el)return null;let t=1,r=null!=en?en:1;if(ea||D){let r=el.getViewport({scale:1,rotation:eh});ea?t=ea/r.width:D&&(t=D/r.height)}return r*t},[D,el,eh,en,ea]);(0,s.useEffect)(function(){return()=>{(0,v.isProvided)(ef)&&a&&ei&&ei(ef)}},[a,J,ef,ei]),(0,s.useEffect)(function(){eu({type:"RESET"})},[eu,J,ef]),(0,s.useEffect)(function(){if(!J||!em)return;let t=(0,u.default)(J.getPage(em));return t.promise.then(t=>{eu({type:"RESOLVE",value:t})}).catch(t=>{eu({type:"REJECT",error:t})}),()=>(0,v.cancelRunningTask)(t)},[eu,J,em]),(0,s.useEffect)(()=>{if(void 0!==el){if(!1===el)return void(ec&&((0,m.default)(!1,ec.toString()),Y&&Y(ec)));!function(){if(_){if(!el||!ep)return;_((0,v.makePageCallback)(el,ep))}if(a&&K){if(!(0,v.isProvided)(ef)||!ed.current)return;K(ef,ed.current)}}()}},[el,ep]);let eg=(0,s.useMemo)(()=>el&&(0,v.isProvided)(ef)&&em&&(0,v.isProvided)(eh)&&(0,v.isProvided)(ep)?{_className:n,canvasBackground:A,customTextRenderer:N,devicePixelRatio:O,onGetAnnotationsError:E,onGetAnnotationsSuccess:T,onGetStructTreeError:z,onGetStructTreeSuccess:W,onGetTextError:Z,onGetTextSuccess:R,onRenderAnnotationLayerError:G,onRenderAnnotationLayerSuccess:H,onRenderError:F,onRenderSuccess:V,onRenderTextLayerError:B,onRenderTextLayerSuccess:U,page:el,pageIndex:ef,pageNumber:em,renderForms:$,renderTextLayer:et,rotate:eh,scale:ep}:null,[n,A,N,O,E,T,z,W,Z,R,G,H,F,V,B,U,el,ef,em,$,et,eh,ep]),eb=(0,s.useMemo)(()=>(0,l.default)(eo,()=>el?ep?(0,v.makePageCallback)(el,ep):void 0:el),[eo,el,ep]),ey=`${ef}@${ep}/${eh}`;return(0,o.jsx)("div",Object.assign({className:(0,c.default)(n,S),"data-page-number":em,ref:(0,d.default)(L,ed),style:{"--scale-factor":`${ep}`,backgroundColor:A||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},eb,{children:em?null===J||null==el?(0,o.jsx)(p.default,{type:"loading",children:"function"==typeof C?C():C}):!1===J||!1===el?(0,o.jsx)(p.default,{type:"error",children:"function"==typeof x?x():x}):(0,o.jsxs)(h.default.Provider,{value:eg,children:[function(){switch(ee){case"custom":return(0,f.default)(P,'renderMode was set to "custom", but no customRenderer was passed.'),(0,o.jsx)(P,{},`${ey}_custom`);case"none":return null;default:return(0,o.jsx)(g.default,{canvasRef:w},`${ey}_canvas`)}}(),et?(0,o.jsx)(b.default,{},`${ey}_text`):null,q?(0,o.jsx)(y.default,{},`${ey}_annotations`):null,I]}):(0,o.jsx)(p.default,{type:"no-data",children:"function"==typeof k?k():k})}))};let o=n(74848),s=n(54953),u=a(n(4369)),l=a(n(10922)),c=a(n(71508)),d=a(n(94497)),f=a(n(17676)),m=a(n(9771)),h=a(n(47472)),p=a(n(94453)),g=a(n(80330)),b=a(n(12472)),y=a(n(75598)),v=n(61399),M=a(n(99556)),j=a(n(23096))},99943:(t,r,n)=>{"use strict";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of s(r))l.call(t,u)||u===n||a(t,u,{get:()=>r[u],enumerable:!(i=o(r,u))||i.enumerable});return t},d={};((t,r)=>{for(var n in r)a(t,n,{get:r[n],enumerable:!0})})(d,{Checkbox:()=>N,CheckboxIndicator:()=>x,Indicator:()=>E,Root:()=>k,createCheckboxScope:()=>I}),t.exports=c(a({},"__esModule",{value:!0}),d);var f=((t,r,n)=>(n=null!=t?i(u(t)):{},c(!r&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)))(n(54953)),m=n(10207),h=n(65628),p=n(1760),g=n(34690),b=n(88165),y=n(55745),v=n(22686),M=n(92658),j=n(74848),A="Checkbox",[w,I]=(0,h.createContextScope)(A),[S,P]=w(A),N=f.forwardRef((t,r)=>{let{__scopeCheckbox:n,name:i,checked:a,defaultChecked:o,required:s,disabled:u,value:l="on",onCheckedChange:c,form:d,...h}=t,[b,y]=f.useState(null),v=(0,m.useComposedRefs)(r,t=>y(t)),A=f.useRef(!1),w=!b||d||!!b.closest("form"),[I=!1,P]=(0,g.useControllableState)({prop:a,defaultProp:o,onChange:c}),N=f.useRef(I);return f.useEffect(()=>{let t=b?.form;if(t){let r=()=>P(N.current);return t.addEventListener("reset",r),()=>t.removeEventListener("reset",r)}},[b,P]),(0,j.jsxs)(S,{scope:n,state:I,disabled:u,children:[(0,j.jsx)(M.Primitive.button,{type:"button",role:"checkbox","aria-checked":L(I)?"mixed":I,"aria-required":s,"data-state":C(I),"data-disabled":u?"":void 0,disabled:u,value:l,...h,ref:v,onKeyDown:(0,p.composeEventHandlers)(t.onKeyDown,t=>{"Enter"===t.key&&t.preventDefault()}),onClick:(0,p.composeEventHandlers)(t.onClick,t=>{P(t=>!!L(t)||!t),w&&(A.current=t.isPropagationStopped(),A.current||t.stopPropagation())})}),w&&(0,j.jsx)(D,{control:b,bubbles:!A.current,name:i,value:l,checked:I,required:s,disabled:u,form:d,style:{transform:"translateX(-100%)"},defaultChecked:!L(o)&&o})]})});N.displayName=A;var O="CheckboxIndicator",x=f.forwardRef((t,r)=>{let{__scopeCheckbox:n,forceMount:i,...a}=t,o=P(O,n);return(0,j.jsx)(v.Presence,{present:i||L(o.state)||!0===o.state,children:(0,j.jsx)(M.Primitive.span,{"data-state":C(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:r,style:{pointerEvents:"none",...t.style}})})});x.displayName=O;var D=t=>{let{control:r,checked:n,bubbles:i=!0,defaultChecked:a,...o}=t,s=f.useRef(null),u=(0,b.usePrevious)(n),l=(0,y.useSize)(r);f.useEffect(()=>{let t=s.current,r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==n&&r){let a=new Event("click",{bubbles:i});t.indeterminate=L(n),r.call(t,!L(n)&&n),t.dispatchEvent(a)}},[u,n,i]);let c=f.useRef(!L(n)&&n);return(0,j.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??c.current,...o,tabIndex:-1,ref:s,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function L(t){return"indeterminate"===t}function C(t){return L(t)?"indeterminate":t?"checked":"unchecked"}var k=N,E=x},99980:(t,r,n)=>{"use strict";n.r(r)},99999:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}function a(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}Object.defineProperty(r,"__esModule",{value:!0});var o=(0,n(31635).__importStar)(n(54953)),s=n(47716);r.default=function(t){return o.createElement(s.SvgIcon,function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),o.createElement("path",{fill:"currentColor",d:"m21.25 12.85-6 6c-.48.46-1.21.47-1.7 0a1.21 1.21 0 0 1 0-1.7l3.96-3.95H3.6A1.2 1.2 0 0 1 2.4 12c0-.66.54-1.2 1.2-1.2h13.9l-3.95-3.95a1.21 1.21 0 0 1 0-1.7 1.21 1.21 0 0 1 1.7 0l6 6c.47.47.47 1.24 0 1.7Z"}))}}},r={};function n(i){var a=r[i];if(void 0!==a)return a.exports;var o=r[i]={id:i,loaded:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return n.d(r,{a:r}),r},n.d=(t,r)=>{for(var i in r)n.o(r,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.p="/mbui/",n.nc=void 0;var i=n(8129);module.exports=i})();
|
|
628
|
+
`;r.DrawerDatePicker=function(t){var r=t.ref,n=t.autoFocus,i=t.triggerWrapperCSS,o=t.dropWrapperCSS,l=(t.classTrigger,t.triggerDisabled,t.mode),c=t.disabled,M=void 0!==c&&c,j=t.disabledDates,A=t.disableFutureDates,w=void 0!==A&&A,I=t.disablePastDates,S=void 0!==I&&I,P=t.selected,N=t.dateFormat,O=t.placeholder,x=t.onSelect,D=function(t,r){if(null==t)return{};var n,i,a=function(t,r){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==r.indexOf(i))continue;n[i]=t[i]}return n}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===r.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,a),L=new Date,C=u((0,d.useState)(!1),2),k=C[0],E=C[1],T=u((0,d.useState)(L),2),z=T[0],W=T[1],Z=u((0,d.useState)("month"),2),R=Z[0],Y=Z[1],_=function(t){W(t),Y(function(t){return"month"===t?"year":"month"})};return(0,d.useEffect)(function(){var t,r,n=new Date,i=((0,y.default)(z)?n:z).getFullYear();"year"===R&&(r=document.getElementById("year-".concat(i))),null==(t=r)||t.scrollIntoView({block:"start"})},[R,k,z]),d.default.createElement(m.Drawer,s(s({},D),{},{onOpenChange:function(t){E(t)},modal:!0}),d.default.createElement(m.DrawerTitle,null),d.default.createElement(m.DrawerTrigger,{className:(0,f.cn)("form-input pr-3 disabled:text-disabled disabled:bg-light",v,i),autoFocus:n,disabled:M,"aria-disabled":M,"data-testid":"datepicker-value"},d.default.createElement(b.DatePickerValue,{mode:l,selected:P,dateFormat:void 0===N?"dd.MM.yyyy":N,placeholder:void 0===O?"Введите дату":O})),d.default.createElement(m.DrawerContent,{className:(0,f.cn)(o),ref:r},"month"===R?d.default.createElement(g.MonthView,{selected:P,selectedMonth:z,toggleView:_,onSelect:x,month:(0,p.getFirstMonthOfCurrentYear)(P,L),disabled:j,disableFutureDates:w,disablePastDates:S,mode:l,resetTrigger:"year"===R}):d.default.createElement(h.YearView,{disableFutureDates:w,disablePastDates:S,onMonthSelect:_})))}},98971:(t,r,n)=>{"use strict";r.startOfWeek=function(t,r){let n=(0,i.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=(0,a.toDate)(t,r?.in),u=s.getDay();return s.setDate(s.getDate()-(7*(u<o)+u-o)),s.setHours(0,0,0,0),s};var i=n(74872),a=n(36339)},99047:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useScrollToMonth=void 0;var i=n(54953);r.useScrollToMonth=function(t){var r=t.containerRef,n=t.selectedMonth;(0,i.useEffect)(function(){var t=function(){if(n&&r.current){var t=n.getFullYear(),i=n.toLocaleString("en-US",{month:"long"}),a=document.getElementById("month-".concat(t,"-").concat(i));if(a&&r.current){var o=r.current,s=a.offsetTop-o.offsetTop-20;o.scrollTo({top:s,behavior:"auto"})}}};if(r.current){var i=new MutationObserver(function(){var r=null==n?void 0:n.getFullYear(),a=null==n?void 0:n.toLocaleString("en-US",{month:"long"});document.getElementById("month-".concat(r,"-").concat(a))&&(t(),i.disconnect())});return i.observe(r.current,{childList:!0,subtree:!0}),function(){i.disconnect()}}},[r,n])}},99246:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}function a(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}Object.defineProperty(r,"__esModule",{value:!0});var o=(0,n(31635).__importStar)(n(54953)),s=n(47716);r.default=function(t){return o.createElement(s.SvgIcon,function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),o.createElement("path",{d:"m22.452 8.055-4.8 4.8a1.22 1.22 0 0 1-1.704 0 1.21 1.21 0 0 1 0-1.704l2.76-2.748H2.4c-.66 0-1.2-.54-1.2-1.2 0-.66.54-1.2 1.2-1.2h16.308l-2.76-2.748a1.21 1.21 0 0 1 0-1.704 1.21 1.21 0 0 1 1.704 0l4.8 4.8a1.21 1.21 0 0 1 0 1.704Zm-.852 7.548H5.292l2.76-2.748a1.21 1.21 0 0 0 0-1.704 1.21 1.21 0 0 0-1.704 0l-4.8 4.8a1.21 1.21 0 0 0 0 1.704l4.8 4.8a1.22 1.22 0 0 0 1.704 0 1.21 1.21 0 0 0 0-1.704l-2.76-2.748H21.6c.66 0 1.2-.54 1.2-1.2 0-.66-.54-1.2-1.2-1.2Z",fill:"currentColor"}))}},99291:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSI+PHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI4IiBmaWxsPSIjMDAwIiByeD0iNCIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik04IDExdjYuOTdoMi4yM3YtMy43M2guMjRsMS4yNCAzLjczaDFsMS4yMy0zLjczaC4yNXYzLjczaDIuMjJWMTFIMTQuMnMtLjY1IDAtMSAxYy0uNzkgMi4zMy0uOTggMi45OC0uOTggMi45OHMtLjEtLjM1LTEtMi45OGMtLjM0LTEtLjk4LTEtLjk4LTF6bTkuNCAwdjYuOTdoMS45OHMuNSAwIC43NC0uNWwxLjc0LTMuNDhoLjI0djMuOThoMi4yM1YxMWgtMS45OHMtLjUuMDUtLjc0LjVsLTEuNzMgMy40OGgtLjI1VjExem03LjUyIDBoNC42YzEuNCAwIDIuNDggMS4xIDIuNDggMi40OSAwIC4xNSAwIC4zNS0uMDUuNWgtMy42NmMtMS42MyAwLTMuMTItMS40NS0zLjM3LTIuOTltLjQgNi45N3YtMy43NGg2LjUzYy0uMyAxLTEuMjQgMS43NS0yLjMyIDEuNzVoLTEuOTh2MS45OXoiLz48L3N2Zz4="},99374:(t,r,n)=>{var i=n(23805),a=n(44394),o=0/0,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return o;if(i(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=i(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=l.test(t);return n||c.test(t)?d(t.slice(2),n?2:8):u.test(t)?o:+t}},99556:function(t,r,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){return(0,a.useContext)(o.default)};let a=n(54953),o=i(n(27093))},99690:(t,r,n)=>{"use strict";r.getDaysInMonth=function(t,r){let n=(0,a.toDate)(t,r?.in),o=n.getFullYear(),s=n.getMonth(),u=(0,i.constructFrom)(n,0);return u.setFullYear(o,s+1,0),u.setHours(0,0,0,0),u.getDate()};var i=n(3539),a=n(36339)},99730:(t,r,n)=>{"use strict";var i=n(48982),a=n(54953),o=n(5556);function s(t){return t&&t.__esModule?t:{default:t}}var u=s(i),l=s(a),c=s(o);let d={mask:c.default.oneOfType([c.default.array,c.default.func,c.default.string,c.default.instanceOf(RegExp),c.default.oneOf([Date,Number,u.default.Masked]),c.default.instanceOf(u.default.Masked)]),value:c.default.any,unmask:c.default.oneOfType([c.default.bool,c.default.oneOf(["typed"])]),prepare:c.default.func,prepareChar:c.default.func,validate:c.default.func,commit:c.default.func,overwrite:c.default.oneOfType([c.default.bool,c.default.oneOf(["shift"])]),eager:c.default.oneOfType([c.default.bool,c.default.oneOf(["append","remove"])]),skipInvalid:c.default.bool,onAccept:c.default.func,onComplete:c.default.func,placeholderChar:c.default.string,displayChar:c.default.string,lazy:c.default.bool,definitions:c.default.object,blocks:c.default.object,enum:c.default.arrayOf(c.default.string),maxLength:c.default.number,from:c.default.number,to:c.default.number,pattern:c.default.string,format:c.default.func,parse:c.default.func,autofix:c.default.oneOfType([c.default.bool,c.default.oneOf(["pad"])]),radix:c.default.string,thousandsSeparator:c.default.string,mapToRadix:c.default.arrayOf(c.default.string),scale:c.default.number,normalizeZeros:c.default.bool,padFractionalZeros:c.default.bool,min:c.default.oneOfType([c.default.number,c.default.instanceOf(Date)]),max:c.default.oneOfType([c.default.number,c.default.instanceOf(Date)]),dispatch:c.default.func,inputRef:c.default.oneOfType([c.default.func,c.default.shape({current:c.default.object})])},f=Object.keys(d).filter(t=>"value"!==t),m=["value","unmask","onAccept","onComplete","inputRef"],h=f.filter(t=>0>m.indexOf(t));function p(t){var r;let n=((r=class extends l.default.Component{constructor(t){super(t),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){let t=this.props,r=this._extractMaskOptionsFromProps(t);if(r.mask)this.maskRef?(this.maskRef.updateOptions(r),"value"in t&&void 0!==t.value&&(this.maskValue=t.value)):this.initMask(r);else if(this.destroyMask(),"value"in t&&void 0!==t.value){var n;null!=(n=this.element)&&n.isContentEditable&&"INPUT"!==this.element.tagName&&"TEXTAREA"!==this.element.tagName?this.element.textContent=t.value:this.element.value=t.value}}componentWillUnmount(){this.destroyMask()}_inputRef(t){this.element=t,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=t:this.props.inputRef(t))}initMask(t){void 0===t&&(t=this._extractMaskOptionsFromProps(this.props)),this.maskRef=u.default(this.element,t).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&void 0!==this.props.value&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(t){let{...r}=t;return Object.keys(r).filter(t=>0>h.indexOf(t)).forEach(t=>{delete r[t]}),r}_extractNonMaskProps(t){let{...r}=t;return f.forEach(t=>{"maxLength"!==t&&delete r[t]}),"defaultValue"in r||(r.defaultValue=t.mask?"":r.value),delete r.value,r}get maskValue(){return this.maskRef?"typed"===this.props.unmask?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(t){this.maskRef&&(t=null==t&&"typed"!==this.props.unmask?"":t,"typed"===this.props.unmask?this.maskRef.typedValue=t:this.props.unmask?this.maskRef.unmaskedValue=t:this.maskRef.value=t)}_onAccept(t){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,t)}_onComplete(t){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,t)}render(){return l.default.createElement(t,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}}).displayName=void 0,r.propTypes=void 0,r);return n.displayName="IMask("+(t.displayName||t.name||"Component")+")",n.propTypes=d,l.default.forwardRef((t,r)=>l.default.createElement(n,{...t,ref:r}))}let g=p(t=>{let{inputRef:r,...n}=t;return l.default.createElement("input",{...n,ref:r})}),b=l.default.forwardRef((t,r)=>l.default.createElement(g,{...t,ref:r}));Object.defineProperty(r,"IMask",{enumerable:!0,get:function(){return u.default}}),r.IMaskInput=b,r.IMaskMixin=p,r.useIMask=function(t,r){let{onAccept:n,onComplete:i,ref:o=a.useRef(null),defaultValue:s,defaultUnmaskedValue:l,defaultTypedValue:c}=void 0===r?{}:r,d=a.useRef(null),[f,m]=a.useState({}),[h,p]=a.useState(""),[g,b]=a.useState(""),[y,v]=a.useState(),M=a.useCallback(()=>{var t;null==(t=d.current)||t.destroy(),d.current=null},[]),j=a.useCallback(()=>{let t=d.current;t&&(m({value:t.value,unmaskedValue:t.unmaskedValue,typedValue:t.typedValue}),v(t.typedValue),b(t.unmaskedValue),p(t.value))},[]),A=a.useCallback(t=>{let r=d.current;r&&(j(),null==n||n(r.value,r,t))},[n]),w=a.useCallback(t=>d.current&&(null==i?void 0:i(d.current.value,d.current,t)),[i]);return a.useEffect(()=>{let{value:t,...r}=f,n=d.current;n&&void 0!==h&&(t!==h&&(n.value=h,n.value!==h&&A()),m(r))},[h]),a.useEffect(()=>{let{unmaskedValue:t,...r}=f,n=d.current;n&&void 0!==g&&(t!==g&&(n.unmaskedValue=g,n.unmaskedValue!==g&&A()),m(r))},[g]),a.useEffect(()=>{let{typedValue:t,...r}=f,n=d.current;n&&void 0!==y&&(t!==y&&(n.typedValue=y,n.masked.typedValueEquals(y)||A()),m(r))},[y]),a.useEffect(()=>{let r=o.current;if(!r||!(null!=t&&t.mask))return M();let n=d.current;n?null==n||n.updateOptions(t):r&&null!=t&&t.mask&&(d.current=u.default(r,t),j(),void 0!==s&&p(s),void 0!==l&&b(l),void 0!==c&&v(c))},[t,M,A]),a.useEffect(()=>{if(!d.current)return;let t=d.current;return t.on("accept",A),t.on("complete",w),()=>{t.off("accept",A),t.off("complete",w)}},[A,w]),a.useEffect(()=>M,[M]),{ref:o,maskRef:d,value:h,setValue:p,unmaskedValue:g,setUnmaskedValue:b,typedValue:y,setTypedValue:v}}},99796:(t,r,n)=>{"use strict";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of s(r))l.call(t,u)||u===n||a(t,u,{get:()=>r[u],enumerable:!(i=o(r,u))||i.enumerable});return t},d={};((t,r)=>{for(var n in r)a(t,n,{get:r[n],enumerable:!0})})(d,{FocusScope:()=>M,Root:()=>P}),t.exports=c(a({},"__esModule",{value:!0}),d);var f=((t,r,n)=>(n=null!=t?i(u(t)):{},c(!r&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)))(n(54953)),m=n(66560),h=n(62053),p=n(38e3),g=n(74848),b="focusScope.autoFocusOnMount",y="focusScope.autoFocusOnUnmount",v={bubbles:!1,cancelable:!0},M=f.forwardRef((t,r)=>{let{loop:n=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=t,[u,l]=f.useState(null),c=(0,p.useCallbackRef)(a),d=(0,p.useCallbackRef)(o),M=f.useRef(null),S=(0,m.useComposedRefs)(r,t=>l(t)),P=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(i){let t=function(t){if(P.paused||!u)return;let r=t.target;u.contains(r)?M.current=r:w(M.current,{select:!0})},r=function(t){if(P.paused||!u)return;let r=t.relatedTarget;null!==r&&(u.contains(r)||w(M.current,{select:!0}))};document.addEventListener("focusin",t),document.addEventListener("focusout",r);let n=new MutationObserver(function(t){if(document.activeElement===document.body)for(let r of t)r.removedNodes.length>0&&w(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",r),n.disconnect()}}},[i,u,P.paused]),f.useEffect(()=>{if(u){I.add(P);let t=document.activeElement;if(!u.contains(t)){let r=new CustomEvent(b,v);u.addEventListener(b,c),u.dispatchEvent(r),r.defaultPrevented||(function(t,{select:r=!1}={}){let n=document.activeElement;for(let i of t)if(w(i,{select:r}),document.activeElement!==n)return}(j(u).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&w(u))}return()=>{u.removeEventListener(b,c),setTimeout(()=>{let r=new CustomEvent(y,v);u.addEventListener(y,d),u.dispatchEvent(r),r.defaultPrevented||w(t??document.body,{select:!0}),u.removeEventListener(y,d),I.remove(P)},0)}}},[u,c,d,P]);let N=f.useCallback(t=>{if(!n&&!i||P.paused)return;let r="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,a=document.activeElement;if(r&&a){let r=t.currentTarget,[i,o]=function(t){let r=j(t);return[A(r,t),A(r.reverse(),t)]}(r);i&&o?t.shiftKey||a!==o?t.shiftKey&&a===i&&(t.preventDefault(),n&&w(o,{select:!0})):(t.preventDefault(),n&&w(i,{select:!0})):a===r&&t.preventDefault()}},[n,i,P.paused]);return(0,g.jsx)(h.Primitive.div,{tabIndex:-1,...s,ref:S,onKeyDown:N})});function j(t){let r=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let r="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||r?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function A(t,r){for(let n of t)if(!function(t,{upTo:r}){if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===r||t!==r);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(n,{upTo:r}))return n}function w(t,{select:r=!1}={}){if(t&&t.focus){var n;let i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&(n=t)instanceof HTMLInputElement&&"select"in n&&r&&t.select()}}M.displayName="FocusScope";var I=function(){let t=[];return{add(r){let n=t[0];r!==n&&n?.pause(),(t=S(t,r)).unshift(r)},remove(r){t=S(t,r),t[0]?.resume()}}}();function S(t,r){let n=[...t],i=n.indexOf(r);return -1!==i&&n.splice(i,1),n}var P=M},99927:function(t,r,n){"use strict";var i=this&&this.__rest||function(t,r){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>r.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(t);a<i.length;a++)0>r.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(n[i[a]]=t[i[a]]);return n},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){let r=Object.assign(Object.assign({},(0,M.default)()),t),{_className:n="react-pdf__Page",_enableRegisterUnregisterPage:a=!0,canvasBackground:A,canvasRef:w,children:I,className:S,customRenderer:P,customTextRenderer:N,devicePixelRatio:O,error:x="Failed to load the page.",height:D,inputRef:L,loading:C="Loading page…",noData:k="No page specified.",onGetAnnotationsError:E,onGetAnnotationsSuccess:T,onGetStructTreeError:z,onGetStructTreeSuccess:W,onGetTextError:Z,onGetTextSuccess:R,onLoadError:Y,onLoadSuccess:_,onRenderAnnotationLayerError:G,onRenderAnnotationLayerSuccess:H,onRenderError:F,onRenderSuccess:V,onRenderTextLayerError:B,onRenderTextLayerSuccess:U,pageIndex:X,pageNumber:Q,pdf:J,registerPage:K,renderAnnotationLayer:q=!0,renderForms:$=!1,renderMode:ee="canvas",renderTextLayer:et=!0,rotate:er,scale:en=1,unregisterPage:ei,width:ea}=r,eo=i(r,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[es,eu]=(0,j.default)(),{value:el,error:ec}=es,ed=(0,s.useRef)(null);(0,f.default)(J,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");let ef=(0,v.isProvided)(Q)?Q-1:null!=X?X:null,em=null!=Q?Q:(0,v.isProvided)(X)?X+1:null,eh=null!=er?er:el?el.rotate:null,ep=(0,s.useMemo)(()=>{if(!el)return null;let t=1,r=null!=en?en:1;if(ea||D){let r=el.getViewport({scale:1,rotation:eh});ea?t=ea/r.width:D&&(t=D/r.height)}return r*t},[D,el,eh,en,ea]);(0,s.useEffect)(function(){return()=>{(0,v.isProvided)(ef)&&a&&ei&&ei(ef)}},[a,J,ef,ei]),(0,s.useEffect)(function(){eu({type:"RESET"})},[eu,J,ef]),(0,s.useEffect)(function(){if(!J||!em)return;let t=(0,u.default)(J.getPage(em));return t.promise.then(t=>{eu({type:"RESOLVE",value:t})}).catch(t=>{eu({type:"REJECT",error:t})}),()=>(0,v.cancelRunningTask)(t)},[eu,J,em]),(0,s.useEffect)(()=>{if(void 0!==el){if(!1===el)return void(ec&&((0,m.default)(!1,ec.toString()),Y&&Y(ec)));!function(){if(_){if(!el||!ep)return;_((0,v.makePageCallback)(el,ep))}if(a&&K){if(!(0,v.isProvided)(ef)||!ed.current)return;K(ef,ed.current)}}()}},[el,ep]);let eg=(0,s.useMemo)(()=>el&&(0,v.isProvided)(ef)&&em&&(0,v.isProvided)(eh)&&(0,v.isProvided)(ep)?{_className:n,canvasBackground:A,customTextRenderer:N,devicePixelRatio:O,onGetAnnotationsError:E,onGetAnnotationsSuccess:T,onGetStructTreeError:z,onGetStructTreeSuccess:W,onGetTextError:Z,onGetTextSuccess:R,onRenderAnnotationLayerError:G,onRenderAnnotationLayerSuccess:H,onRenderError:F,onRenderSuccess:V,onRenderTextLayerError:B,onRenderTextLayerSuccess:U,page:el,pageIndex:ef,pageNumber:em,renderForms:$,renderTextLayer:et,rotate:eh,scale:ep}:null,[n,A,N,O,E,T,z,W,Z,R,G,H,F,V,B,U,el,ef,em,$,et,eh,ep]),eb=(0,s.useMemo)(()=>(0,l.default)(eo,()=>el?ep?(0,v.makePageCallback)(el,ep):void 0:el),[eo,el,ep]),ey=`${ef}@${ep}/${eh}`;return(0,o.jsx)("div",Object.assign({className:(0,c.default)(n,S),"data-page-number":em,ref:(0,d.default)(L,ed),style:{"--scale-factor":`${ep}`,backgroundColor:A||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},eb,{children:em?null===J||null==el?(0,o.jsx)(p.default,{type:"loading",children:"function"==typeof C?C():C}):!1===J||!1===el?(0,o.jsx)(p.default,{type:"error",children:"function"==typeof x?x():x}):(0,o.jsxs)(h.default.Provider,{value:eg,children:[function(){switch(ee){case"custom":return(0,f.default)(P,'renderMode was set to "custom", but no customRenderer was passed.'),(0,o.jsx)(P,{},`${ey}_custom`);case"none":return null;default:return(0,o.jsx)(g.default,{canvasRef:w},`${ey}_canvas`)}}(),et?(0,o.jsx)(b.default,{},`${ey}_text`):null,q?(0,o.jsx)(y.default,{},`${ey}_annotations`):null,I]}):(0,o.jsx)(p.default,{type:"no-data",children:"function"==typeof k?k():k})}))};let o=n(74848),s=n(54953),u=a(n(4369)),l=a(n(10922)),c=a(n(71508)),d=a(n(94497)),f=a(n(17676)),m=a(n(9771)),h=a(n(47472)),p=a(n(94453)),g=a(n(80330)),b=a(n(12472)),y=a(n(75598)),v=n(61399),M=a(n(99556)),j=a(n(23096))},99943:(t,r,n)=>{"use strict";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of s(r))l.call(t,u)||u===n||a(t,u,{get:()=>r[u],enumerable:!(i=o(r,u))||i.enumerable});return t},d={};((t,r)=>{for(var n in r)a(t,n,{get:r[n],enumerable:!0})})(d,{Checkbox:()=>N,CheckboxIndicator:()=>x,Indicator:()=>E,Root:()=>k,createCheckboxScope:()=>I}),t.exports=c(a({},"__esModule",{value:!0}),d);var f=((t,r,n)=>(n=null!=t?i(u(t)):{},c(!r&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)))(n(54953)),m=n(10207),h=n(65628),p=n(1760),g=n(34690),b=n(88165),y=n(55745),v=n(22686),M=n(92658),j=n(74848),A="Checkbox",[w,I]=(0,h.createContextScope)(A),[S,P]=w(A),N=f.forwardRef((t,r)=>{let{__scopeCheckbox:n,name:i,checked:a,defaultChecked:o,required:s,disabled:u,value:l="on",onCheckedChange:c,form:d,...h}=t,[b,y]=f.useState(null),v=(0,m.useComposedRefs)(r,t=>y(t)),A=f.useRef(!1),w=!b||d||!!b.closest("form"),[I=!1,P]=(0,g.useControllableState)({prop:a,defaultProp:o,onChange:c}),N=f.useRef(I);return f.useEffect(()=>{let t=b?.form;if(t){let r=()=>P(N.current);return t.addEventListener("reset",r),()=>t.removeEventListener("reset",r)}},[b,P]),(0,j.jsxs)(S,{scope:n,state:I,disabled:u,children:[(0,j.jsx)(M.Primitive.button,{type:"button",role:"checkbox","aria-checked":L(I)?"mixed":I,"aria-required":s,"data-state":C(I),"data-disabled":u?"":void 0,disabled:u,value:l,...h,ref:v,onKeyDown:(0,p.composeEventHandlers)(t.onKeyDown,t=>{"Enter"===t.key&&t.preventDefault()}),onClick:(0,p.composeEventHandlers)(t.onClick,t=>{P(t=>!!L(t)||!t),w&&(A.current=t.isPropagationStopped(),A.current||t.stopPropagation())})}),w&&(0,j.jsx)(D,{control:b,bubbles:!A.current,name:i,value:l,checked:I,required:s,disabled:u,form:d,style:{transform:"translateX(-100%)"},defaultChecked:!L(o)&&o})]})});N.displayName=A;var O="CheckboxIndicator",x=f.forwardRef((t,r)=>{let{__scopeCheckbox:n,forceMount:i,...a}=t,o=P(O,n);return(0,j.jsx)(v.Presence,{present:i||L(o.state)||!0===o.state,children:(0,j.jsx)(M.Primitive.span,{"data-state":C(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:r,style:{pointerEvents:"none",...t.style}})})});x.displayName=O;var D=t=>{let{control:r,checked:n,bubbles:i=!0,defaultChecked:a,...o}=t,s=f.useRef(null),u=(0,b.usePrevious)(n),l=(0,y.useSize)(r);f.useEffect(()=>{let t=s.current,r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==n&&r){let a=new Event("click",{bubbles:i});t.indeterminate=L(n),r.call(t,!L(n)&&n),t.dispatchEvent(a)}},[u,n,i]);let c=f.useRef(!L(n)&&n);return(0,j.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??c.current,...o,tabIndex:-1,ref:s,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function L(t){return"indeterminate"===t}function C(t){return L(t)?"indeterminate":t?"checked":"unchecked"}var k=N,E=x},99980:(t,r,n)=>{"use strict";n.r(r)},99999:(t,r,n)=>{"use strict";function i(t){return(i="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})(t)}function a(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}Object.defineProperty(r,"__esModule",{value:!0});var o=(0,n(31635).__importStar)(n(54953)),s=n(47716);r.default=function(t){return o.createElement(s.SvgIcon,function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach(function(r){var a,o,s;a=t,o=r,s=n[r],(o=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(o))in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),o.createElement("path",{fill:"currentColor",d:"m21.25 12.85-6 6c-.48.46-1.21.47-1.7 0a1.21 1.21 0 0 1 0-1.7l3.96-3.95H3.6A1.2 1.2 0 0 1 2.4 12c0-.66.54-1.2 1.2-1.2h13.9l-3.95-3.95a1.21 1.21 0 0 1 0-1.7 1.21 1.21 0 0 1 1.7 0l6 6c.47.47.47 1.24 0 1.7Z"}))}}},r={};function n(i){var a=r[i];if(void 0!==a)return a.exports;var o=r[i]={id:i,loaded:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return n.d(r,{a:r}),r},n.d=(t,r)=>{for(var i in r)n.o(r,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.p="/mbui/",n.nc=void 0;var i=n(8129);module.exports=i})();
|