myrentokil-components-library 1.0.1985 → 1.0.1995
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/1219.bundle.js +1 -1
- package/dist/1409.bundle.js +1 -1
- package/dist/1751.bundle.js +1 -1
- package/dist/2182.bundle.js +1 -1
- package/dist/2304.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/1219.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/1409.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/1751.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/2182.bundle.js +1 -1
- package/dist/34.2.2/2304.bundle.js +2 -0
- package/dist/{34.2.1 → 34.2.2}/3623.bundle.js +1 -1
- package/dist/34.2.2/4271.bundle.js +2 -0
- package/dist/{34.2.1 → 34.2.2}/461.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/4689.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/477.bundle.js +1 -1
- package/dist/34.2.2/530.bundle.js +2 -0
- package/dist/{34.2.1 → 34.2.2}/5740.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/5762.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/5906.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/6300.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/6319.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/6655.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/6842.bundle.js +1 -1
- package/dist/34.2.2/7232.bundle.js +1 -0
- package/dist/{34.2.1 → 34.2.2}/7839.bundle.js +1 -1
- package/dist/34.2.2/8201.bundle.js +2 -0
- package/dist/34.2.2/8201.bundle.js.LICENSE.txt +6 -0
- package/dist/{34.2.1 → 34.2.2}/8242.bundle.js +1 -1
- package/dist/34.2.2/8267.bundle.js +2 -0
- package/dist/{34.2.1 → 34.2.2}/8364.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/8657.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/9112.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/9316.bundle.js +1 -1
- package/dist/{34.2.1 → 34.2.2}/9530.bundle.js +1 -1
- package/dist/34.2.2/9574.bundle.js +1 -0
- package/dist/34.2.2/@mf-types.34.2.2/Dialog.d.ts +75 -0
- package/dist/{34.2.1 → 34.2.2}/__types_index.json +1 -1
- package/dist/34.2.2/bundle.js +2 -0
- package/dist/34.2.2/remoteEntry.34.2.2.js +1 -0
- package/dist/3623.bundle.js +1 -1
- package/dist/4271.bundle.js +1 -1
- package/dist/461.bundle.js +1 -1
- package/dist/4689.bundle.js +1 -1
- package/dist/477.bundle.js +1 -1
- package/dist/530.bundle.js +1 -1
- package/dist/5740.bundle.js +1 -1
- package/dist/5762.bundle.js +1 -1
- package/dist/5906.bundle.js +1 -1
- package/dist/6300.bundle.js +1 -1
- package/dist/6319.bundle.js +1 -1
- package/dist/6655.bundle.js +1 -1
- package/dist/6842.bundle.js +1 -1
- package/dist/7232.bundle.js +1 -1
- package/dist/7839.bundle.js +1 -1
- package/dist/8201.bundle.js +2 -0
- package/dist/8201.bundle.js.LICENSE.txt +6 -0
- package/dist/8242.bundle.js +1 -1
- package/dist/8267.bundle.js +1 -1
- package/dist/8364.bundle.js +1 -1
- package/dist/8657.bundle.js +1 -1
- package/dist/9112.bundle.js +1 -1
- package/dist/9316.bundle.js +1 -1
- package/dist/9530.bundle.js +1 -1
- package/dist/9574.bundle.js +1 -0
- package/dist/@mf-types/Dialog.d.ts +75 -0
- package/dist/__types_index.json +1 -1
- package/dist/bundle.js +1 -1
- package/dist/remoteEntry.js +1 -1
- package/package.json +7 -3
- package/dist/34.2.1/2304.bundle.js +0 -2
- package/dist/34.2.1/4271.bundle.js +0 -2
- package/dist/34.2.1/530.bundle.js +0 -2
- package/dist/34.2.1/7232.bundle.js +0 -1
- package/dist/34.2.1/8267.bundle.js +0 -2
- package/dist/34.2.1/bundle.js +0 -2
- package/dist/34.2.1/remoteEntry.34.2.1.js +0 -1
- /package/dist/{34.2.1 → 34.2.2}/1267.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/1597.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/2182.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/2304.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/2543.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/2707.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/2824.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/3404.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/3623.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/4271.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/490f6760334fba39de8b.gif +0 -0
- /package/dist/{34.2.1 → 34.2.2}/5190.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/5190.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/530.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/5316.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/5482.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/5740.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/5906.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/5967.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/6300.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/6540.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/6540.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/6619.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/6812.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/6842.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/7487.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/7603.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/7723.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/7879.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/8267.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/8364.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/873.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/8e90e33d81939161e47a.png +0 -0
- /package/dist/{34.2.1 → 34.2.2}/9316.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/9530.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/9605.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/9605.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/961.bundle.js +0 -0
- /package/dist/{34.2.1 → 34.2.2}/961.bundle.js.LICENSE.txt +0 -0
- /package/dist/{34.2.1 → 34.2.2}/9810.bundle.js +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/ActivityGraph.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Alert.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Badge.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Breadcrumbs.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Button.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/ButtonNavigation.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Card.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Checkbox.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Chip.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Divider.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Dropdown.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/DropdownList.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Icon.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/LoadingSpinner.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Logo.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/MobileSearchSort.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Navbar.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Notes.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/NotificationsList.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/NotificationsModule.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/PestSelectionBox.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/RadioGroup.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/ReportCard.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Search.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/SelectionBox.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Sort.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/StepLoader.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/StepperBar.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Switch.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Table.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Textarea.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/TextareaWithLabel.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Tile.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Tooltip.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/Typography.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/UserInfo.d.ts +0 -0
- /package/dist/{34.2.1/@mf-types.34.2.1 → 34.2.2/@mf-types.34.2.2}/getCompoundValue.d.ts +0 -0
- /package/dist/{34.2.1 → 34.2.2}/bundle.js.LICENSE.txt +0 -0
package/dist/1219.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1219],{6300(n,r,o){o.r(r),o.d(r,{availableButtonVariants:()=>g,default:()=>w});var e,t,i,a,c=o(4848),s=o(3486),l=o(7656),d=o(8267);function p(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}var g={primary:"primary",secondary:"secondary",tertiary:"tertiary"},u={primary:{background:s.w4.colors["red-300"],border:s.w4.colors["red-300"],activeBackground:s.w4.colors["red-500"],hoverBackground:s.w4.colors["red-500"],secondaryHoverBackground:s.w4.colors["red-600"]},secondary:{background:s.w4.colors["blue-200"],border:s.w4.colors["blue-200"],activeBackground:s.w4.colors["blue-300"],hoverBackground:s.w4.colors["blue-300"],secondaryHoverBackground:s.w4.colors["blue-400"]}},f=d.Ay.button(e||(e=p(["\n width: ",";\n height: ",";\n min-height: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ",";\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1.2;\n border-radius: ",";\n cursor: ",";\n"])),(function(n){return n.width}),(function(n){return n.height}),s.w4.size.button.height.sm,(function(n){return n.padding}),s.w4.typography.fontFamily.nunito,(function(n){return n.fontWeight||s.w4.typography.fontWeight[400]}),s.w4.typography.fontSize[16],s.w4.borders.radius.sm,(function(n){return n.isDisable?"not-allowed":"pointer"})),h=(0,d.Ay)(f)(t||(t=p(["\n border: none;\n color: ",";\n background-color: ",";\n box-shadow: 0px "," "," 0px rgba(0, 0, 0, 0.1);\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: none;\n background-color: ",";\n }\n"])),s.w4.colors.white,(function(n){var r=n.isActive,o=n.isDisable,e=n.color;if(o)return s.w4.colors["gray-300"];var t="secondary"===e?u.secondary:u.primary;return r?t.activeBackground:t.background}),s.w4.spacing.xs,s.w4.spacing.xs,(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?u.secondary:u.primary).hoverBackground}),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?u.secondary:u.primary).background})),x=(0,d.Ay)(f)(i||(i=p(["\n border: ",";\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: "," solid transparent;\n background-color: ",";\n }\n"])),(function(n){var r=n.isDisable,o=n.color;if(r)return"".concat(s.w4.spacing.xxxs," solid ").concat(s.w4.colors["gray-300"]);var e="secondary"===o?u.secondary:u.primary;return"".concat(s.w4.spacing.xxxs," solid ").concat(e.border)}),(function(n){var r=n.isActive,o=n.isDisable,e=n.color;if(o)return s.w4.colors["gray-300"];var t="secondary"===e?u.secondary:u.primary;return r?s.w4.colors.white:t.border}),(function(n){return n.isActive?u.primary.activeBackground:s.w4.colors.white}),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors.white:("secondary"===o?u.secondary:u.primary).secondaryHoverBackground}),s.w4.spacing.xxxs,s.w4.colors.white),y=(0,d.Ay)(f)(a||(a=p(["\n border: none;\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: none;\n }\n"])),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?u.secondary:u.primary).border}),s.w4.colors.white,(function(n){return n.isDisable?s.w4.colors.white:s.w4.colors["gray-50"]}));const w=(0,l.forwardRef)((function(n,r){var o=n.onClick,e=n.height,t=void 0===e?"100%":e,i=n.width,a=void 0===i?"auto":i,l=n.padding,d=void 0===l?"".concat(s.w4.spacing.sm2," ").concat(s.w4.spacing.xxl):l,p=n.children,g=n.variant,u=void 0===g?"primary":g,f=n.isActive,w=n.isDisable,m=n.fontWeight,b=n.color,v=void 0===b?"primary":b,A=n.dataTestId,F=n.ariaLabel,k={primary:h,secondary:x,tertiary:y}[u];return(0,c.jsx)(k,{ref:r,"data-testid":A,"aria-label":F,type:"button",width:a,padding:d,isDisable:w,isActive:f,onClick:w?void 0:o,fontWeight:m,height:t,color:v,children:p})}))},8364(n,r,o){o.r(r),o.d(r,{availableChipVariants:()=>l,default:()=>p});var e,t,i,a=o(4848),c=o(3486),s=o(8267),l={primary:"primary",secondary:"secondary",tertiary:"tertiary",active:"active",inactive:"inactive",info:"info"},d=s.Ay.div(e||(t=["\n width: ",";\n height: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n color: ",";\n border: ",";\n background-color: ",";\n border-radius: ",";\n font-family: 'Roboto', sans-serif;\n font-size: ",";\n font-weight: ",";\n white-space: nowrap;\n"],i||(i=t.slice(0)),e=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(i)}}))),(function(n){return n.isEmpty?c.w4.spacing.md2:"fit-content"}),(function(n){return"sm"===n.size?c.w4.spacing.md:c.w4.spacing.md2}),(function(n){var r=n.isEmpty,o=n.size;return r?c.w4.spacing.zero:"sm"===o?"".concat(c.w4.spacing.zero," ").concat(c.w4.spacing.sm):"".concat(c.w4.spacing.zero," ").concat(c.w4.spacing.md)}),(function(n){var r=n.variant;return r===l.primary?c.w4.colors["red-200"]:r===l.secondary?c.w4.colors["green-200"]:r===l.tertiary?c.w4.colors["green-300"]:r===l.active?c.w4.colors["blue-800"]:r===l.info?c.w4.colors["green-100"]:c.w4.colors["green-300"]}),(function(n){var r=n.variant;return r===l.primary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["red-200"]):r===l.secondary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-200"]):r===l.tertiary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-300"]):r===l.active?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["blue-800"]):r===l.info?"".concat(c.w4.spacing.xxs," solid none"):"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-300"])}),(function(n){var r=n.variant;return r===l.primary?c.w4.colors["gray-200"]:r===l.secondary?c.w4.colors["green-500"]:r===l.tertiary?c.w4.colors["green-400"]:r===l.active?c.w4.colors["blue-500"]:r===l.info?c.w4.colors["gray-400"]:c.w4.colors["green-450"]}),c.w4.spacing.lg,(function(n){return"sm"===n.size?c.w4.typography.fontSize[10]:c.w4.typography.fontSize[12]}),c.w4.typography.fontWeight[500]);const p=function(n){var r=n.text,o=n.variant,e=n.size,t=void 0===e?"md":e;return(0,a.jsx)(d,{variant:o,isEmpty:""===r,size:t,children:r})}},8226(n,r,o){o.r(r),o.d(r,{availableIcons:()=>V,default:()=>K,iconsObj:()=>T});var e=o(4848),t=o(6028),i=o(9807),a=o(2289),c=o(4017),s=o(8407),l=o(833),d=o(8451),p=o(7562),g=o(3369),u=o(6383),f=o(7240),h=o(7034),x=o(8071),y=o(337),w=o(8597),m=o(7747),b=o(1656),v=o(2048),A=o(399),F=o(4521),k=o(4097),z=o(3420),I=o(7078),S=o(4202),C=o(3866),j=o(891),D=o(8842),_=o(6137),B=o(2790),E=o(2684),O=o(3341),W=o(1432),N=o(8302),H=o(4745),L=o(2182),M=o(3793),P=o(8835),R=o(6009),T={addCircleIcon:t.A,assistantIcon:i.A,autoAwesomeIcon:a.A,checkCircleOutlineIcon:s.A,circleIcon:g.A,closeIcon:u.A,checkIcon:c.A,checkCircleOutlineOutlinedIcon:l.A,chevronRightIcon:p.A,chevronLeftIcon:d.A,dashboardCustomizeIcon:f.A,descriptionIcon:y.A,errorOutlineOutlinedIcon:m.A,expandMoreIcon:v.A,expandLessIcon:b.A,fileDownloadIcon:A.A,folderIcon:F.A,folderOpenIcon:k.A,highlightOffIcon:z.A,highlightOffOutlined:I.A,homeRepairServiceIcon:C.A,homeIcon:S.A,infoOutlinedIcon:j.A,insightsIcon:D.A,mapHomeWorkIcon:B.A,mapIcon:_.A,menuIcon:E.A,notificationsIcon:O.A,personIcon:W.A,pestControlIcon:N.A,searchIcon:H.A,summarizeIcon:L.A,swapVertIcon:M.A,taskAltIcon:P.A,tourIcon:R.A,documentIcon:x.A,editIcon:w.A,deleteIcon:h.A},V=Object.keys(T).reduce((function(n,r){return n[r]=r,n}),{});const K=function(n){var r=n.size,o=n.color,t=void 0===o?"black":o,i=n.src,a=T[i],c={width:r.width,height:r.height,fill:t};return a?(0,e.jsx)(a,{style:c}):null}},1219(n,r,o){o.r(r),o.d(r,{default:()=>j});var e,t,i,a,c,s,l,d,p=o(4848),g=o(3486),u=o(6300),f=o(8364),h=o(8226),x=o(7656),y=o(8267);function w(n,r){(null==r||r>n.length)&&(r=n.length);for(var o=0,e=Array(r);o<r;o++)e[o]=n[o];return e}function m(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}var b={primary:"primary",secondary:"secondary",tertiary:"tertiary"},v=y.Ay.div(e||(e=m(["\n width: calc(100% - ",");\n padding: 0 ",";\n\n "," {\n padding: 0px;\n }\n"])),g.w4.spacing.xl,g.w4.spacing.md,g.w4.mediaQueries.xs),A=y.Ay.div(t||(t=m(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:hover {\n background: ",";\n }\n"])),g.w4.spacing.md,g.w4.spacing.sm,g.w4.colors["gray-5"]),F=y.Ay.div(i||(i=m(["\n display: flex;\n align-items: center;\n gap: ",";\n margin: 0px;\n padding: 0px;\n"])),g.w4.spacing.md),k=y.Ay.h4(a||(a=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n"])),g.w4.colors["green-100"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[16],g.w4.typography.fontWeight[700]),z=y.Ay.h4(c||(c=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n"])),g.w4.colors["green-100"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[16],g.w4.typography.fontWeight[400]),I=y.Ay.div(s||(s=m(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),S=y.Ay.h5(l||(l=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 90%;\n"])),g.w4.colors["blue-200"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[14],g.w4.typography.fontWeight[400]),C=y.Ay.div(d||(d=m(["\n transition: transform 0.3s ease-in-out;\n\n &:hover {\n transform: scaleX(1.1);\n }\n\n &:not(:hover) {\n transition: transform 0.3s ease-in-out 0.3s; /* Add a delay when transitioning back */\n transform: scaleX(1);\n }\n"])));const j=function(n){var r,o,e=n.items,t=n.buttonText,i=void 0===t?"View":t,a=n.onSelectItem,c=(0,x.useId)(),s=(r=(0,x.useState)(null),o=2,function(n){if(Array.isArray(n))return n}(r)||function(n,r){var o=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=o){var e,t,i,a,c=[],s=!0,l=!1;try{if(i=(o=o.call(n)).next,0===r){if(Object(o)!==o)return;s=!1}else for(;!(s=(e=i.call(o)).done)&&(c.push(e.value),c.length!==r);s=!0);}catch(n){l=!0,t=n}finally{try{if(!s&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(l)throw t}}return c}}(r,o)||function(n,r){if(n){if("string"==typeof n)return w(n,r);var o={}.toString.call(n).slice(8,-1);return"Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o?Array.from(n):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?w(n,r):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],d=s[1];return(0,p.jsx)(v,{children:e.map((function(n){var r=n.id,o=n.title,e=n.description,t=n.isNew,s=n.time,x=n.priority;return(0,p.jsxs)(A,{children:[(0,p.jsxs)(F,{children:[(0,p.jsx)(k,{children:o}),x&&(0,p.jsx)(C,{onMouseEnter:function(){return d(r)},onMouseLeave:function(){return d(null)},children:(0,p.jsx)(f.default,{variant:x,text:l===r?b[x].toUpperCase():""})}),(0,p.jsx)(z,{children:s})]}),(0,p.jsxs)(I,{children:[(0,p.jsx)(S,{children:e}),t&&(0,p.jsx)(h.default,{src:h.availableIcons.circleIcon,size:{width:8,height:8},color:g.w4.colors["blue-200"]})]}),(0,p.jsx)(u.default,{width:"116px",padding:"".concat(g.w4.spacing.sm1," ").concat(g.w4.spacing.xl1),variant:u.availableButtonVariants.primary,onClick:function(){return a(r)},color:"secondary",children:i})]},"notification-".concat(c,"-").concat(r))}))})}},3486(n,r,o){o.d(r,{DT:()=>l,EP:()=>c,Fy:()=>a,Il:()=>d,KK:()=>t,kg:()=>i,oP:()=>s,w4:()=>p});var e=document.createElement("style");e.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(e);var t=600,i=768,a=1074,c=1200,s=1440,l=1920,d={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},p={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:d,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)"},mediaQueries:{xs:"@media (max-width: ".concat(t,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(c,"px)"),lg:"@media (max-width: ".concat(s,"px)"),xl:"@media (max-width: ".concat(l,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1219],{6300(n,r,o){o.r(r),o.d(r,{availableButtonVariants:()=>g,default:()=>w});var e,t,i,a,c=o(4848),s=o(3486),l=o(7656),d=o(8267);function p(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}var g={primary:"primary",secondary:"secondary",tertiary:"tertiary"},f={primary:{background:s.w4.colors["red-300"],border:s.w4.colors["red-300"],activeBackground:s.w4.colors["red-500"],hoverBackground:s.w4.colors["red-500"],secondaryHoverBackground:s.w4.colors["red-600"]},secondary:{background:s.w4.colors["blue-200"],border:s.w4.colors["blue-200"],activeBackground:s.w4.colors["blue-300"],hoverBackground:s.w4.colors["blue-300"],secondaryHoverBackground:s.w4.colors["blue-400"]}},u=d.Ay.button(e||(e=p(["\n width: ",";\n height: ",";\n min-height: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ",";\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1.2;\n border-radius: ",";\n cursor: ",";\n"])),(function(n){return n.width}),(function(n){return n.height}),s.w4.size.button.height.sm,(function(n){return n.padding}),s.w4.typography.fontFamily.nunito,(function(n){return n.fontWeight||s.w4.typography.fontWeight[400]}),s.w4.typography.fontSize[16],s.w4.borders.radius.sm,(function(n){return n.isDisable?"not-allowed":"pointer"})),x=(0,d.Ay)(u)(t||(t=p(["\n border: none;\n color: ",";\n background-color: ",";\n box-shadow: 0px "," "," 0px rgba(0, 0, 0, 0.1);\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: none;\n background-color: ",";\n }\n"])),s.w4.colors.white,(function(n){var r=n.isActive,o=n.isDisable,e=n.color;if(o)return s.w4.colors["gray-300"];var t="secondary"===e?f.secondary:f.primary;return r?t.activeBackground:t.background}),s.w4.spacing.xs,s.w4.spacing.xs,(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?f.secondary:f.primary).hoverBackground}),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?f.secondary:f.primary).background})),h=(0,d.Ay)(u)(i||(i=p(["\n border: ",";\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: "," solid transparent;\n background-color: ",";\n }\n"])),(function(n){var r=n.isDisable,o=n.color;if(r)return"".concat(s.w4.spacing.xxxs," solid ").concat(s.w4.colors["gray-300"]);var e="secondary"===o?f.secondary:f.primary;return"".concat(s.w4.spacing.xxxs," solid ").concat(e.border)}),(function(n){var r=n.isActive,o=n.isDisable,e=n.color;if(o)return s.w4.colors["gray-300"];var t="secondary"===e?f.secondary:f.primary;return r?s.w4.colors.white:t.border}),(function(n){return n.isActive?f.primary.activeBackground:s.w4.colors.white}),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors.white:("secondary"===o?f.secondary:f.primary).secondaryHoverBackground}),s.w4.spacing.xxxs,s.w4.colors.white),y=(0,d.Ay)(u)(a||(a=p(["\n border: none;\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: none;\n }\n"])),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?f.secondary:f.primary).border}),s.w4.colors.white,(function(n){return n.isDisable?s.w4.colors.white:s.w4.colors["gray-50"]}));const w=(0,l.forwardRef)((function(n,r){var o=n.onClick,e=n.height,t=void 0===e?"100%":e,i=n.width,a=void 0===i?"auto":i,l=n.padding,d=void 0===l?"".concat(s.w4.spacing.sm2," ").concat(s.w4.spacing.xxl):l,p=n.children,g=n.variant,f=void 0===g?"primary":g,u=n.isActive,w=n.isDisable,m=n.fontWeight,b=n.color,v=void 0===b?"primary":b,A=n.dataTestId,F=n.ariaLabel,k={primary:x,secondary:h,tertiary:y}[f];return(0,c.jsx)(k,{ref:r,"data-testid":A,"aria-label":F,type:"button",width:a,padding:d,isDisable:w,isActive:u,onClick:w?void 0:o,fontWeight:m,height:t,color:v,children:p})}))},8364(n,r,o){o.r(r),o.d(r,{availableChipVariants:()=>l,default:()=>p});var e,t,i,a=o(4848),c=o(3486),s=o(8267),l={primary:"primary",secondary:"secondary",tertiary:"tertiary",active:"active",inactive:"inactive",info:"info"},d=s.Ay.div(e||(t=["\n width: ",";\n height: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n color: ",";\n border: ",";\n background-color: ",";\n border-radius: ",";\n font-family: 'Roboto', sans-serif;\n font-size: ",";\n font-weight: ",";\n white-space: nowrap;\n"],i||(i=t.slice(0)),e=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(i)}}))),(function(n){return n.isEmpty?c.w4.spacing.md2:"fit-content"}),(function(n){return"sm"===n.size?c.w4.spacing.md:c.w4.spacing.md2}),(function(n){var r=n.isEmpty,o=n.size;return r?c.w4.spacing.zero:"sm"===o?"".concat(c.w4.spacing.zero," ").concat(c.w4.spacing.sm):"".concat(c.w4.spacing.zero," ").concat(c.w4.spacing.md)}),(function(n){var r=n.variant;return r===l.primary?c.w4.colors["red-200"]:r===l.secondary?c.w4.colors["green-200"]:r===l.tertiary?c.w4.colors["green-300"]:r===l.active?c.w4.colors["blue-800"]:r===l.info?c.w4.colors["green-100"]:c.w4.colors["green-300"]}),(function(n){var r=n.variant;return r===l.primary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["red-200"]):r===l.secondary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-200"]):r===l.tertiary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-300"]):r===l.active?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["blue-800"]):r===l.info?"".concat(c.w4.spacing.xxs," solid none"):"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-300"])}),(function(n){var r=n.variant;return r===l.primary?c.w4.colors["gray-200"]:r===l.secondary?c.w4.colors["green-500"]:r===l.tertiary?c.w4.colors["green-400"]:r===l.active?c.w4.colors["blue-500"]:r===l.info?c.w4.colors["gray-400"]:c.w4.colors["green-450"]}),c.w4.spacing.lg,(function(n){return"sm"===n.size?c.w4.typography.fontSize[10]:c.w4.typography.fontSize[12]}),c.w4.typography.fontWeight[500]);const p=function(n){var r=n.text,o=n.variant,e=n.size,t=void 0===e?"md":e;return(0,a.jsx)(d,{variant:o,isEmpty:""===r,size:t,children:r})}},8226(n,r,o){o.r(r),o.d(r,{availableIcons:()=>V,default:()=>K,iconsObj:()=>T});var e=o(4848),t=o(6028),i=o(9807),a=o(2289),c=o(4017),s=o(8407),l=o(833),d=o(8451),p=o(7562),g=o(3369),f=o(6383),u=o(7240),x=o(7034),h=o(8071),y=o(337),w=o(8597),m=o(7747),b=o(1656),v=o(2048),A=o(399),F=o(4521),k=o(4097),z=o(3420),I=o(7078),S=o(4202),C=o(3866),_=o(891),j=o(8842),D=o(6137),B=o(2790),E=o(2684),O=o(3341),W=o(1432),N=o(8302),H=o(4745),L=o(2182),M=o(3793),P=o(8835),R=o(6009),T={addCircleIcon:t.A,assistantIcon:i.A,autoAwesomeIcon:a.A,checkCircleOutlineIcon:s.A,circleIcon:g.A,closeIcon:f.A,checkIcon:c.A,checkCircleOutlineOutlinedIcon:l.A,chevronRightIcon:p.A,chevronLeftIcon:d.A,dashboardCustomizeIcon:u.A,descriptionIcon:y.A,errorOutlineOutlinedIcon:m.A,expandMoreIcon:v.A,expandLessIcon:b.A,fileDownloadIcon:A.A,folderIcon:F.A,folderOpenIcon:k.A,highlightOffIcon:z.A,highlightOffOutlined:I.A,homeRepairServiceIcon:C.A,homeIcon:S.A,infoOutlinedIcon:_.A,insightsIcon:j.A,mapHomeWorkIcon:B.A,mapIcon:D.A,menuIcon:E.A,notificationsIcon:O.A,personIcon:W.A,pestControlIcon:N.A,searchIcon:H.A,summarizeIcon:L.A,swapVertIcon:M.A,taskAltIcon:P.A,tourIcon:R.A,documentIcon:h.A,editIcon:w.A,deleteIcon:x.A},V=Object.keys(T).reduce((function(n,r){return n[r]=r,n}),{});const K=function(n){var r=n.size,o=n.color,t=void 0===o?"black":o,i=n.src,a=T[i],c={width:r.width,height:r.height,fill:t};return a?(0,e.jsx)(a,{style:c}):null}},1219(n,r,o){o.r(r),o.d(r,{default:()=>_});var e,t,i,a,c,s,l,d,p=o(4848),g=o(3486),f=o(6300),u=o(8364),x=o(8226),h=o(7656),y=o(8267);function w(n,r){(null==r||r>n.length)&&(r=n.length);for(var o=0,e=Array(r);o<r;o++)e[o]=n[o];return e}function m(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}var b={primary:"primary",secondary:"secondary",tertiary:"tertiary"},v=y.Ay.div(e||(e=m(["\n width: calc(100% - ",");\n padding: 0 ",";\n\n "," {\n padding: 0px;\n }\n"])),g.w4.spacing.xl,g.w4.spacing.md,g.w4.mediaQueries.xs),A=y.Ay.div(t||(t=m(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:hover {\n background: ",";\n }\n"])),g.w4.spacing.md,g.w4.spacing.sm,g.w4.colors["gray-5"]),F=y.Ay.div(i||(i=m(["\n display: flex;\n align-items: center;\n gap: ",";\n margin: 0px;\n padding: 0px;\n"])),g.w4.spacing.md),k=y.Ay.h4(a||(a=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n"])),g.w4.colors["green-100"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[16],g.w4.typography.fontWeight[700]),z=y.Ay.h4(c||(c=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n"])),g.w4.colors["green-100"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[16],g.w4.typography.fontWeight[400]),I=y.Ay.div(s||(s=m(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),S=y.Ay.h5(l||(l=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 90%;\n"])),g.w4.colors["blue-200"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[14],g.w4.typography.fontWeight[400]),C=y.Ay.div(d||(d=m(["\n transition: transform 0.3s ease-in-out;\n\n &:hover {\n transform: scaleX(1.1);\n }\n\n &:not(:hover) {\n transition: transform 0.3s ease-in-out 0.3s; /* Add a delay when transitioning back */\n transform: scaleX(1);\n }\n"])));const _=function(n){var r,o,e=n.items,t=n.buttonText,i=void 0===t?"View":t,a=n.onSelectItem,c=(0,h.useId)(),s=(r=(0,h.useState)(null),o=2,function(n){if(Array.isArray(n))return n}(r)||function(n,r){var o=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=o){var e,t,i,a,c=[],s=!0,l=!1;try{if(i=(o=o.call(n)).next,0===r){if(Object(o)!==o)return;s=!1}else for(;!(s=(e=i.call(o)).done)&&(c.push(e.value),c.length!==r);s=!0);}catch(n){l=!0,t=n}finally{try{if(!s&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(l)throw t}}return c}}(r,o)||function(n,r){if(n){if("string"==typeof n)return w(n,r);var o={}.toString.call(n).slice(8,-1);return"Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o?Array.from(n):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?w(n,r):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],d=s[1];return(0,p.jsx)(v,{children:e.map((function(n){var r=n.id,o=n.title,e=n.description,t=n.isNew,s=n.time,h=n.priority;return(0,p.jsxs)(A,{children:[(0,p.jsxs)(F,{children:[(0,p.jsx)(k,{children:o}),h&&(0,p.jsx)(C,{onMouseEnter:function(){return d(r)},onMouseLeave:function(){return d(null)},children:(0,p.jsx)(u.default,{variant:h,text:l===r?b[h].toUpperCase():""})}),(0,p.jsx)(z,{children:s})]}),(0,p.jsxs)(I,{children:[(0,p.jsx)(S,{children:e}),t&&(0,p.jsx)(x.default,{src:x.availableIcons.circleIcon,size:{width:8,height:8},color:g.w4.colors["blue-200"]})]}),(0,p.jsx)(f.default,{width:"116px",padding:"".concat(g.w4.spacing.sm1," ").concat(g.w4.spacing.xl1),variant:f.availableButtonVariants.primary,onClick:function(){return a(r)},color:"secondary",children:i})]},"notification-".concat(c,"-").concat(r))}))})}},3486(n,r,o){o.d(r,{DT:()=>l,EP:()=>c,Fy:()=>a,Il:()=>d,KK:()=>t,kg:()=>i,oP:()=>s,w4:()=>p});var e=document.createElement("style");e.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(e);var t=600,i=768,a=1074,c=1200,s=1440,l=1920,d={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},p={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:d,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)",dialog_background:"#ffffff",dialog_muted_foreground:"#AAAAAA",dialog_overlay:"rgba(0, 0, 0, 0.5)",dialog_accent:"#F5F5F5",dialog_ring:"#007DC5",dialog_ring_offset:"#ffffff",dialog_border:"#e0e0e0"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)","drop-shadow-dialog":"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)"},mediaQueries:{xs:"@media (max-width: ".concat(t,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(c,"px)"),lg:"@media (max-width: ".concat(s,"px)"),xl:"@media (max-width: ".concat(l,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}}}]);
|
package/dist/1409.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1409],{1409(e,n,t){t.r(n),t.d(n,{TableBody:()=>ae,TableComponent:()=>ie,TableData:()=>de,TableHead:()=>se,TableHeadData:()=>ce,TableHeadRow:()=>le,TableRow:()=>pe,TableWrapper:()=>re,default:()=>xe});var o=t(4848),r=t(29),i=t(3486),a=t(1023),s=t(8587),l=t(8168),p=t(5804),c=t(4164),d=t(1317),h=t(1609),u=t(5659),f=t(7540),x=t(8749),m=t(3571);const g=["ownerState"],y=["variants"],w=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const A=(0,x.A)(),v=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function F({defaultTheme:e,theme:n,themeId:t}){return o=n,0===Object.keys(o).length?e:n[t]||n;var o}function S(e){return e?(n,t)=>t[e]:null}function k(e,n){let{ownerState:t}=n,o=(0,s.A)(n,g);const r="function"==typeof e?e((0,l.A)({ownerState:t},o)):e;if(Array.isArray(r))return r.flatMap((e=>k(e,(0,l.A)({ownerState:t},o))));if(r&&"object"==typeof r&&Array.isArray(r.variants)){const{variants:e=[]}=r;let n=(0,s.A)(r,y);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,l.A)({ownerState:t},o,t)):Object.keys(e.props).forEach((n=>{(null==t?void 0:t[n])!==e.props[n]&&o[n]!==e.props[n]&&(r=!1)})),r&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,l.A)({ownerState:t},o,t)):e.style))})),n}return r}const j=function(e={}){const{themeId:n,defaultTheme:t=A,rootShouldForwardProp:o=b,slotShouldForwardProp:r=b}=e,i=e=>(0,m.A)((0,l.A)({},e,{theme:F((0,l.A)({},e,{defaultTheme:t,themeId:n}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,f.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:c,skipVariantsResolver:h,skipSx:u,overridesResolver:x=S(v(c))}=a,m=(0,s.A)(a,w),g=void 0!==h?h:c&&"Root"!==c&&"root"!==c||!1,y=u||!1;let A=b;"Root"===c||"root"===c?A=o:c?A=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const j=(0,f.default)(e,(0,l.A)({shouldForwardProp:A,label:void 0},m)),C=e=>"function"==typeof e&&e.__emotion_real!==e||(0,d.Q)(e)?o=>k(e,(0,l.A)({},o,{theme:F({theme:o.theme,defaultTheme:t,themeId:n})})):e,_=(o,...r)=>{let a=C(o);const s=r?r.map(C):[];p&&x&&s.push((e=>{const o=F((0,l.A)({},e,{defaultTheme:t,themeId:n}));if(!o.components||!o.components[p]||!o.components[p].styleOverrides)return null;const r=o.components[p].styleOverrides,i={};return Object.entries(r).forEach((([n,t])=>{i[n]=k(t,(0,l.A)({},e,{theme:o}))})),x(e,i)})),p&&!g&&s.push((e=>{var o;const r=F((0,l.A)({},e,{defaultTheme:t,themeId:n}));return k({variants:null==r||null==(o=r.components)||null==(o=o[p])?void 0:o.variants},(0,l.A)({},e,{theme:r}))})),y||s.push(i);const c=s.length-r.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");a=[...o,...e],a.raw=[...o.raw,...e]}const d=j(a,...s);return e.muiName&&(d.muiName=e.muiName),d};return j.withConfig&&(_.withConfig=j.withConfig),_}}(),C=j;var _=t(7379),z=t(5684);const E=(0,x.A)(),N=function(e=E){return function(e=null){const n=p.useContext(z.T);return n&&(t=n,0!==Object.keys(t).length)?n:e;var t}(e)};var D=t(9599),T=t(9452),W=t(8248);const B=["component","direction","spacing","divider","children","className","useFlexGap"],R=(0,x.A)(),O=C("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>n.root});function I(e){return function({props:e,name:n,defaultTheme:t,themeId:o}){let r=N(t);o&&(r=r[o]||r);const i=function(e){const{theme:n,name:t,props:o}=e;return n&&n.components&&n.components[t]&&n.components[t].defaultProps?(0,_.A)(n.components[t].defaultProps,o):o}({theme:r,name:n,props:e});return i}({props:e,name:"MuiStack",defaultTheme:R})}function P(e,n){const t=p.Children.toArray(e).filter(Boolean);return t.reduce(((e,o,r)=>(e.push(o),r<t.length-1&&e.push(p.cloneElement(n,{key:`separator-${r}`})),e)),[])}const Q=({ownerState:e,theme:n})=>{let t=(0,l.A)({display:"flex",flexDirection:"column"},(0,T.NI)({theme:n},(0,T.kW)({values:e.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const o=(0,W.LX)(n),r=Object.keys(n.breakpoints.values).reduce(((n,t)=>(("object"==typeof e.spacing&&null!=e.spacing[t]||"object"==typeof e.direction&&null!=e.direction[t])&&(n[t]=!0),n)),{}),i=(0,T.kW)({values:e.direction,base:r}),a=(0,T.kW)({values:e.spacing,base:r});"object"==typeof i&&Object.keys(i).forEach(((e,n,t)=>{if(!i[e]){const o=n>0?i[t[n-1]]:"column";i[e]=o}}));const s=(n,t)=>{return e.useFlexGap?{gap:(0,W._W)(o,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r=t?i[t]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r]}`]:(0,W._W)(o,n)}};var r};t=(0,d.A)(t,(0,T.NI)({theme:n},a,s))}return t=(0,T.iZ)(n.breakpoints,t),t};var H=t(9851),K=t(5607);const M=function(e={}){const{createStyledComponent:n=O,useThemeProps:t=I,componentName:r="MuiStack"}=e,i=n(Q),a=p.forwardRef((function(e,n){const a=t(e),p=(0,D.A)(a),{component:d="div",direction:f="column",spacing:x=0,divider:m,children:g,className:y,useFlexGap:w=!1}=p,b=(0,s.A)(p,B),A={direction:f,spacing:x,useFlexGap:w},v=(0,u.A)({root:["root"]},(e=>(0,h.Ay)(r,e)),{});return(0,o.jsx)(i,(0,l.A)({as:d,ownerState:A,ref:n,className:(0,c.A)(v.root,y)},b,{children:m?P(g,m):g}))}));return a}({createStyledComponent:(0,H.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>n.root}),useThemeProps:e=>(0,K.b)({props:e,name:"MuiStack"})}),L=M;var G,$,V,U,X,Z,q,J,Y,ee,ne=t(7656),te=t(8267);function oe(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var re=te.Ay.div(G||(G=oe(["\n width: 100%;\n overflow-x: auto;\n"]))),ie=te.Ay.table($||($=oe(["\n padding: "," ",";\n background: ",";\n border-collapse: collapse;\n width: 100%;\n table-layout: auto;\n\n "," {\n display: block;\n border: none;\n }\n"])),i.w4.spacing.md,i.w4.spacing.zero,i.w4.colors.white,i.w4.mediaQueries.xs),ae=te.Ay.tbody(V||(V=oe(["\n overflow-x: auto;\n\n "," {\n display: block;\n }\n"])),i.w4.mediaQueries.xs),se=te.Ay.thead(U||(U=oe(["\n background: ",";\n\n "," {\n display: none;\n }\n"])),i.w4.colors.white,i.w4.mediaQueries.xs),le=te.Ay.tr(X||(X=oe(["\n :first-child {\n background: ",";\n }\n\n height: ",";\n"])),i.w4.colors.white,i.w4.spacing.xxl1),pe=te.Ay.tr(Z||(Z=oe(["\n position: relative;\n\n :nth-child(odd) {\n background: ",";\n }\n\n height: ",";\n padding: "," ",";\n\n "," {\n display: flex;\n flex-flow: column wrap;\n align-items: flex-start;\n justify-content: space-between;\n height: auto;\n gap: ",";\n }\n"])),i.w4.colors["gray-f4"],i.w4.spacing.xxl1,i.w4.spacing.sm,i.w4.spacing.md,i.w4.mediaQueries.xs,i.w4.spacing.sm),ce=te.Ay.th(q||(q=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: end;\n color: ",";\n min-width: ",";\n\n &:not(:first-child),\n &:not(:last-child) {\n padding: "," ",";\n }\n\n &:first-child {\n padding-left: ",";\n text-align: start;\n }\n\n @media (min-width: ","px) {\n &:first-child {\n width: 40%;\n }\n }\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors["green-100"],i.w4.spacing.xxl1,i.w4.spacing.zero,i.w4.spacing.sm,i.w4.spacing.lg,i.KK),de=te.Ay.td(J||(J=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: end;\n color: ",";\n vertical-align: middle;\n\n &:not(:first-child),\n &:not(:last-child) {\n padding: "," ",";\n }\n\n &:not(:first-child) {\n color: ",";\n width: auto;\n }\n\n &:first-child {\n padding-left: ",";\n text-align: start;\n }\n\n "," {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ",";\n }\n\n @media (min-width: ","px) {\n :first-child {\n width: 40%;\n }\n }\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors["gray-100"],i.w4.spacing.zero,i.w4.spacing.sm,i.w4.colors["green-100"],i.w4.spacing.lg,i.w4.mediaQueries.xs,i.w4.spacing.zero,i.KK),he=te.Ay.h2(Y||(Y=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: center;\n color: ",";\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[600],i.w4.typography.fontSize[32],i.w4.colors["green-100"]),ue=te.Ay.h3(ee||(ee=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: center;\n color: ",";\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors.black),fe=function(e){var n=e.title,t=e.message;return(0,o.jsxs)("div",{children:[(0,o.jsx)(he,{children:n}),(0,o.jsx)(ue,{children:t})]})};const xe=function(e){var n=e.columns,t=e.rows,i=e.noData,s=e.isLoading,l="xs"===(0,r.A)().mediaQuery;if(0===t.length&&!s)return(0,o.jsx)(fe,{title:(null==i?void 0:i.title)||"No data found",message:(null==i?void 0:i.text)||"Please try again later"});var p=function(e,n,t){return e.renderCell?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(de,{children:e.renderCell(n,t)},"".concat(n.id,"-").concat(t))}):(0,o.jsx)(de,{children:n[e.field]},"".concat(n.id,"-").concat(t))};return(0,o.jsx)(re,{children:s?(0,o.jsxs)(L,{spacing:1,children:[(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50}),(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50}),(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50})]}):(0,o.jsxs)(ie,{children:[(0,o.jsx)(se,{children:(0,o.jsx)(le,{children:n.map((function(e,n){return(0,o.jsx)(ce,{children:e.label},"table-head-".concat(n))}))})}),(0,o.jsx)(ae,{children:t.map((function(e,t){return(0,o.jsx)(pe,{children:l?p(n[0],e,t):n.map((function(n,t){return(0,o.jsx)(ne.Fragment,{children:p(n,e,t)},t)}))},"table-row-".concat(e.id,"-").concat(t))}))})]})})}},29(e,n,t){t.d(n,{A:()=>o.A});var o=t(3663)},3663(e,n,t){t.d(n,{A:()=>d});var o=t(3486),r=t(7656);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var a=o.KK,s=o.Fy,l=o.EP,p=o.oP,c=(o.DT,function(e){return e<=a?"xs":e<=s?"sm":e<=l?"md":e<=p?"lg":"xl"});const d=function(){var e,n,t=(e=(0,r.useState)({width:window.innerWidth,mediaQuery:c(window.innerWidth)}),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,s=[],l=!0,p=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(o=i.call(t)).done)&&(s.push(o.value),s.length!==n);l=!0);}catch(e){p=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(p)throw r}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return i(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=t[0],a=t[1];return(0,r.useEffect)((function(){var e=function(){var e=window.innerWidth,n={width:e,mediaQuery:c(e)};a((function(e){return e.mediaQuery===n.mediaQuery?e:n}))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),o}},3486(e,n,t){t.d(n,{DT:()=>p,EP:()=>s,Fy:()=>a,Il:()=>c,KK:()=>r,kg:()=>i,oP:()=>l,w4:()=>d});var o=document.createElement("style");o.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(o);var r=600,i=768,a=1074,s=1200,l=1440,p=1920,c={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},d={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:c,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)"},mediaQueries:{xs:"@media (max-width: ".concat(r,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(s,"px)"),lg:"@media (max-width: ".concat(l,"px)"),xl:"@media (max-width: ".concat(p,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1409],{1409(e,n,t){t.r(n),t.d(n,{TableBody:()=>ae,TableComponent:()=>ie,TableData:()=>de,TableHead:()=>se,TableHeadData:()=>ce,TableHeadRow:()=>le,TableRow:()=>pe,TableWrapper:()=>re,default:()=>xe});var o=t(4848),r=t(29),i=t(3486),a=t(1023),s=t(8587),l=t(8168),p=t(5804),c=t(4164),d=t(1317),h=t(1609),f=t(5659),u=t(7540),x=t(8749),g=t(3571);const m=["ownerState"],y=["variants"],w=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const A=(0,x.A)(),v=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function F({defaultTheme:e,theme:n,themeId:t}){return o=n,0===Object.keys(o).length?e:n[t]||n;var o}function S(e){return e?(n,t)=>t[e]:null}function _(e,n){let{ownerState:t}=n,o=(0,s.A)(n,m);const r="function"==typeof e?e((0,l.A)({ownerState:t},o)):e;if(Array.isArray(r))return r.flatMap((e=>_(e,(0,l.A)({ownerState:t},o))));if(r&&"object"==typeof r&&Array.isArray(r.variants)){const{variants:e=[]}=r;let n=(0,s.A)(r,y);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,l.A)({ownerState:t},o,t)):Object.keys(e.props).forEach((n=>{(null==t?void 0:t[n])!==e.props[n]&&o[n]!==e.props[n]&&(r=!1)})),r&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,l.A)({ownerState:t},o,t)):e.style))})),n}return r}const k=function(e={}){const{themeId:n,defaultTheme:t=A,rootShouldForwardProp:o=b,slotShouldForwardProp:r=b}=e,i=e=>(0,g.A)((0,l.A)({},e,{theme:F((0,l.A)({},e,{defaultTheme:t,themeId:n}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,u.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:c,skipVariantsResolver:h,skipSx:f,overridesResolver:x=S(v(c))}=a,g=(0,s.A)(a,w),m=void 0!==h?h:c&&"Root"!==c&&"root"!==c||!1,y=f||!1;let A=b;"Root"===c||"root"===c?A=o:c?A=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const k=(0,u.default)(e,(0,l.A)({shouldForwardProp:A,label:void 0},g)),C=e=>"function"==typeof e&&e.__emotion_real!==e||(0,d.Q)(e)?o=>_(e,(0,l.A)({},o,{theme:F({theme:o.theme,defaultTheme:t,themeId:n})})):e,j=(o,...r)=>{let a=C(o);const s=r?r.map(C):[];p&&x&&s.push((e=>{const o=F((0,l.A)({},e,{defaultTheme:t,themeId:n}));if(!o.components||!o.components[p]||!o.components[p].styleOverrides)return null;const r=o.components[p].styleOverrides,i={};return Object.entries(r).forEach((([n,t])=>{i[n]=_(t,(0,l.A)({},e,{theme:o}))})),x(e,i)})),p&&!m&&s.push((e=>{var o;const r=F((0,l.A)({},e,{defaultTheme:t,themeId:n}));return _({variants:null==r||null==(o=r.components)||null==(o=o[p])?void 0:o.variants},(0,l.A)({},e,{theme:r}))})),y||s.push(i);const c=s.length-r.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");a=[...o,...e],a.raw=[...o.raw,...e]}const d=k(a,...s);return e.muiName&&(d.muiName=e.muiName),d};return k.withConfig&&(j.withConfig=k.withConfig),j}}(),C=k;var j=t(7379),z=t(5684);const E=(0,x.A)(),N=function(e=E){return function(e=null){const n=p.useContext(z.T);return n&&(t=n,0!==Object.keys(t).length)?n:e;var t}(e)};var D=t(9599),T=t(9452),W=t(8248);const B=["component","direction","spacing","divider","children","className","useFlexGap"],R=(0,x.A)(),O=C("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>n.root});function I(e){return function({props:e,name:n,defaultTheme:t,themeId:o}){let r=N(t);o&&(r=r[o]||r);const i=function(e){const{theme:n,name:t,props:o}=e;return n&&n.components&&n.components[t]&&n.components[t].defaultProps?(0,j.A)(n.components[t].defaultProps,o):o}({theme:r,name:n,props:e});return i}({props:e,name:"MuiStack",defaultTheme:R})}function P(e,n){const t=p.Children.toArray(e).filter(Boolean);return t.reduce(((e,o,r)=>(e.push(o),r<t.length-1&&e.push(p.cloneElement(n,{key:`separator-${r}`})),e)),[])}const Q=({ownerState:e,theme:n})=>{let t=(0,l.A)({display:"flex",flexDirection:"column"},(0,T.NI)({theme:n},(0,T.kW)({values:e.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const o=(0,W.LX)(n),r=Object.keys(n.breakpoints.values).reduce(((n,t)=>(("object"==typeof e.spacing&&null!=e.spacing[t]||"object"==typeof e.direction&&null!=e.direction[t])&&(n[t]=!0),n)),{}),i=(0,T.kW)({values:e.direction,base:r}),a=(0,T.kW)({values:e.spacing,base:r});"object"==typeof i&&Object.keys(i).forEach(((e,n,t)=>{if(!i[e]){const o=n>0?i[t[n-1]]:"column";i[e]=o}}));const s=(n,t)=>{return e.useFlexGap?{gap:(0,W._W)(o,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r=t?i[t]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r]}`]:(0,W._W)(o,n)}};var r};t=(0,d.A)(t,(0,T.NI)({theme:n},a,s))}return t=(0,T.iZ)(n.breakpoints,t),t};var H=t(9851),K=t(5607);const M=function(e={}){const{createStyledComponent:n=O,useThemeProps:t=I,componentName:r="MuiStack"}=e,i=n(Q),a=p.forwardRef((function(e,n){const a=t(e),p=(0,D.A)(a),{component:d="div",direction:u="column",spacing:x=0,divider:g,children:m,className:y,useFlexGap:w=!1}=p,b=(0,s.A)(p,B),A={direction:u,spacing:x,useFlexGap:w},v=(0,f.A)({root:["root"]},(e=>(0,h.Ay)(r,e)),{});return(0,o.jsx)(i,(0,l.A)({as:d,ownerState:A,ref:n,className:(0,c.A)(v.root,y)},b,{children:g?P(m,g):m}))}));return a}({createStyledComponent:(0,H.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>n.root}),useThemeProps:e=>(0,K.b)({props:e,name:"MuiStack"})}),L=M;var G,$,V,U,X,Z,q,J,Y,ee,ne=t(7656),te=t(8267);function oe(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var re=te.Ay.div(G||(G=oe(["\n width: 100%;\n overflow-x: auto;\n"]))),ie=te.Ay.table($||($=oe(["\n padding: "," ",";\n background: ",";\n border-collapse: collapse;\n width: 100%;\n table-layout: auto;\n\n "," {\n display: block;\n border: none;\n }\n"])),i.w4.spacing.md,i.w4.spacing.zero,i.w4.colors.white,i.w4.mediaQueries.xs),ae=te.Ay.tbody(V||(V=oe(["\n overflow-x: auto;\n\n "," {\n display: block;\n }\n"])),i.w4.mediaQueries.xs),se=te.Ay.thead(U||(U=oe(["\n background: ",";\n\n "," {\n display: none;\n }\n"])),i.w4.colors.white,i.w4.mediaQueries.xs),le=te.Ay.tr(X||(X=oe(["\n :first-child {\n background: ",";\n }\n\n height: ",";\n"])),i.w4.colors.white,i.w4.spacing.xxl1),pe=te.Ay.tr(Z||(Z=oe(["\n position: relative;\n\n :nth-child(odd) {\n background: ",";\n }\n\n height: ",";\n padding: "," ",";\n\n "," {\n display: flex;\n flex-flow: column wrap;\n align-items: flex-start;\n justify-content: space-between;\n height: auto;\n gap: ",";\n }\n"])),i.w4.colors["gray-f4"],i.w4.spacing.xxl1,i.w4.spacing.sm,i.w4.spacing.md,i.w4.mediaQueries.xs,i.w4.spacing.sm),ce=te.Ay.th(q||(q=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: end;\n color: ",";\n min-width: ",";\n\n &:not(:first-child),\n &:not(:last-child) {\n padding: "," ",";\n }\n\n &:first-child {\n padding-left: ",";\n text-align: start;\n }\n\n @media (min-width: ","px) {\n &:first-child {\n width: 40%;\n }\n }\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors["green-100"],i.w4.spacing.xxl1,i.w4.spacing.zero,i.w4.spacing.sm,i.w4.spacing.lg,i.KK),de=te.Ay.td(J||(J=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: end;\n color: ",";\n vertical-align: middle;\n\n &:not(:first-child),\n &:not(:last-child) {\n padding: "," ",";\n }\n\n &:not(:first-child) {\n color: ",";\n width: auto;\n }\n\n &:first-child {\n padding-left: ",";\n text-align: start;\n }\n\n "," {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ",";\n }\n\n @media (min-width: ","px) {\n :first-child {\n width: 40%;\n }\n }\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors["gray-100"],i.w4.spacing.zero,i.w4.spacing.sm,i.w4.colors["green-100"],i.w4.spacing.lg,i.w4.mediaQueries.xs,i.w4.spacing.zero,i.KK),he=te.Ay.h2(Y||(Y=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: center;\n color: ",";\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[600],i.w4.typography.fontSize[32],i.w4.colors["green-100"]),fe=te.Ay.h3(ee||(ee=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: center;\n color: ",";\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors.black),ue=function(e){var n=e.title,t=e.message;return(0,o.jsxs)("div",{children:[(0,o.jsx)(he,{children:n}),(0,o.jsx)(fe,{children:t})]})};const xe=function(e){var n=e.columns,t=e.rows,i=e.noData,s=e.isLoading,l="xs"===(0,r.A)().mediaQuery;if(0===t.length&&!s)return(0,o.jsx)(ue,{title:(null==i?void 0:i.title)||"No data found",message:(null==i?void 0:i.text)||"Please try again later"});var p=function(e,n,t){return e.renderCell?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(de,{children:e.renderCell(n,t)},"".concat(n.id,"-").concat(t))}):(0,o.jsx)(de,{children:n[e.field]},"".concat(n.id,"-").concat(t))};return(0,o.jsx)(re,{children:s?(0,o.jsxs)(L,{spacing:1,children:[(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50}),(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50}),(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50})]}):(0,o.jsxs)(ie,{children:[(0,o.jsx)(se,{children:(0,o.jsx)(le,{children:n.map((function(e,n){return(0,o.jsx)(ce,{children:e.label},"table-head-".concat(n))}))})}),(0,o.jsx)(ae,{children:t.map((function(e,t){return(0,o.jsx)(pe,{children:l?p(n[0],e,t):n.map((function(n,t){return(0,o.jsx)(ne.Fragment,{children:p(n,e,t)},t)}))},"table-row-".concat(e.id,"-").concat(t))}))})]})})}},29(e,n,t){t.d(n,{A:()=>o.A});var o=t(3663)},3663(e,n,t){t.d(n,{A:()=>d});var o=t(3486),r=t(7656);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var a=o.KK,s=o.Fy,l=o.EP,p=o.oP,c=(o.DT,function(e){return e<=a?"xs":e<=s?"sm":e<=l?"md":e<=p?"lg":"xl"});const d=function(){var e,n,t=(e=(0,r.useState)({width:window.innerWidth,mediaQuery:c(window.innerWidth)}),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,s=[],l=!0,p=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(o=i.call(t)).done)&&(s.push(o.value),s.length!==n);l=!0);}catch(e){p=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(p)throw r}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return i(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=t[0],a=t[1];return(0,r.useEffect)((function(){var e=function(){var e=window.innerWidth,n={width:e,mediaQuery:c(e)};a((function(e){return e.mediaQuery===n.mediaQuery?e:n}))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),o}},3486(e,n,t){t.d(n,{DT:()=>p,EP:()=>s,Fy:()=>a,Il:()=>c,KK:()=>r,kg:()=>i,oP:()=>l,w4:()=>d});var o=document.createElement("style");o.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(o);var r=600,i=768,a=1074,s=1200,l=1440,p=1920,c={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},d={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:c,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)",dialog_background:"#ffffff",dialog_muted_foreground:"#AAAAAA",dialog_overlay:"rgba(0, 0, 0, 0.5)",dialog_accent:"#F5F5F5",dialog_ring:"#007DC5",dialog_ring_offset:"#ffffff",dialog_border:"#e0e0e0"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)","drop-shadow-dialog":"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)"},mediaQueries:{xs:"@media (max-width: ".concat(r,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(s,"px)"),lg:"@media (max-width: ".concat(l,"px)"),xl:"@media (max-width: ".concat(p,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}}}]);
|
package/dist/1751.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1751],{8226(n,e,
|
|
1
|
+
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1751],{8226(n,e,o){o.r(e),o.d(e,{availableIcons:()=>T,default:()=>Q,iconsObj:()=>M});var t=o(4848),i=o(6028),r=o(9807),a=o(2289),p=o(4017),s=o(8407),l=o(833),c=o(8451),x=o(7562),d=o(3369),h=o(6383),g=o(7240),f=o(7034),u=o(8071),m=o(337),y=o(8597),b=o(7747),w=o(1656),A=o(2048),F=o(399),I=o(4521),_=o(4097),z=o(3420),C=o(7078),v=o(4202),S=o(3866),k=o(891),D=o(8842),E=o(6137),j=o(2790),B=o(2684),N=o(3341),O=o(1432),W=o(8302),H=o(4745),L=o(2182),R=o(3793),P=o(8835),K=o(6009),M={addCircleIcon:i.A,assistantIcon:r.A,autoAwesomeIcon:a.A,checkCircleOutlineIcon:s.A,circleIcon:d.A,closeIcon:h.A,checkIcon:p.A,checkCircleOutlineOutlinedIcon:l.A,chevronRightIcon:x.A,chevronLeftIcon:c.A,dashboardCustomizeIcon:g.A,descriptionIcon:m.A,errorOutlineOutlinedIcon:b.A,expandMoreIcon:A.A,expandLessIcon:w.A,fileDownloadIcon:F.A,folderIcon:I.A,folderOpenIcon:_.A,highlightOffIcon:z.A,highlightOffOutlined:C.A,homeRepairServiceIcon:S.A,homeIcon:v.A,infoOutlinedIcon:k.A,insightsIcon:D.A,mapHomeWorkIcon:j.A,mapIcon:E.A,menuIcon:B.A,notificationsIcon:N.A,personIcon:O.A,pestControlIcon:W.A,searchIcon:H.A,summarizeIcon:L.A,swapVertIcon:R.A,taskAltIcon:P.A,tourIcon:K.A,documentIcon:u.A,editIcon:y.A,deleteIcon:f.A},T=Object.keys(M).reduce((function(n,e){return n[e]=e,n}),{});const Q=function(n){var e=n.size,o=n.color,i=void 0===o?"black":o,r=n.src,a=M[r],p={width:e.width,height:e.height,fill:i};return a?(0,t.jsx)(a,{style:p}):null}},1751(n,e,o){o.r(e),o.d(e,{default:()=>F});var t,i,r,a,p,s,l=o(4848),c=o(3486),x=o(8226),d=o(8267);function h(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var g=x.availableIcons.chevronRightIcon,f=d.Ay.nav(t||(t=h(["\n display: flex;\n align-items: center;\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n"])),c.w4.spacing.xs,c.w4.typography.fontFamily.nunito,c.w4.typography.fontSize[16],c.w4.typography.fontWeight[400],c.w4.colors["gray-100"]),u=d.Ay.ol(i||(i=h(["\n list-style: none;\n display: flex;\n align-items: center;\n margin: ",";\n padding: ",";\n font-size: ",";\n"])),c.w4.spacing.zero,c.w4.spacing.zero,c.w4.typography.fontSize[16]),m=d.Ay.li(r||(r=h(["\n display: flex;\n align-items: center;\n margin: ",";\n padding: ",";\n\n &:last-of-type {\n font-weight: ",";\n }\n\n &:first-of-type {\n color: ",";\n }\n\n &:nth-of-type(2) {\n font-weight: ",";\n }\n"])),c.w4.spacing.zero,c.w4.spacing.zero,c.w4.typography.fontWeight[600],(function(n){return n.isDocumentsBreadcrumb?c.w4.colors["green-100"]:c.w4.colors["gray-100"]}),c.w4.typography.fontWeight[400]),y=d.Ay.span(a||(a=h(["\n display: flex;\n align-items: center;\n color: ",";\n padding-left: ",";\n cursor: pointer;\n"])),c.w4.colors["gray-100"],(function(n){return n.hasLeftSpacing?c.w4.spacing.xs:c.w4.spacing.zero})),b=d.Ay.div(p||(p=h(["\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n gap: ",";\n"])),c.w4.spacing.xs),w=d.Ay.span(s||(s=h(["\n display: flex;\n align-items: center;\n text-decoration: none;\n cursor: pointer !important;\n margin: ",";\n"])),c.w4.spacing.zero),A=function(n){var e=n.icon,o=n.label,t=n.isDocumentsBreadcrumb;return e?(0,l.jsxs)(b,{children:[(0,l.jsx)(x.default,{src:e,size:{width:24,height:24},color:t?c.w4.colors["green-100"]:c.w4.colors["gray-100"]}),o]}):(0,l.jsx)(y,{children:o})};const F=function(n){var e=n.items,o=n.separator,t=void 0===o?g:o,i=n.onClickItem,r=n.isDocumentsBreadcrumb,a=void 0!==r&&r;return(0,l.jsx)(f,{"aria-label":"breadcrumb-nav",children:(0,l.jsx)(u,{children:e.map((function(n,o){var r=n.link,p=n.label,s=n.icon;return(0,l.jsxs)(m,{"aria-current":o===e.length-1?"page":void 0,isDocumentsBreadcrumb:a,children:[r?(0,l.jsx)(w,{onClick:function(){return i(r)},children:(0,l.jsx)(A,{icon:s,label:p})}):(0,l.jsx)(A,{icon:s,label:p,isDocumentsBreadcrumb:a}),o<e.length-1&&(0,l.jsx)(x.default,{src:t,size:{width:24,height:24},color:c.w4.colors["gray-100"]})]},"breadcrumb-".concat(o))}))})})}},3486(n,e,o){o.d(e,{DT:()=>l,EP:()=>p,Fy:()=>a,Il:()=>c,KK:()=>i,kg:()=>r,oP:()=>s,w4:()=>x});var t=document.createElement("style");t.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(t);var i=600,r=768,a=1074,p=1200,s=1440,l=1920,c={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},x={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:c,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)",dialog_background:"#ffffff",dialog_muted_foreground:"#AAAAAA",dialog_overlay:"rgba(0, 0, 0, 0.5)",dialog_accent:"#F5F5F5",dialog_ring:"#007DC5",dialog_ring_offset:"#ffffff",dialog_border:"#e0e0e0"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)","drop-shadow-dialog":"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)"},mediaQueries:{xs:"@media (max-width: ".concat(i,"px)"),s:"@media (max-width: ".concat(r,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(p,"px)"),lg:"@media (max-width: ".concat(s,"px)"),xl:"@media (max-width: ".concat(l,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}}}]);
|
package/dist/2182.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 2182.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[2182],{9801(e,t,n){n.r(t),n.d(t,{Card:()=>l});var r,
|
|
2
|
+
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[2182],{9801(e,t,n){n.r(t),n.d(t,{Card:()=>l});var o,r,a,i=n(4848),p=n(8267),x=n(3486),s=p.Ay.div(o||(r=["\n gap: ",";\n padding-top: ",";\n padding-right: ",";\n padding-bottom: ",";\n padding-left: ",";\n border-radius: ",";\n box-shadow: ",";\n background: ",";\n"],a||(a=r.slice(0)),o=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}}))),x.w4.spacing.sm,x.w4.spacing.xl,x.w4.spacing.xxxl,x.w4.spacing.xl,x.w4.spacing.xxxl,x.w4.spacing.xs,x.w4.shadows["drop-shadow-sort"],x.w4.colors.portal_white);function l(e){var t=e.children,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return(0,i.jsx)(s,Object.assign({},n,{children:t}))}},3486(e,t,n){n.d(t,{DT:()=>s,EP:()=>p,Fy:()=>i,Il:()=>l,KK:()=>r,kg:()=>a,oP:()=>x,w4:()=>d});var o=document.createElement("style");o.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(o);var r=600,a=768,i=1074,p=1200,x=1440,s=1920,l={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},d={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:l,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)",dialog_background:"#ffffff",dialog_muted_foreground:"#AAAAAA",dialog_overlay:"rgba(0, 0, 0, 0.5)",dialog_accent:"#F5F5F5",dialog_ring:"#007DC5",dialog_ring_offset:"#ffffff",dialog_border:"#e0e0e0"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)","drop-shadow-dialog":"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)"},mediaQueries:{xs:"@media (max-width: ".concat(r,"px)"),s:"@media (max-width: ".concat(a,"px)"),sm:"@media (max-width: ".concat(i,"px)"),md:"@media (max-width: ".concat(p,"px)"),lg:"@media (max-width: ".concat(x,"px)"),xl:"@media (max-width: ".concat(s,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}},1020(e,t,n){var o=n(5931),r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,p=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var o,a={},s=null,l=null;for(o in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)i.call(t,o)&&!x.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===a[o]&&(a[o]=t[o]);return{$$typeof:r,type:e,key:s,ref:l,props:a,_owner:p.current}}t.Fragment=a,t.jsx=s,t.jsxs=s},4848(e,t,n){e.exports=n(1020)}}]);
|
package/dist/2304.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 2304.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[2304],{2304(e,t,r){r.r(t),r.d(t,{Textarea:()=>u,default:()=>y});var n,o,i,a=r(4848),l=r(7656),s=r(8267),p=r(3486);function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=parseInt(p.w4.spacing.sm),h=s.Ay.textarea(n||(n=f(["\n width: 100%;\n min-height: ","px;\n padding: ","px ",";\n border: "," solid\n ",";\n border-radius: ",";\n resize: ",";\n line-height: ",";\n box-sizing: border-box;\n ","\n color: ",";\n\n ::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n outline: none;\n }\n"])),(function(e){var t=e.lines,r=e.lineHeight;return parseInt(p.Il.myR_fonts.body.fontSize)*t*r+2*d-2*parseInt("1px",10)}),d,p.w4.spacing.sm2,"1px",(function(e){return e.isError?p.w4.colors.error_secondary:p.w4.colors["gray-300"]}),p.w4.spacing.s,(function(e){return e.resize?"vertical":"none"}),(function(e){return e.lineHeight}),(function(e){var t=e.lineHeight;return(0,s.AH)(Object.assign(Object.assign({},p.Il.myR_fonts.body),{lineHeight:t}))}),(function(e){return e.isError?p.w4.colors.error_primary:"inherit"}),p.w4.colors["gray-500"],(function(e){return e.isError?p.w4.colors.error_secondary:p.w4.colors["blue-100"]})),c=s.Ay.div(o||(o=f(["\n position: absolute;\n bottom: ",";\n right: ",";\n font-size: ",";\n color: ",";\n"])),p.w4.spacing.sm2,p.w4.spacing.sm2,p.w4.typography.fontSize[12],p.w4.colors["gray-300"]),g=s.Ay.div(i||(i=f(["\n position: relative;\n"])));function u(e){var t,r,n,o=e.resize,i=void 0!==o&&o,s=e.onChange,f=e.lines,d=void 0===f?3:f,u=e.lineHeight,y=void 0===u?parseInt(p.Il.myR_fonts.body.lineHeight,10)/100:u,m=e.isError,b=void 0!==m&&m,w=e.variant,F=void 0===w?"default":w,v=e.maxCharactersLength,_=void 0===v?100:v,S=e.dataTestId,A=e.ariaLabel,C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["resize","onChange","lines","lineHeight","isError","variant","maxCharactersLength","dataTestId","ariaLabel"]),E=(r=(0,l.useState)((null===(t=C.value)||void 0===t?void 0:t.toString().length)||0),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,p=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){p=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(p)throw o}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),z=E[0],O=E[1];return(0,l.useEffect)((function(){var e;O((null===(e=C.value)||void 0===e?void 0:e.toString().length)||0)}),[C.value]),(0,a.jsxs)(g,{children:[(0,a.jsx)(h,Object.assign({},C,{id:"textarea",lines:d,lineHeight:y,resize:i,onChange:function(e){var t=e.target.value;if(_&&t.length>_){var r=t.slice(0,_);return O(_),null==s||s(r),void(e.target.value=r)}O(t.length),null==s||s(t)},onKeyDown:function(e){var t=e.currentTarget.value;_&&t.length>=_&&!["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.key)&&e.preventDefault()},isError:b,dataTestId:S,ariaLabel:A})),"comment"===F&&(0,a.jsxs)(c,{children:[z,"/",_]})]})}const y=u},3486(e,t,r){r.d(t,{DT:()=>p,EP:()=>l,Fy:()=>a,Il:()=>x,KK:()=>o,kg:()=>i,oP:()=>s,w4:()=>f});var n=document.createElement("style");n.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(n);var o=600,i=768,a=1074,l=1200,s=1440,p=1920,x={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},f={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:x,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)"},mediaQueries:{xs:"@media (max-width: ".concat(o,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(l,"px)"),lg:"@media (max-width: ".concat(s,"px)"),xl:"@media (max-width: ".concat(p,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}},1020(e,t,r){var n=r(5931),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,r){var n,i={},p=null,x=null;for(n in void 0!==r&&(p=""+r),void 0!==t.key&&(p=""+t.key),void 0!==t.ref&&(x=t.ref),t)a.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:p,ref:x,props:i,_owner:l.current}}t.Fragment=i,t.jsx=p,t.jsxs=p},4848(e,t,r){e.exports=r(1020)}}]);
|
|
2
|
+
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[2304],{2304(e,r,t){t.r(r),t.d(r,{Textarea:()=>u,default:()=>y});var n,o,i,a=t(4848),l=t(7656),p=t(8267),s=t(3486);function x(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var d=parseInt(s.w4.spacing.sm),g=p.Ay.textarea(n||(n=f(["\n width: 100%;\n min-height: ","px;\n padding: ","px ",";\n border: "," solid\n ",";\n border-radius: ",";\n resize: ",";\n line-height: ",";\n box-sizing: border-box;\n ","\n color: ",";\n\n ::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n outline: none;\n }\n"])),(function(e){var r=e.lines,t=e.lineHeight;return parseInt(s.Il.myR_fonts.body.fontSize)*r*t+2*d-2*parseInt("1px",10)}),d,s.w4.spacing.sm2,"1px",(function(e){return e.isError?s.w4.colors.error_secondary:s.w4.colors["gray-300"]}),s.w4.spacing.s,(function(e){return e.resize?"vertical":"none"}),(function(e){return e.lineHeight}),(function(e){var r=e.lineHeight;return(0,p.AH)(Object.assign(Object.assign({},s.Il.myR_fonts.body),{lineHeight:r}))}),(function(e){return e.isError?s.w4.colors.error_primary:"inherit"}),s.w4.colors["gray-500"],(function(e){return e.isError?s.w4.colors.error_secondary:s.w4.colors["blue-100"]})),h=p.Ay.div(o||(o=f(["\n position: absolute;\n bottom: ",";\n right: ",";\n font-size: ",";\n color: ",";\n"])),s.w4.spacing.sm2,s.w4.spacing.sm2,s.w4.typography.fontSize[12],s.w4.colors["gray-300"]),c=p.Ay.div(i||(i=f(["\n position: relative;\n"])));function u(e){var r,t,n,o=e.resize,i=void 0!==o&&o,p=e.onChange,f=e.lines,d=void 0===f?3:f,u=e.lineHeight,y=void 0===u?parseInt(s.Il.myR_fonts.body.lineHeight,10)/100:u,b=e.isError,m=void 0!==b&&b,w=e.variant,F=void 0===w?"default":w,v=e.maxCharactersLength,_=void 0===v?100:v,A=e.dataTestId,S=e.ariaLabel,C=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}(e,["resize","onChange","lines","lineHeight","isError","variant","maxCharactersLength","dataTestId","ariaLabel"]),E=(t=(0,l.useState)((null===(r=C.value)||void 0===r?void 0:r.toString().length)||0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,l=[],p=!0,s=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;p=!1}else for(;!(p=(n=i.call(t)).done)&&(l.push(n.value),l.length!==r);p=!0);}catch(e){s=!0,o=e}finally{try{if(!p&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,n)||function(e,r){if(e){if("string"==typeof e)return x(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(e,r):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),z=E[0],D=E[1];return(0,l.useEffect)((function(){var e;D((null===(e=C.value)||void 0===e?void 0:e.toString().length)||0)}),[C.value]),(0,a.jsxs)(c,{children:[(0,a.jsx)(g,Object.assign({},C,{id:"textarea",lines:d,lineHeight:y,resize:i,onChange:function(e){var r=e.target.value;if(_&&r.length>_){var t=r.slice(0,_);return D(_),null==p||p(t),void(e.target.value=t)}D(r.length),null==p||p(r)},onKeyDown:function(e){var r=e.currentTarget.value;_&&r.length>=_&&!["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.key)&&e.preventDefault()},isError:m,dataTestId:A,ariaLabel:S})),"comment"===F&&(0,a.jsxs)(h,{children:[z,"/",_]})]})}const y=u},3486(e,r,t){t.d(r,{DT:()=>s,EP:()=>l,Fy:()=>a,Il:()=>x,KK:()=>o,kg:()=>i,oP:()=>p,w4:()=>f});var n=document.createElement("style");n.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(n);var o=600,i=768,a=1074,l=1200,p=1440,s=1920,x={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},f={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:x,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)",dialog_background:"#ffffff",dialog_muted_foreground:"#AAAAAA",dialog_overlay:"rgba(0, 0, 0, 0.5)",dialog_accent:"#F5F5F5",dialog_ring:"#007DC5",dialog_ring_offset:"#ffffff",dialog_border:"#e0e0e0"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)","drop-shadow-dialog":"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)"},mediaQueries:{xs:"@media (max-width: ".concat(o,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(l,"px)"),lg:"@media (max-width: ".concat(p,"px)"),xl:"@media (max-width: ".concat(s,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}},1020(e,r,t){var n=t(5931),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var n,i={},s=null,x=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(x=r.ref),r)a.call(r,n)&&!p.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:s,ref:x,props:i,_owner:l.current}}r.Fragment=i,r.jsx=s,r.jsxs=s},4848(e,r,t){e.exports=t(1020)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1219],{6300(n,r,o){o.r(r),o.d(r,{availableButtonVariants:()=>g,default:()=>w});var e,t,i,a,c=o(4848),s=o(3486),l=o(7656),d=o(8267);function p(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}var g={primary:"primary",secondary:"secondary",tertiary:"tertiary"},u={primary:{background:s.w4.colors["red-300"],border:s.w4.colors["red-300"],activeBackground:s.w4.colors["red-500"],hoverBackground:s.w4.colors["red-500"],secondaryHoverBackground:s.w4.colors["red-600"]},secondary:{background:s.w4.colors["blue-200"],border:s.w4.colors["blue-200"],activeBackground:s.w4.colors["blue-300"],hoverBackground:s.w4.colors["blue-300"],secondaryHoverBackground:s.w4.colors["blue-400"]}},f=d.Ay.button(e||(e=p(["\n width: ",";\n height: ",";\n min-height: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ",";\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1.2;\n border-radius: ",";\n cursor: ",";\n"])),(function(n){return n.width}),(function(n){return n.height}),s.w4.size.button.height.sm,(function(n){return n.padding}),s.w4.typography.fontFamily.nunito,(function(n){return n.fontWeight||s.w4.typography.fontWeight[400]}),s.w4.typography.fontSize[16],s.w4.borders.radius.sm,(function(n){return n.isDisable?"not-allowed":"pointer"})),h=(0,d.Ay)(f)(t||(t=p(["\n border: none;\n color: ",";\n background-color: ",";\n box-shadow: 0px "," "," 0px rgba(0, 0, 0, 0.1);\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: none;\n background-color: ",";\n }\n"])),s.w4.colors.white,(function(n){var r=n.isActive,o=n.isDisable,e=n.color;if(o)return s.w4.colors["gray-300"];var t="secondary"===e?u.secondary:u.primary;return r?t.activeBackground:t.background}),s.w4.spacing.xs,s.w4.spacing.xs,(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?u.secondary:u.primary).hoverBackground}),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?u.secondary:u.primary).background})),x=(0,d.Ay)(f)(i||(i=p(["\n border: ",";\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: "," solid transparent;\n background-color: ",";\n }\n"])),(function(n){var r=n.isDisable,o=n.color;if(r)return"".concat(s.w4.spacing.xxxs," solid ").concat(s.w4.colors["gray-300"]);var e="secondary"===o?u.secondary:u.primary;return"".concat(s.w4.spacing.xxxs," solid ").concat(e.border)}),(function(n){var r=n.isActive,o=n.isDisable,e=n.color;if(o)return s.w4.colors["gray-300"];var t="secondary"===e?u.secondary:u.primary;return r?s.w4.colors.white:t.border}),(function(n){return n.isActive?u.primary.activeBackground:s.w4.colors.white}),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors.white:("secondary"===o?u.secondary:u.primary).secondaryHoverBackground}),s.w4.spacing.xxxs,s.w4.colors.white),y=(0,d.Ay)(f)(a||(a=p(["\n border: none;\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: none;\n }\n"])),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?u.secondary:u.primary).border}),s.w4.colors.white,(function(n){return n.isDisable?s.w4.colors.white:s.w4.colors["gray-50"]}));const w=(0,l.forwardRef)((function(n,r){var o=n.onClick,e=n.height,t=void 0===e?"100%":e,i=n.width,a=void 0===i?"auto":i,l=n.padding,d=void 0===l?"".concat(s.w4.spacing.sm2," ").concat(s.w4.spacing.xxl):l,p=n.children,g=n.variant,u=void 0===g?"primary":g,f=n.isActive,w=n.isDisable,m=n.fontWeight,b=n.color,v=void 0===b?"primary":b,A=n.dataTestId,F=n.ariaLabel,k={primary:h,secondary:x,tertiary:y}[u];return(0,c.jsx)(k,{ref:r,"data-testid":A,"aria-label":F,type:"button",width:a,padding:d,isDisable:w,isActive:f,onClick:w?void 0:o,fontWeight:m,height:t,color:v,children:p})}))},8364(n,r,o){o.r(r),o.d(r,{availableChipVariants:()=>l,default:()=>p});var e,t,i,a=o(4848),c=o(3486),s=o(8267),l={primary:"primary",secondary:"secondary",tertiary:"tertiary",active:"active",inactive:"inactive",info:"info"},d=s.Ay.div(e||(t=["\n width: ",";\n height: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n color: ",";\n border: ",";\n background-color: ",";\n border-radius: ",";\n font-family: 'Roboto', sans-serif;\n font-size: ",";\n font-weight: ",";\n white-space: nowrap;\n"],i||(i=t.slice(0)),e=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(i)}}))),(function(n){return n.isEmpty?c.w4.spacing.md2:"fit-content"}),(function(n){return"sm"===n.size?c.w4.spacing.md:c.w4.spacing.md2}),(function(n){var r=n.isEmpty,o=n.size;return r?c.w4.spacing.zero:"sm"===o?"".concat(c.w4.spacing.zero," ").concat(c.w4.spacing.sm):"".concat(c.w4.spacing.zero," ").concat(c.w4.spacing.md)}),(function(n){var r=n.variant;return r===l.primary?c.w4.colors["red-200"]:r===l.secondary?c.w4.colors["green-200"]:r===l.tertiary?c.w4.colors["green-300"]:r===l.active?c.w4.colors["blue-800"]:r===l.info?c.w4.colors["green-100"]:c.w4.colors["green-300"]}),(function(n){var r=n.variant;return r===l.primary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["red-200"]):r===l.secondary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-200"]):r===l.tertiary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-300"]):r===l.active?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["blue-800"]):r===l.info?"".concat(c.w4.spacing.xxs," solid none"):"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-300"])}),(function(n){var r=n.variant;return r===l.primary?c.w4.colors["gray-200"]:r===l.secondary?c.w4.colors["green-500"]:r===l.tertiary?c.w4.colors["green-400"]:r===l.active?c.w4.colors["blue-500"]:r===l.info?c.w4.colors["gray-400"]:c.w4.colors["green-450"]}),c.w4.spacing.lg,(function(n){return"sm"===n.size?c.w4.typography.fontSize[10]:c.w4.typography.fontSize[12]}),c.w4.typography.fontWeight[500]);const p=function(n){var r=n.text,o=n.variant,e=n.size,t=void 0===e?"md":e;return(0,a.jsx)(d,{variant:o,isEmpty:""===r,size:t,children:r})}},8226(n,r,o){o.r(r),o.d(r,{availableIcons:()=>V,default:()=>K,iconsObj:()=>T});var e=o(4848),t=o(6028),i=o(9807),a=o(2289),c=o(4017),s=o(8407),l=o(833),d=o(8451),p=o(7562),g=o(3369),u=o(6383),f=o(7240),h=o(7034),x=o(8071),y=o(337),w=o(8597),m=o(7747),b=o(1656),v=o(2048),A=o(399),F=o(4521),k=o(4097),z=o(3420),I=o(7078),S=o(4202),C=o(3866),j=o(891),D=o(8842),_=o(6137),B=o(2790),E=o(2684),O=o(3341),W=o(1432),N=o(8302),H=o(4745),L=o(2182),M=o(3793),P=o(8835),R=o(6009),T={addCircleIcon:t.A,assistantIcon:i.A,autoAwesomeIcon:a.A,checkCircleOutlineIcon:s.A,circleIcon:g.A,closeIcon:u.A,checkIcon:c.A,checkCircleOutlineOutlinedIcon:l.A,chevronRightIcon:p.A,chevronLeftIcon:d.A,dashboardCustomizeIcon:f.A,descriptionIcon:y.A,errorOutlineOutlinedIcon:m.A,expandMoreIcon:v.A,expandLessIcon:b.A,fileDownloadIcon:A.A,folderIcon:F.A,folderOpenIcon:k.A,highlightOffIcon:z.A,highlightOffOutlined:I.A,homeRepairServiceIcon:C.A,homeIcon:S.A,infoOutlinedIcon:j.A,insightsIcon:D.A,mapHomeWorkIcon:B.A,mapIcon:_.A,menuIcon:E.A,notificationsIcon:O.A,personIcon:W.A,pestControlIcon:N.A,searchIcon:H.A,summarizeIcon:L.A,swapVertIcon:M.A,taskAltIcon:P.A,tourIcon:R.A,documentIcon:x.A,editIcon:w.A,deleteIcon:h.A},V=Object.keys(T).reduce((function(n,r){return n[r]=r,n}),{});const K=function(n){var r=n.size,o=n.color,t=void 0===o?"black":o,i=n.src,a=T[i],c={width:r.width,height:r.height,fill:t};return a?(0,e.jsx)(a,{style:c}):null}},1219(n,r,o){o.r(r),o.d(r,{default:()=>j});var e,t,i,a,c,s,l,d,p=o(4848),g=o(3486),u=o(6300),f=o(8364),h=o(8226),x=o(7656),y=o(8267);function w(n,r){(null==r||r>n.length)&&(r=n.length);for(var o=0,e=Array(r);o<r;o++)e[o]=n[o];return e}function m(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}var b={primary:"primary",secondary:"secondary",tertiary:"tertiary"},v=y.Ay.div(e||(e=m(["\n width: calc(100% - ",");\n padding: 0 ",";\n\n "," {\n padding: 0px;\n }\n"])),g.w4.spacing.xl,g.w4.spacing.md,g.w4.mediaQueries.xs),A=y.Ay.div(t||(t=m(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:hover {\n background: ",";\n }\n"])),g.w4.spacing.md,g.w4.spacing.sm,g.w4.colors["gray-5"]),F=y.Ay.div(i||(i=m(["\n display: flex;\n align-items: center;\n gap: ",";\n margin: 0px;\n padding: 0px;\n"])),g.w4.spacing.md),k=y.Ay.h4(a||(a=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n"])),g.w4.colors["green-100"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[16],g.w4.typography.fontWeight[700]),z=y.Ay.h4(c||(c=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n"])),g.w4.colors["green-100"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[16],g.w4.typography.fontWeight[400]),I=y.Ay.div(s||(s=m(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),S=y.Ay.h5(l||(l=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 90%;\n"])),g.w4.colors["blue-200"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[14],g.w4.typography.fontWeight[400]),C=y.Ay.div(d||(d=m(["\n transition: transform 0.3s ease-in-out;\n\n &:hover {\n transform: scaleX(1.1);\n }\n\n &:not(:hover) {\n transition: transform 0.3s ease-in-out 0.3s; /* Add a delay when transitioning back */\n transform: scaleX(1);\n }\n"])));const j=function(n){var r,o,e=n.items,t=n.buttonText,i=void 0===t?"View":t,a=n.onSelectItem,c=(0,x.useId)(),s=(r=(0,x.useState)(null),o=2,function(n){if(Array.isArray(n))return n}(r)||function(n,r){var o=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=o){var e,t,i,a,c=[],s=!0,l=!1;try{if(i=(o=o.call(n)).next,0===r){if(Object(o)!==o)return;s=!1}else for(;!(s=(e=i.call(o)).done)&&(c.push(e.value),c.length!==r);s=!0);}catch(n){l=!0,t=n}finally{try{if(!s&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(l)throw t}}return c}}(r,o)||function(n,r){if(n){if("string"==typeof n)return w(n,r);var o={}.toString.call(n).slice(8,-1);return"Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o?Array.from(n):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?w(n,r):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],d=s[1];return(0,p.jsx)(v,{children:e.map((function(n){var r=n.id,o=n.title,e=n.description,t=n.isNew,s=n.time,x=n.priority;return(0,p.jsxs)(A,{children:[(0,p.jsxs)(F,{children:[(0,p.jsx)(k,{children:o}),x&&(0,p.jsx)(C,{onMouseEnter:function(){return d(r)},onMouseLeave:function(){return d(null)},children:(0,p.jsx)(f.default,{variant:x,text:l===r?b[x].toUpperCase():""})}),(0,p.jsx)(z,{children:s})]}),(0,p.jsxs)(I,{children:[(0,p.jsx)(S,{children:e}),t&&(0,p.jsx)(h.default,{src:h.availableIcons.circleIcon,size:{width:8,height:8},color:g.w4.colors["blue-200"]})]}),(0,p.jsx)(u.default,{width:"116px",padding:"".concat(g.w4.spacing.sm1," ").concat(g.w4.spacing.xl1),variant:u.availableButtonVariants.primary,onClick:function(){return a(r)},color:"secondary",children:i})]},"notification-".concat(c,"-").concat(r))}))})}},3486(n,r,o){o.d(r,{DT:()=>l,EP:()=>c,Fy:()=>a,Il:()=>d,KK:()=>t,kg:()=>i,oP:()=>s,w4:()=>p});var e=document.createElement("style");e.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(e);var t=600,i=768,a=1074,c=1200,s=1440,l=1920,d={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},p={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:d,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)"},mediaQueries:{xs:"@media (max-width: ".concat(t,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(c,"px)"),lg:"@media (max-width: ".concat(s,"px)"),xl:"@media (max-width: ".concat(l,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1219],{6300(n,r,o){o.r(r),o.d(r,{availableButtonVariants:()=>g,default:()=>w});var e,t,i,a,c=o(4848),s=o(3486),l=o(7656),d=o(8267);function p(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}var g={primary:"primary",secondary:"secondary",tertiary:"tertiary"},f={primary:{background:s.w4.colors["red-300"],border:s.w4.colors["red-300"],activeBackground:s.w4.colors["red-500"],hoverBackground:s.w4.colors["red-500"],secondaryHoverBackground:s.w4.colors["red-600"]},secondary:{background:s.w4.colors["blue-200"],border:s.w4.colors["blue-200"],activeBackground:s.w4.colors["blue-300"],hoverBackground:s.w4.colors["blue-300"],secondaryHoverBackground:s.w4.colors["blue-400"]}},u=d.Ay.button(e||(e=p(["\n width: ",";\n height: ",";\n min-height: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ",";\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1.2;\n border-radius: ",";\n cursor: ",";\n"])),(function(n){return n.width}),(function(n){return n.height}),s.w4.size.button.height.sm,(function(n){return n.padding}),s.w4.typography.fontFamily.nunito,(function(n){return n.fontWeight||s.w4.typography.fontWeight[400]}),s.w4.typography.fontSize[16],s.w4.borders.radius.sm,(function(n){return n.isDisable?"not-allowed":"pointer"})),x=(0,d.Ay)(u)(t||(t=p(["\n border: none;\n color: ",";\n background-color: ",";\n box-shadow: 0px "," "," 0px rgba(0, 0, 0, 0.1);\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: none;\n background-color: ",";\n }\n"])),s.w4.colors.white,(function(n){var r=n.isActive,o=n.isDisable,e=n.color;if(o)return s.w4.colors["gray-300"];var t="secondary"===e?f.secondary:f.primary;return r?t.activeBackground:t.background}),s.w4.spacing.xs,s.w4.spacing.xs,(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?f.secondary:f.primary).hoverBackground}),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?f.secondary:f.primary).background})),h=(0,d.Ay)(u)(i||(i=p(["\n border: ",";\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: "," solid transparent;\n background-color: ",";\n }\n"])),(function(n){var r=n.isDisable,o=n.color;if(r)return"".concat(s.w4.spacing.xxxs," solid ").concat(s.w4.colors["gray-300"]);var e="secondary"===o?f.secondary:f.primary;return"".concat(s.w4.spacing.xxxs," solid ").concat(e.border)}),(function(n){var r=n.isActive,o=n.isDisable,e=n.color;if(o)return s.w4.colors["gray-300"];var t="secondary"===e?f.secondary:f.primary;return r?s.w4.colors.white:t.border}),(function(n){return n.isActive?f.primary.activeBackground:s.w4.colors.white}),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors.white:("secondary"===o?f.secondary:f.primary).secondaryHoverBackground}),s.w4.spacing.xxxs,s.w4.colors.white),y=(0,d.Ay)(u)(a||(a=p(["\n border: none;\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border: none;\n }\n"])),(function(n){var r=n.isDisable,o=n.color;return r?s.w4.colors["gray-300"]:("secondary"===o?f.secondary:f.primary).border}),s.w4.colors.white,(function(n){return n.isDisable?s.w4.colors.white:s.w4.colors["gray-50"]}));const w=(0,l.forwardRef)((function(n,r){var o=n.onClick,e=n.height,t=void 0===e?"100%":e,i=n.width,a=void 0===i?"auto":i,l=n.padding,d=void 0===l?"".concat(s.w4.spacing.sm2," ").concat(s.w4.spacing.xxl):l,p=n.children,g=n.variant,f=void 0===g?"primary":g,u=n.isActive,w=n.isDisable,m=n.fontWeight,b=n.color,v=void 0===b?"primary":b,A=n.dataTestId,F=n.ariaLabel,k={primary:x,secondary:h,tertiary:y}[f];return(0,c.jsx)(k,{ref:r,"data-testid":A,"aria-label":F,type:"button",width:a,padding:d,isDisable:w,isActive:u,onClick:w?void 0:o,fontWeight:m,height:t,color:v,children:p})}))},8364(n,r,o){o.r(r),o.d(r,{availableChipVariants:()=>l,default:()=>p});var e,t,i,a=o(4848),c=o(3486),s=o(8267),l={primary:"primary",secondary:"secondary",tertiary:"tertiary",active:"active",inactive:"inactive",info:"info"},d=s.Ay.div(e||(t=["\n width: ",";\n height: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n color: ",";\n border: ",";\n background-color: ",";\n border-radius: ",";\n font-family: 'Roboto', sans-serif;\n font-size: ",";\n font-weight: ",";\n white-space: nowrap;\n"],i||(i=t.slice(0)),e=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(i)}}))),(function(n){return n.isEmpty?c.w4.spacing.md2:"fit-content"}),(function(n){return"sm"===n.size?c.w4.spacing.md:c.w4.spacing.md2}),(function(n){var r=n.isEmpty,o=n.size;return r?c.w4.spacing.zero:"sm"===o?"".concat(c.w4.spacing.zero," ").concat(c.w4.spacing.sm):"".concat(c.w4.spacing.zero," ").concat(c.w4.spacing.md)}),(function(n){var r=n.variant;return r===l.primary?c.w4.colors["red-200"]:r===l.secondary?c.w4.colors["green-200"]:r===l.tertiary?c.w4.colors["green-300"]:r===l.active?c.w4.colors["blue-800"]:r===l.info?c.w4.colors["green-100"]:c.w4.colors["green-300"]}),(function(n){var r=n.variant;return r===l.primary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["red-200"]):r===l.secondary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-200"]):r===l.tertiary?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-300"]):r===l.active?"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["blue-800"]):r===l.info?"".concat(c.w4.spacing.xxs," solid none"):"".concat(c.w4.spacing.xxs," solid ").concat(c.w4.colors["green-300"])}),(function(n){var r=n.variant;return r===l.primary?c.w4.colors["gray-200"]:r===l.secondary?c.w4.colors["green-500"]:r===l.tertiary?c.w4.colors["green-400"]:r===l.active?c.w4.colors["blue-500"]:r===l.info?c.w4.colors["gray-400"]:c.w4.colors["green-450"]}),c.w4.spacing.lg,(function(n){return"sm"===n.size?c.w4.typography.fontSize[10]:c.w4.typography.fontSize[12]}),c.w4.typography.fontWeight[500]);const p=function(n){var r=n.text,o=n.variant,e=n.size,t=void 0===e?"md":e;return(0,a.jsx)(d,{variant:o,isEmpty:""===r,size:t,children:r})}},8226(n,r,o){o.r(r),o.d(r,{availableIcons:()=>V,default:()=>K,iconsObj:()=>T});var e=o(4848),t=o(6028),i=o(9807),a=o(2289),c=o(4017),s=o(8407),l=o(833),d=o(8451),p=o(7562),g=o(3369),f=o(6383),u=o(7240),x=o(7034),h=o(8071),y=o(337),w=o(8597),m=o(7747),b=o(1656),v=o(2048),A=o(399),F=o(4521),k=o(4097),z=o(3420),I=o(7078),S=o(4202),C=o(3866),_=o(891),j=o(8842),D=o(6137),B=o(2790),E=o(2684),O=o(3341),W=o(1432),N=o(8302),H=o(4745),L=o(2182),M=o(3793),P=o(8835),R=o(6009),T={addCircleIcon:t.A,assistantIcon:i.A,autoAwesomeIcon:a.A,checkCircleOutlineIcon:s.A,circleIcon:g.A,closeIcon:f.A,checkIcon:c.A,checkCircleOutlineOutlinedIcon:l.A,chevronRightIcon:p.A,chevronLeftIcon:d.A,dashboardCustomizeIcon:u.A,descriptionIcon:y.A,errorOutlineOutlinedIcon:m.A,expandMoreIcon:v.A,expandLessIcon:b.A,fileDownloadIcon:A.A,folderIcon:F.A,folderOpenIcon:k.A,highlightOffIcon:z.A,highlightOffOutlined:I.A,homeRepairServiceIcon:C.A,homeIcon:S.A,infoOutlinedIcon:_.A,insightsIcon:j.A,mapHomeWorkIcon:B.A,mapIcon:D.A,menuIcon:E.A,notificationsIcon:O.A,personIcon:W.A,pestControlIcon:N.A,searchIcon:H.A,summarizeIcon:L.A,swapVertIcon:M.A,taskAltIcon:P.A,tourIcon:R.A,documentIcon:h.A,editIcon:w.A,deleteIcon:x.A},V=Object.keys(T).reduce((function(n,r){return n[r]=r,n}),{});const K=function(n){var r=n.size,o=n.color,t=void 0===o?"black":o,i=n.src,a=T[i],c={width:r.width,height:r.height,fill:t};return a?(0,e.jsx)(a,{style:c}):null}},1219(n,r,o){o.r(r),o.d(r,{default:()=>_});var e,t,i,a,c,s,l,d,p=o(4848),g=o(3486),f=o(6300),u=o(8364),x=o(8226),h=o(7656),y=o(8267);function w(n,r){(null==r||r>n.length)&&(r=n.length);for(var o=0,e=Array(r);o<r;o++)e[o]=n[o];return e}function m(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}var b={primary:"primary",secondary:"secondary",tertiary:"tertiary"},v=y.Ay.div(e||(e=m(["\n width: calc(100% - ",");\n padding: 0 ",";\n\n "," {\n padding: 0px;\n }\n"])),g.w4.spacing.xl,g.w4.spacing.md,g.w4.mediaQueries.xs),A=y.Ay.div(t||(t=m(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:hover {\n background: ",";\n }\n"])),g.w4.spacing.md,g.w4.spacing.sm,g.w4.colors["gray-5"]),F=y.Ay.div(i||(i=m(["\n display: flex;\n align-items: center;\n gap: ",";\n margin: 0px;\n padding: 0px;\n"])),g.w4.spacing.md),k=y.Ay.h4(a||(a=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n"])),g.w4.colors["green-100"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[16],g.w4.typography.fontWeight[700]),z=y.Ay.h4(c||(c=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n"])),g.w4.colors["green-100"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[16],g.w4.typography.fontWeight[400]),I=y.Ay.div(s||(s=m(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),S=y.Ay.h5(l||(l=m(["\n margin: 0px;\n padding: 0px;\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 90%;\n"])),g.w4.colors["blue-200"],g.w4.typography.fontFamily.nunito,g.w4.typography.fontSize[14],g.w4.typography.fontWeight[400]),C=y.Ay.div(d||(d=m(["\n transition: transform 0.3s ease-in-out;\n\n &:hover {\n transform: scaleX(1.1);\n }\n\n &:not(:hover) {\n transition: transform 0.3s ease-in-out 0.3s; /* Add a delay when transitioning back */\n transform: scaleX(1);\n }\n"])));const _=function(n){var r,o,e=n.items,t=n.buttonText,i=void 0===t?"View":t,a=n.onSelectItem,c=(0,h.useId)(),s=(r=(0,h.useState)(null),o=2,function(n){if(Array.isArray(n))return n}(r)||function(n,r){var o=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=o){var e,t,i,a,c=[],s=!0,l=!1;try{if(i=(o=o.call(n)).next,0===r){if(Object(o)!==o)return;s=!1}else for(;!(s=(e=i.call(o)).done)&&(c.push(e.value),c.length!==r);s=!0);}catch(n){l=!0,t=n}finally{try{if(!s&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(l)throw t}}return c}}(r,o)||function(n,r){if(n){if("string"==typeof n)return w(n,r);var o={}.toString.call(n).slice(8,-1);return"Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o?Array.from(n):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?w(n,r):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],d=s[1];return(0,p.jsx)(v,{children:e.map((function(n){var r=n.id,o=n.title,e=n.description,t=n.isNew,s=n.time,h=n.priority;return(0,p.jsxs)(A,{children:[(0,p.jsxs)(F,{children:[(0,p.jsx)(k,{children:o}),h&&(0,p.jsx)(C,{onMouseEnter:function(){return d(r)},onMouseLeave:function(){return d(null)},children:(0,p.jsx)(u.default,{variant:h,text:l===r?b[h].toUpperCase():""})}),(0,p.jsx)(z,{children:s})]}),(0,p.jsxs)(I,{children:[(0,p.jsx)(S,{children:e}),t&&(0,p.jsx)(x.default,{src:x.availableIcons.circleIcon,size:{width:8,height:8},color:g.w4.colors["blue-200"]})]}),(0,p.jsx)(f.default,{width:"116px",padding:"".concat(g.w4.spacing.sm1," ").concat(g.w4.spacing.xl1),variant:f.availableButtonVariants.primary,onClick:function(){return a(r)},color:"secondary",children:i})]},"notification-".concat(c,"-").concat(r))}))})}},3486(n,r,o){o.d(r,{DT:()=>l,EP:()=>c,Fy:()=>a,Il:()=>d,KK:()=>t,kg:()=>i,oP:()=>s,w4:()=>p});var e=document.createElement("style");e.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(e);var t=600,i=768,a=1074,c=1200,s=1440,l=1920,d={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},p={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:d,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)",dialog_background:"#ffffff",dialog_muted_foreground:"#AAAAAA",dialog_overlay:"rgba(0, 0, 0, 0.5)",dialog_accent:"#F5F5F5",dialog_ring:"#007DC5",dialog_ring_offset:"#ffffff",dialog_border:"#e0e0e0"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)","drop-shadow-dialog":"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)"},mediaQueries:{xs:"@media (max-width: ".concat(t,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(c,"px)"),lg:"@media (max-width: ".concat(s,"px)"),xl:"@media (max-width: ".concat(l,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1409],{1409(e,n,t){t.r(n),t.d(n,{TableBody:()=>ae,TableComponent:()=>ie,TableData:()=>de,TableHead:()=>se,TableHeadData:()=>ce,TableHeadRow:()=>le,TableRow:()=>pe,TableWrapper:()=>re,default:()=>xe});var o=t(4848),r=t(29),i=t(3486),a=t(1023),s=t(8587),l=t(8168),p=t(5804),c=t(4164),d=t(1317),h=t(1609),u=t(5659),f=t(7540),x=t(8749),m=t(3571);const g=["ownerState"],y=["variants"],w=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const A=(0,x.A)(),v=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function F({defaultTheme:e,theme:n,themeId:t}){return o=n,0===Object.keys(o).length?e:n[t]||n;var o}function S(e){return e?(n,t)=>t[e]:null}function k(e,n){let{ownerState:t}=n,o=(0,s.A)(n,g);const r="function"==typeof e?e((0,l.A)({ownerState:t},o)):e;if(Array.isArray(r))return r.flatMap((e=>k(e,(0,l.A)({ownerState:t},o))));if(r&&"object"==typeof r&&Array.isArray(r.variants)){const{variants:e=[]}=r;let n=(0,s.A)(r,y);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,l.A)({ownerState:t},o,t)):Object.keys(e.props).forEach((n=>{(null==t?void 0:t[n])!==e.props[n]&&o[n]!==e.props[n]&&(r=!1)})),r&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,l.A)({ownerState:t},o,t)):e.style))})),n}return r}const j=function(e={}){const{themeId:n,defaultTheme:t=A,rootShouldForwardProp:o=b,slotShouldForwardProp:r=b}=e,i=e=>(0,m.A)((0,l.A)({},e,{theme:F((0,l.A)({},e,{defaultTheme:t,themeId:n}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,f.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:c,skipVariantsResolver:h,skipSx:u,overridesResolver:x=S(v(c))}=a,m=(0,s.A)(a,w),g=void 0!==h?h:c&&"Root"!==c&&"root"!==c||!1,y=u||!1;let A=b;"Root"===c||"root"===c?A=o:c?A=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const j=(0,f.default)(e,(0,l.A)({shouldForwardProp:A,label:void 0},m)),C=e=>"function"==typeof e&&e.__emotion_real!==e||(0,d.Q)(e)?o=>k(e,(0,l.A)({},o,{theme:F({theme:o.theme,defaultTheme:t,themeId:n})})):e,_=(o,...r)=>{let a=C(o);const s=r?r.map(C):[];p&&x&&s.push((e=>{const o=F((0,l.A)({},e,{defaultTheme:t,themeId:n}));if(!o.components||!o.components[p]||!o.components[p].styleOverrides)return null;const r=o.components[p].styleOverrides,i={};return Object.entries(r).forEach((([n,t])=>{i[n]=k(t,(0,l.A)({},e,{theme:o}))})),x(e,i)})),p&&!g&&s.push((e=>{var o;const r=F((0,l.A)({},e,{defaultTheme:t,themeId:n}));return k({variants:null==r||null==(o=r.components)||null==(o=o[p])?void 0:o.variants},(0,l.A)({},e,{theme:r}))})),y||s.push(i);const c=s.length-r.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");a=[...o,...e],a.raw=[...o.raw,...e]}const d=j(a,...s);return e.muiName&&(d.muiName=e.muiName),d};return j.withConfig&&(_.withConfig=j.withConfig),_}}(),C=j;var _=t(7379),z=t(5684);const E=(0,x.A)(),N=function(e=E){return function(e=null){const n=p.useContext(z.T);return n&&(t=n,0!==Object.keys(t).length)?n:e;var t}(e)};var D=t(9599),T=t(9452),W=t(8248);const B=["component","direction","spacing","divider","children","className","useFlexGap"],R=(0,x.A)(),O=C("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>n.root});function I(e){return function({props:e,name:n,defaultTheme:t,themeId:o}){let r=N(t);o&&(r=r[o]||r);const i=function(e){const{theme:n,name:t,props:o}=e;return n&&n.components&&n.components[t]&&n.components[t].defaultProps?(0,_.A)(n.components[t].defaultProps,o):o}({theme:r,name:n,props:e});return i}({props:e,name:"MuiStack",defaultTheme:R})}function P(e,n){const t=p.Children.toArray(e).filter(Boolean);return t.reduce(((e,o,r)=>(e.push(o),r<t.length-1&&e.push(p.cloneElement(n,{key:`separator-${r}`})),e)),[])}const Q=({ownerState:e,theme:n})=>{let t=(0,l.A)({display:"flex",flexDirection:"column"},(0,T.NI)({theme:n},(0,T.kW)({values:e.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const o=(0,W.LX)(n),r=Object.keys(n.breakpoints.values).reduce(((n,t)=>(("object"==typeof e.spacing&&null!=e.spacing[t]||"object"==typeof e.direction&&null!=e.direction[t])&&(n[t]=!0),n)),{}),i=(0,T.kW)({values:e.direction,base:r}),a=(0,T.kW)({values:e.spacing,base:r});"object"==typeof i&&Object.keys(i).forEach(((e,n,t)=>{if(!i[e]){const o=n>0?i[t[n-1]]:"column";i[e]=o}}));const s=(n,t)=>{return e.useFlexGap?{gap:(0,W._W)(o,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r=t?i[t]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r]}`]:(0,W._W)(o,n)}};var r};t=(0,d.A)(t,(0,T.NI)({theme:n},a,s))}return t=(0,T.iZ)(n.breakpoints,t),t};var H=t(9851),K=t(5607);const M=function(e={}){const{createStyledComponent:n=O,useThemeProps:t=I,componentName:r="MuiStack"}=e,i=n(Q),a=p.forwardRef((function(e,n){const a=t(e),p=(0,D.A)(a),{component:d="div",direction:f="column",spacing:x=0,divider:m,children:g,className:y,useFlexGap:w=!1}=p,b=(0,s.A)(p,B),A={direction:f,spacing:x,useFlexGap:w},v=(0,u.A)({root:["root"]},(e=>(0,h.Ay)(r,e)),{});return(0,o.jsx)(i,(0,l.A)({as:d,ownerState:A,ref:n,className:(0,c.A)(v.root,y)},b,{children:m?P(g,m):g}))}));return a}({createStyledComponent:(0,H.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>n.root}),useThemeProps:e=>(0,K.b)({props:e,name:"MuiStack"})}),L=M;var G,$,V,U,X,Z,q,J,Y,ee,ne=t(7656),te=t(8267);function oe(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var re=te.Ay.div(G||(G=oe(["\n width: 100%;\n overflow-x: auto;\n"]))),ie=te.Ay.table($||($=oe(["\n padding: "," ",";\n background: ",";\n border-collapse: collapse;\n width: 100%;\n table-layout: auto;\n\n "," {\n display: block;\n border: none;\n }\n"])),i.w4.spacing.md,i.w4.spacing.zero,i.w4.colors.white,i.w4.mediaQueries.xs),ae=te.Ay.tbody(V||(V=oe(["\n overflow-x: auto;\n\n "," {\n display: block;\n }\n"])),i.w4.mediaQueries.xs),se=te.Ay.thead(U||(U=oe(["\n background: ",";\n\n "," {\n display: none;\n }\n"])),i.w4.colors.white,i.w4.mediaQueries.xs),le=te.Ay.tr(X||(X=oe(["\n :first-child {\n background: ",";\n }\n\n height: ",";\n"])),i.w4.colors.white,i.w4.spacing.xxl1),pe=te.Ay.tr(Z||(Z=oe(["\n position: relative;\n\n :nth-child(odd) {\n background: ",";\n }\n\n height: ",";\n padding: "," ",";\n\n "," {\n display: flex;\n flex-flow: column wrap;\n align-items: flex-start;\n justify-content: space-between;\n height: auto;\n gap: ",";\n }\n"])),i.w4.colors["gray-f4"],i.w4.spacing.xxl1,i.w4.spacing.sm,i.w4.spacing.md,i.w4.mediaQueries.xs,i.w4.spacing.sm),ce=te.Ay.th(q||(q=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: end;\n color: ",";\n min-width: ",";\n\n &:not(:first-child),\n &:not(:last-child) {\n padding: "," ",";\n }\n\n &:first-child {\n padding-left: ",";\n text-align: start;\n }\n\n @media (min-width: ","px) {\n &:first-child {\n width: 40%;\n }\n }\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors["green-100"],i.w4.spacing.xxl1,i.w4.spacing.zero,i.w4.spacing.sm,i.w4.spacing.lg,i.KK),de=te.Ay.td(J||(J=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: end;\n color: ",";\n vertical-align: middle;\n\n &:not(:first-child),\n &:not(:last-child) {\n padding: "," ",";\n }\n\n &:not(:first-child) {\n color: ",";\n width: auto;\n }\n\n &:first-child {\n padding-left: ",";\n text-align: start;\n }\n\n "," {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ",";\n }\n\n @media (min-width: ","px) {\n :first-child {\n width: 40%;\n }\n }\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors["gray-100"],i.w4.spacing.zero,i.w4.spacing.sm,i.w4.colors["green-100"],i.w4.spacing.lg,i.w4.mediaQueries.xs,i.w4.spacing.zero,i.KK),he=te.Ay.h2(Y||(Y=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: center;\n color: ",";\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[600],i.w4.typography.fontSize[32],i.w4.colors["green-100"]),ue=te.Ay.h3(ee||(ee=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: center;\n color: ",";\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors.black),fe=function(e){var n=e.title,t=e.message;return(0,o.jsxs)("div",{children:[(0,o.jsx)(he,{children:n}),(0,o.jsx)(ue,{children:t})]})};const xe=function(e){var n=e.columns,t=e.rows,i=e.noData,s=e.isLoading,l="xs"===(0,r.A)().mediaQuery;if(0===t.length&&!s)return(0,o.jsx)(fe,{title:(null==i?void 0:i.title)||"No data found",message:(null==i?void 0:i.text)||"Please try again later"});var p=function(e,n,t){return e.renderCell?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(de,{children:e.renderCell(n,t)},"".concat(n.id,"-").concat(t))}):(0,o.jsx)(de,{children:n[e.field]},"".concat(n.id,"-").concat(t))};return(0,o.jsx)(re,{children:s?(0,o.jsxs)(L,{spacing:1,children:[(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50}),(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50}),(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50})]}):(0,o.jsxs)(ie,{children:[(0,o.jsx)(se,{children:(0,o.jsx)(le,{children:n.map((function(e,n){return(0,o.jsx)(ce,{children:e.label},"table-head-".concat(n))}))})}),(0,o.jsx)(ae,{children:t.map((function(e,t){return(0,o.jsx)(pe,{children:l?p(n[0],e,t):n.map((function(n,t){return(0,o.jsx)(ne.Fragment,{children:p(n,e,t)},t)}))},"table-row-".concat(e.id,"-").concat(t))}))})]})})}},29(e,n,t){t.d(n,{A:()=>o.A});var o=t(3663)},3663(e,n,t){t.d(n,{A:()=>d});var o=t(3486),r=t(7656);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var a=o.KK,s=o.Fy,l=o.EP,p=o.oP,c=(o.DT,function(e){return e<=a?"xs":e<=s?"sm":e<=l?"md":e<=p?"lg":"xl"});const d=function(){var e,n,t=(e=(0,r.useState)({width:window.innerWidth,mediaQuery:c(window.innerWidth)}),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,s=[],l=!0,p=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(o=i.call(t)).done)&&(s.push(o.value),s.length!==n);l=!0);}catch(e){p=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(p)throw r}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return i(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=t[0],a=t[1];return(0,r.useEffect)((function(){var e=function(){var e=window.innerWidth,n={width:e,mediaQuery:c(e)};a((function(e){return e.mediaQuery===n.mediaQuery?e:n}))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),o}},3486(e,n,t){t.d(n,{DT:()=>p,EP:()=>s,Fy:()=>a,Il:()=>c,KK:()=>r,kg:()=>i,oP:()=>l,w4:()=>d});var o=document.createElement("style");o.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(o);var r=600,i=768,a=1074,s=1200,l=1440,p=1920,c={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},d={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:c,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)"},mediaQueries:{xs:"@media (max-width: ".concat(r,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(s,"px)"),lg:"@media (max-width: ".concat(l,"px)"),xl:"@media (max-width: ".concat(p,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkmyrentokil_components_library=self.webpackChunkmyrentokil_components_library||[]).push([[1409],{1409(e,n,t){t.r(n),t.d(n,{TableBody:()=>ae,TableComponent:()=>ie,TableData:()=>de,TableHead:()=>se,TableHeadData:()=>ce,TableHeadRow:()=>le,TableRow:()=>pe,TableWrapper:()=>re,default:()=>xe});var o=t(4848),r=t(29),i=t(3486),a=t(1023),s=t(8587),l=t(8168),p=t(5804),c=t(4164),d=t(1317),h=t(1609),f=t(5659),u=t(7540),x=t(8749),g=t(3571);const m=["ownerState"],y=["variants"],w=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const A=(0,x.A)(),v=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function F({defaultTheme:e,theme:n,themeId:t}){return o=n,0===Object.keys(o).length?e:n[t]||n;var o}function S(e){return e?(n,t)=>t[e]:null}function _(e,n){let{ownerState:t}=n,o=(0,s.A)(n,m);const r="function"==typeof e?e((0,l.A)({ownerState:t},o)):e;if(Array.isArray(r))return r.flatMap((e=>_(e,(0,l.A)({ownerState:t},o))));if(r&&"object"==typeof r&&Array.isArray(r.variants)){const{variants:e=[]}=r;let n=(0,s.A)(r,y);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,l.A)({ownerState:t},o,t)):Object.keys(e.props).forEach((n=>{(null==t?void 0:t[n])!==e.props[n]&&o[n]!==e.props[n]&&(r=!1)})),r&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,l.A)({ownerState:t},o,t)):e.style))})),n}return r}const k=function(e={}){const{themeId:n,defaultTheme:t=A,rootShouldForwardProp:o=b,slotShouldForwardProp:r=b}=e,i=e=>(0,g.A)((0,l.A)({},e,{theme:F((0,l.A)({},e,{defaultTheme:t,themeId:n}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,u.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:c,skipVariantsResolver:h,skipSx:f,overridesResolver:x=S(v(c))}=a,g=(0,s.A)(a,w),m=void 0!==h?h:c&&"Root"!==c&&"root"!==c||!1,y=f||!1;let A=b;"Root"===c||"root"===c?A=o:c?A=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const k=(0,u.default)(e,(0,l.A)({shouldForwardProp:A,label:void 0},g)),C=e=>"function"==typeof e&&e.__emotion_real!==e||(0,d.Q)(e)?o=>_(e,(0,l.A)({},o,{theme:F({theme:o.theme,defaultTheme:t,themeId:n})})):e,j=(o,...r)=>{let a=C(o);const s=r?r.map(C):[];p&&x&&s.push((e=>{const o=F((0,l.A)({},e,{defaultTheme:t,themeId:n}));if(!o.components||!o.components[p]||!o.components[p].styleOverrides)return null;const r=o.components[p].styleOverrides,i={};return Object.entries(r).forEach((([n,t])=>{i[n]=_(t,(0,l.A)({},e,{theme:o}))})),x(e,i)})),p&&!m&&s.push((e=>{var o;const r=F((0,l.A)({},e,{defaultTheme:t,themeId:n}));return _({variants:null==r||null==(o=r.components)||null==(o=o[p])?void 0:o.variants},(0,l.A)({},e,{theme:r}))})),y||s.push(i);const c=s.length-r.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");a=[...o,...e],a.raw=[...o.raw,...e]}const d=k(a,...s);return e.muiName&&(d.muiName=e.muiName),d};return k.withConfig&&(j.withConfig=k.withConfig),j}}(),C=k;var j=t(7379),z=t(5684);const E=(0,x.A)(),N=function(e=E){return function(e=null){const n=p.useContext(z.T);return n&&(t=n,0!==Object.keys(t).length)?n:e;var t}(e)};var D=t(9599),T=t(9452),W=t(8248);const B=["component","direction","spacing","divider","children","className","useFlexGap"],R=(0,x.A)(),O=C("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>n.root});function I(e){return function({props:e,name:n,defaultTheme:t,themeId:o}){let r=N(t);o&&(r=r[o]||r);const i=function(e){const{theme:n,name:t,props:o}=e;return n&&n.components&&n.components[t]&&n.components[t].defaultProps?(0,j.A)(n.components[t].defaultProps,o):o}({theme:r,name:n,props:e});return i}({props:e,name:"MuiStack",defaultTheme:R})}function P(e,n){const t=p.Children.toArray(e).filter(Boolean);return t.reduce(((e,o,r)=>(e.push(o),r<t.length-1&&e.push(p.cloneElement(n,{key:`separator-${r}`})),e)),[])}const Q=({ownerState:e,theme:n})=>{let t=(0,l.A)({display:"flex",flexDirection:"column"},(0,T.NI)({theme:n},(0,T.kW)({values:e.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const o=(0,W.LX)(n),r=Object.keys(n.breakpoints.values).reduce(((n,t)=>(("object"==typeof e.spacing&&null!=e.spacing[t]||"object"==typeof e.direction&&null!=e.direction[t])&&(n[t]=!0),n)),{}),i=(0,T.kW)({values:e.direction,base:r}),a=(0,T.kW)({values:e.spacing,base:r});"object"==typeof i&&Object.keys(i).forEach(((e,n,t)=>{if(!i[e]){const o=n>0?i[t[n-1]]:"column";i[e]=o}}));const s=(n,t)=>{return e.useFlexGap?{gap:(0,W._W)(o,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r=t?i[t]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r]}`]:(0,W._W)(o,n)}};var r};t=(0,d.A)(t,(0,T.NI)({theme:n},a,s))}return t=(0,T.iZ)(n.breakpoints,t),t};var H=t(9851),K=t(5607);const M=function(e={}){const{createStyledComponent:n=O,useThemeProps:t=I,componentName:r="MuiStack"}=e,i=n(Q),a=p.forwardRef((function(e,n){const a=t(e),p=(0,D.A)(a),{component:d="div",direction:u="column",spacing:x=0,divider:g,children:m,className:y,useFlexGap:w=!1}=p,b=(0,s.A)(p,B),A={direction:u,spacing:x,useFlexGap:w},v=(0,f.A)({root:["root"]},(e=>(0,h.Ay)(r,e)),{});return(0,o.jsx)(i,(0,l.A)({as:d,ownerState:A,ref:n,className:(0,c.A)(v.root,y)},b,{children:g?P(m,g):m}))}));return a}({createStyledComponent:(0,H.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>n.root}),useThemeProps:e=>(0,K.b)({props:e,name:"MuiStack"})}),L=M;var G,$,V,U,X,Z,q,J,Y,ee,ne=t(7656),te=t(8267);function oe(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var re=te.Ay.div(G||(G=oe(["\n width: 100%;\n overflow-x: auto;\n"]))),ie=te.Ay.table($||($=oe(["\n padding: "," ",";\n background: ",";\n border-collapse: collapse;\n width: 100%;\n table-layout: auto;\n\n "," {\n display: block;\n border: none;\n }\n"])),i.w4.spacing.md,i.w4.spacing.zero,i.w4.colors.white,i.w4.mediaQueries.xs),ae=te.Ay.tbody(V||(V=oe(["\n overflow-x: auto;\n\n "," {\n display: block;\n }\n"])),i.w4.mediaQueries.xs),se=te.Ay.thead(U||(U=oe(["\n background: ",";\n\n "," {\n display: none;\n }\n"])),i.w4.colors.white,i.w4.mediaQueries.xs),le=te.Ay.tr(X||(X=oe(["\n :first-child {\n background: ",";\n }\n\n height: ",";\n"])),i.w4.colors.white,i.w4.spacing.xxl1),pe=te.Ay.tr(Z||(Z=oe(["\n position: relative;\n\n :nth-child(odd) {\n background: ",";\n }\n\n height: ",";\n padding: "," ",";\n\n "," {\n display: flex;\n flex-flow: column wrap;\n align-items: flex-start;\n justify-content: space-between;\n height: auto;\n gap: ",";\n }\n"])),i.w4.colors["gray-f4"],i.w4.spacing.xxl1,i.w4.spacing.sm,i.w4.spacing.md,i.w4.mediaQueries.xs,i.w4.spacing.sm),ce=te.Ay.th(q||(q=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: end;\n color: ",";\n min-width: ",";\n\n &:not(:first-child),\n &:not(:last-child) {\n padding: "," ",";\n }\n\n &:first-child {\n padding-left: ",";\n text-align: start;\n }\n\n @media (min-width: ","px) {\n &:first-child {\n width: 40%;\n }\n }\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors["green-100"],i.w4.spacing.xxl1,i.w4.spacing.zero,i.w4.spacing.sm,i.w4.spacing.lg,i.KK),de=te.Ay.td(J||(J=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: end;\n color: ",";\n vertical-align: middle;\n\n &:not(:first-child),\n &:not(:last-child) {\n padding: "," ",";\n }\n\n &:not(:first-child) {\n color: ",";\n width: auto;\n }\n\n &:first-child {\n padding-left: ",";\n text-align: start;\n }\n\n "," {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ",";\n }\n\n @media (min-width: ","px) {\n :first-child {\n width: 40%;\n }\n }\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors["gray-100"],i.w4.spacing.zero,i.w4.spacing.sm,i.w4.colors["green-100"],i.w4.spacing.lg,i.w4.mediaQueries.xs,i.w4.spacing.zero,i.KK),he=te.Ay.h2(Y||(Y=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: center;\n color: ",";\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[600],i.w4.typography.fontSize[32],i.w4.colors["green-100"]),fe=te.Ay.h3(ee||(ee=oe(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n text-align: center;\n color: ",";\n"])),i.w4.typography.fontFamily.nunito,i.w4.typography.fontWeight[400],i.w4.typography.fontSize[16],i.w4.colors.black),ue=function(e){var n=e.title,t=e.message;return(0,o.jsxs)("div",{children:[(0,o.jsx)(he,{children:n}),(0,o.jsx)(fe,{children:t})]})};const xe=function(e){var n=e.columns,t=e.rows,i=e.noData,s=e.isLoading,l="xs"===(0,r.A)().mediaQuery;if(0===t.length&&!s)return(0,o.jsx)(ue,{title:(null==i?void 0:i.title)||"No data found",message:(null==i?void 0:i.text)||"Please try again later"});var p=function(e,n,t){return e.renderCell?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(de,{children:e.renderCell(n,t)},"".concat(n.id,"-").concat(t))}):(0,o.jsx)(de,{children:n[e.field]},"".concat(n.id,"-").concat(t))};return(0,o.jsx)(re,{children:s?(0,o.jsxs)(L,{spacing:1,children:[(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50}),(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50}),(0,o.jsx)(a.A,{variant:"rectangular",width:"full",height:50})]}):(0,o.jsxs)(ie,{children:[(0,o.jsx)(se,{children:(0,o.jsx)(le,{children:n.map((function(e,n){return(0,o.jsx)(ce,{children:e.label},"table-head-".concat(n))}))})}),(0,o.jsx)(ae,{children:t.map((function(e,t){return(0,o.jsx)(pe,{children:l?p(n[0],e,t):n.map((function(n,t){return(0,o.jsx)(ne.Fragment,{children:p(n,e,t)},t)}))},"table-row-".concat(e.id,"-").concat(t))}))})]})})}},29(e,n,t){t.d(n,{A:()=>o.A});var o=t(3663)},3663(e,n,t){t.d(n,{A:()=>d});var o=t(3486),r=t(7656);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var a=o.KK,s=o.Fy,l=o.EP,p=o.oP,c=(o.DT,function(e){return e<=a?"xs":e<=s?"sm":e<=l?"md":e<=p?"lg":"xl"});const d=function(){var e,n,t=(e=(0,r.useState)({width:window.innerWidth,mediaQuery:c(window.innerWidth)}),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,s=[],l=!0,p=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(o=i.call(t)).done)&&(s.push(o.value),s.length!==n);l=!0);}catch(e){p=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(p)throw r}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return i(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=t[0],a=t[1];return(0,r.useEffect)((function(){var e=function(){var e=window.innerWidth,n={width:e,mediaQuery:c(e)};a((function(e){return e.mediaQuery===n.mediaQuery?e:n}))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),o}},3486(e,n,t){t.d(n,{DT:()=>p,EP:()=>s,Fy:()=>a,Il:()=>c,KK:()=>r,kg:()=>i,oP:()=>l,w4:()=>d});var o=document.createElement("style");o.innerHTML="@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');",document.head.appendChild(o);var r=600,i=768,a=1074,s=1200,l=1440,p=1920,c={fontFamily:{nunito:"'Nunito Sans', sans-serif"},fontWeight:{100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"},fontSize:{8:"8px",10:"10px",12:"12px",13:"13px",14:"14px",16:"16px",18:"18px",20:"20px",24:"24px",30:"30px",32:"32px",36:"36px",48:"48px",60:"60px",72:"72px"},custom:{h1:"font-size: 32px; font-weight: 700; line-height: 1.2;",h2:"font-size: 20px; font-weight: 700; line-height: 1.2;",h3:"font-size: 18px; font-weight: 700; line-height: 1.2;",h4:"font-size: 16px; font-weight: 600; line-height: 1.2;",p:"font-size: 20px; font-weight: 400; line-height: 1.2;"},myR_fonts:{h1_font:'700 24px/120% "Nunito Sans", sans-serif',h2_font:'600 20px/120% "Nunito Sans", sans-serif',h3_font:'400 20px/120% "Nunito Sans", sans-serif',h4_font:'600 16px/150% "Nunito Sans", sans-serif',h5_font:'400 16px/150% "Nunito Sans", sans-serif',body_font:'400 16px/120% "Nunito Sans", sans-serif',button_font:'700 16px/100% "Nunito Sans", sans-serif',h1:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"24px",lineHeight:"120%"},h2:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"22px",lineHeight:"120%"},h3:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"20px",lineHeight:"120%"},h4:{fontFamily:"Nunito Sans",fontWeight:600,fontSize:"16px",lineHeight:"150%"},h5:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"150%"},body:{fontFamily:"Nunito Sans",fontWeight:400,fontSize:"16px",lineHeight:"120%"},button:{fontFamily:"Nunito Sans",fontWeight:700,fontSize:"16px",lineHeight:"100%"}}},d={palette:{primary:{main:"red"},secondary:{main:"blue"}},typography:c,borders:{width:{none:"0px",sm:"1px",md:"2px",lg:"3px"},radius:{sm:"4px",md:"8px",lg:"12px",xl:"20px",xxl:"50%"}},colors:{portal_slate:"#354A55",portal_red:"#ED1C24",portal_blue:"#007DC5",portal_white:"#FFFFFF",portal_grey:"#333333",portal_midnight:"#0F202E",portal_background:"#F5F5F5",portal_field:"#AAAAAA",portal_disabled:"#CCCCCC",portal_sectionbg:"#ECF0F1",portal_success:"#25AD0F",portal_error:"#DA4135",portal_gridline:"#e0e0e0",black:"#000000",blue:"#3498DB","blue-50":"#1DABFC","blue-100":"#3498DB","blue-200":"#007DC5","blue-300":"#025C90","blue-400":"#F2F8FC","blue-800":"#0F202E","blue-900":"#DDE4E8","blue-1000":"#F0F2F3",gray:"#ecf0f1","gray-5":"rgba(0, 125, 197, 0.05)","gray-border":"rgba(218, 221, 223, 0.3)","gray-f4":"#F4F4F4","gray-50":"#F9F9F9","gray-60":"#E6E6E6","gray-100":"#333333","gray-200":"#FFDBDB","gray-300":"#cccccc","gray-400":"#CCCCCC","gray-900":"#ecf0f1","gray-950":"#AAAAAA",green:"#00FF00","green-100":"#354A55","green-200":"#FF9900","green-300":"#25AD0F","green-400":"#EFFFDB","green-500":"#F2E39A",orange:"#FFA500",red:"#F61B29","red-100":"#E74C3C","red-200":"#D52B1E","red-300":"#ED1C24","red-400":"#DA4135","red-500":"#AA0E13","red-600":"#D2462712",transparent:"transparent",yellow:"#FEB84B",white:"#ffffff","white-100":"#F4FBF3","white-200":"#FFFBF6","white-300":"#FEF3F4",get error_primary(){return this["red-200"]},get error_secondary(){return this["red-100"]},divider:"rgba(0, 0, 0, 0.3)",dialog_background:"#ffffff",dialog_muted_foreground:"#AAAAAA",dialog_overlay:"rgba(0, 0, 0, 0.5)",dialog_accent:"#F5F5F5",dialog_ring:"#007DC5",dialog_ring_offset:"#ffffff",dialog_border:"#e0e0e0"},shadows:{"drop-shadow-sort":"0 2px 4px 0 rgba(0, 0, 0, 0.1)","drop-shadow-notification-button":"0px 4px 4px 0px rgba(0, 0, 0, 0.1)","drop-shadow-dark":"0px 2px 6px 0px #00000040","drop-shadow-dark-navbar":"0px 8px 20px -1px #00000017","shadow-gradient":"linear-gradient(0deg, #354A55, #354A55),linear-gradient(0deg, #ffffff, #ffffff)","shadow-alert":"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","drop-shadow-navbar":"0px 2px 6px 0px #00000026","drop-shadow-overlay":"0px 12px 6px 0px rgba(0, 0, 0, 0.55)","drop-shadow-calendar":"0px 6px 4px 0px rgba(0,0,0,0.55)","drop-shadow-dialog":"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)"},mediaQueries:{xs:"@media (max-width: ".concat(r,"px)"),s:"@media (max-width: ".concat(i,"px)"),sm:"@media (max-width: ".concat(a,"px)"),md:"@media (max-width: ".concat(s,"px)"),lg:"@media (max-width: ".concat(l,"px)"),xl:"@media (max-width: ".concat(p,"px)")},spacing:{zero:"0px",xxxs:"1px",xxs:"2px",xs:"4px",xs1:"5px",s:"6px",s1:"7px",sm:"8px",sm1:"10px",sm2:"12px",md:"16px",md2:"20px",lg:"24px",xl:"32px",xl1:"40px",xxl:"48px",xxl1:"50px",xxl2:"54px",xxl3:"60px",xxxl:"64px"},size:{none:"0px",fullWidth:"100%",checkbox:"18px",sidebar:"200px",thumbnail:"100px",gridCell:"110px",maxWidth:"720px",input:{xs:"20px",sm:"40px",lg:"50px",dropdown:"260px",defaultWidth:"300px",checkmark:"10px"},button:{height:{sm:"30px",md:"40px",lg:"50px"}},navbar:{desktop:{height:"92px",width:"100px"},mobile:{height:"64px",width:"100px"}},logo:{desktop:{width:"176px",height:"92px",color:"rgb(237, 28, 36)"},mobile:{width:"120px",height:"64px",color:"rgb(237, 28, 36)"}},chart:{width:"100%",height:"400px"}}}}}]);
|