aquasis-fe-components 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70053,7 +70053,8 @@ const yHe = async () => {
70053
70053
  {
70054
70054
  type: "link",
70055
70055
  shape: "circle",
70056
- icon: o ? /* @__PURE__ */ we.jsx("img", { src: qo(o), alt: "language flag", width: hd }) : /* @__PURE__ */ we.jsx(ka.Image, { active: !0 }),
70056
+ styles: { icon: { display: "flex" } },
70057
+ icon: o ? /* @__PURE__ */ we.jsx("img", { src: qo(o), alt: "language flag", width: hd }) : /* @__PURE__ */ we.jsx(ka.Image, { active: !0, className: "language-switcher-skeleton" }),
70057
70058
  onClick: (m) => m.preventDefault(),
70058
70059
  loading: r
70059
70060
  }
@@ -1,4 +1,4 @@
1
- (function(Hr,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],P):(Hr=typeof globalThis<"u"?globalThis:Hr||self,P(Hr["Aquasis FE Components"]={},Hr.React,Hr.ReactDOM))})(this,function(Hr,P,Lr){"use strict";var MHe=Object.defineProperty;var zHe=(Hr,P,Lr)=>P in Hr?MHe(Hr,P,{enumerable:!0,configurable:!0,writable:!0,value:Lr}):Hr[P]=Lr;var Fp=(Hr,P,Lr)=>zHe(Hr,typeof P!="symbol"?P+"":P,Lr);var jp=document.createElement("style");jp.textContent=`.helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}.switcher__option{display:flex;align-items:center;column-gap:5px}.switcher__option img{max-width:20px}.switcher__option span{text-transform:uppercase}.release-notes-image.ant-upload-wrapper{width:100%}.addUser__modal .ant-form-item-control-input{min-height:0}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body .ant-carousel .slick-slider .slick-arrow{color:#60c5cf}body .ant-carousel .slick-slider .slick-dots>li>button{background:#60c5cf}body .ant-carousel .slick-slider .slick-list .slick-track .slick-slide{width:100%}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
1
+ (function(Hr,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],P):(Hr=typeof globalThis<"u"?globalThis:Hr||self,P(Hr["Aquasis FE Components"]={},Hr.React,Hr.ReactDOM))})(this,function(Hr,P,Lr){"use strict";var MHe=Object.defineProperty;var zHe=(Hr,P,Lr)=>P in Hr?MHe(Hr,P,{enumerable:!0,configurable:!0,writable:!0,value:Lr}):Hr[P]=Lr;var Fp=(Hr,P,Lr)=>zHe(Hr,typeof P!="symbol"?P+"":P,Lr);var jp=document.createElement("style");jp.textContent=`.helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}.switcher__option{display:flex;align-items:center;column-gap:5px}.switcher__option img{max-width:20px}.switcher__option span{text-transform:uppercase}.ant-skeleton.ant-skeleton-element .language-switcher-skeleton.ant-skeleton-image{border-radius:50%;width:40px;height:40px}.ant-skeleton.ant-skeleton-element .language-switcher-skeleton.ant-skeleton-image svg{width:20px;height:20px}.release-notes-image.ant-upload-wrapper{width:100%}.addUser__modal .ant-form-item-control-input{min-height:0}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body .ant-carousel .slick-slider .slick-arrow{color:#60c5cf}body .ant-carousel .slick-slider .slick-dots>li>button{background:#60c5cf}body .ant-carousel .slick-slider .slick-list .slick-track .slick-slide{width:100%}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
2
2
  /*$vite$:1*/`,document.head.appendChild(jp);function Bp(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=Bp(P),Hp=Bp(Lr);var G1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hu={exports:{}},Pc={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -1082,7 +1082,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1082
1082
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
1083
1083
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
1084
1084
  * Copyright 2024 Fonticons, Inc.
1085
- */const MRe={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},{Title:tD}=oc,s2="HELPDESK.FORM",zRe="GENERAL.MESSAGES",NRe=({onCancel:e})=>{const[n,t]=P.useState(!1),[r]=Ft.useForm(),{t:a}=l2(),{requiredField:o}=l6(),i=ao(M1.AppName),c=[{dataIndex:"field",title:a("HELPDESK.TABLE.FIELD"),render:f=>a(`HELPDESK.FORM.FIELDS.${f==null?void 0:f.toUpperCase()}`)},{dataIndex:"code",title:a("HELPDESK.TABLE.CODE"),render:f=>a(`HELPDESK.ERRORS_CODE.${f==null?void 0:f.toUpperCase()}`)}],l=f=>{r.setFieldValue(Ko.Attachments,f.fileList)},u=f=>{t(!0);const m={...f,appName:i};wRe(m).then(()=>{Gl.success({message:a(`${zRe}.SUCCESS.TICKET`),placement:"topLeft"}),e&&e()}).catch(({response:p})=>{const{errors:g}=p.data;Gl.error({className:"table-notification",message:a("ERROR"),placement:"topLeft",description:we.jsx(X2,{dataSource:g,columns:c,pagination:{defaultPageSize:5},rowKey:"field",size:"small",bordered:!0}),duration:0})}).finally(()=>t(!1))};return we.jsxs(C1,{className:"helpdesk__content",children:[we.jsx(dr,{span:24,children:we.jsx(tD,{level:3,className:"helpdesk__title",children:a(`${s2}.TITLE`)})}),we.jsx(dr,{span:24,children:we.jsxs(_o,{children:[we.jsx(tD,{level:4,children:a(`${s2}.FIELDS.TITLE`)}),we.jsxs(Ft,{form:r,layout:"vertical",onFinish:u,children:[we.jsx(T2,{fieldName:Ko.Name,label:a(`${s2}.FIELDS.NAME`),placeholder:a(`${s2}.FIELDS.NAME`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(T2,{fieldName:Ko.Email,label:a(`${s2}.FIELDS.EMAIL`),placeholder:a(`${s2}.FIELDS.EMAIL`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(T2,{fieldName:Ko.Subject,label:a(`${s2}.FIELDS.SUBJECT`),placeholder:a(`${s2}.FIELDS.SUBJECT`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(nTe,{fieldName:Ko.Description,label:a(`${s2}.FIELDS.DESCRIPTION`),placeholder:a(`${s2}.FIELDS.DESCRIPTION`,{context:"PLACEHOLDER"}),rows:4,rules:o}),we.jsx(Ft.Item,{name:Ko.Attachments,children:we.jsxs(M4,{beforeUpload:()=>!1,maxCount:5,onChange:l,className:"helpdesk__fields-files",multiple:!0,children:[we.jsx("p",{className:"ant-upload-drag-icon",children:we.jsx(E5,{})}),we.jsx(DM,{i18nKey:a(`${s2}.FIELDS.UPLOAD_FILES`),components:{strong:we.jsx("strong",{}),br:we.jsx("br",{}),small:we.jsx("small",{})}})]})}),we.jsx(Qt,{htmlType:"submit",type:"primary",icon:we.jsx(I2,{icon:MRe}),loading:n,disabled:n,block:!0,children:a(`${s2}.BUTTONS.SEND`)})]})]})})]})};I4e.add(cIe);const $Re=({size:e})=>{const[n,t]=P.useState(!1),{t:r}=l2(),a=()=>t(c=>!c),o=()=>t(!1),i=()=>{switch(e){case"small":return"1x";case"large":return"xl";default:return"lg"}};return we.jsx(C1,{align:"middle",children:we.jsx(g3,{placement:"bottomRight",trigger:"click",content:we.jsx(NRe,{onCancel:o}),rootClassName:"helpdesk__container",overlayInnerStyle:{padding:0},arrow:!1,open:n,destroyTooltipOnHide:!0,children:we.jsx(n1,{title:r("HELPDESK.SUPPORT"),placement:"left",children:we.jsx(Qt,{type:"primary",shape:"circle",icon:we.jsx(I2,{icon:bO,size:i()}),onClick:a,size:e})})})})},ORe=e=>we.jsx(es,{children:we.jsx($Re,{...e})}),PRe=O4()(ORe);var y6=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e.GetUser="GetUser",e.GetLanguages="GetLanguages",e))(y6||{});const IRe=async()=>{const e=window.globalAuthUrl,{data:n}=await La.get(`${e}/getApps`);return n},TRe=async()=>{const e=window.globalAuthUrl,{data:n}=await La.get(`${e}/GetLanguages`);return n},RRe=async e=>{const n=window.globalAuthUrl,{data:t}=await La.post(`${n}/ListReleases`,e);return t},_Re=async e=>{const n=window.globalAuthUrl,{data:t}=await La.post(`${n}/MaintainReleases`,e);return t},ARe=async(e,n)=>{const t=window.globalAuthUrl,{data:r}=await La.post(`${t}/ReadNotification`,{idRelease:e,userId:n});return r},rD=()=>xu([y6.GetApps],async()=>await IRe()),S6=()=>xu([y6.GetLanguages],async()=>await TRe()),DRe=e=>{var c;const{i18n:n}=l2(),{data:t}=S6(),r=(c=t==null?void 0:t.find(l=>l.description===n.language))==null?void 0:c.idLanguage,{idApp:a,userId:o,lastDeployed:i}=e;return xu([y6.GetReleases,a,o,i,r],async()=>await RRe({...e,idLanguage:r}),{enabled:!!a&&r!==void 0})},Pm=20,kRe=({onlyFlag:e})=>{var u;const{i18n:n}=l2(),{data:t,isLoading:r}=S6(),a=mA(),o=(u=t==null?void 0:t.find(({description:f})=>f===n.language))==null?void 0:u.image;P.useEffect(()=>{t&&(t.some(({description:f})=>f===a)?i(a):i("EN"))},[a,t]);const i=f=>{n.changeLanguage(f),dc.set(M1.Language,f),Mr.locale(f.toLowerCase())},c=({key:f})=>{n.changeLanguage(f),dc.set(M1.Language,f.toUpperCase())},l=t==null?void 0:t.map(({description:f,image:m})=>({value:f,label:we.jsxs("div",{className:"switcher__option",children:[we.jsx("img",{src:Uo(m),alt:`${f} flag`,width:Pm}),we.jsx("span",{style:{textTransform:"uppercase"},children:f})]})}));if(e){const f=t==null?void 0:t.map(({description:m,image:p})=>({key:m,label:m,icon:we.jsx("img",{src:Uo(p),alt:`${m} flag`,width:Pm})})).sort((m,p)=>m.label.localeCompare(p.label));return we.jsx(e4,{placement:"bottomRight",menu:{items:f,onClick:c},children:we.jsx(Qt,{type:"link",shape:"circle",icon:o?we.jsx("img",{src:Uo(o),alt:"language flag",width:Pm}):we.jsx(ga.Image,{active:!0}),onClick:m=>m.preventDefault(),loading:r})})}return we.jsx(ha,{optionLabelProp:"label",style:{width:90,display:"inline-block"},options:uA(l),value:n.language,onSelect:i,loading:r,variant:"borderless"})},FRe=e=>we.jsx(es,{children:we.jsx(kRe,{...e})}),jRe=O4()(FRe);var gt=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(gt||{}),x6={exports:{}};/**
1085
+ */const MRe={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},{Title:tD}=oc,s2="HELPDESK.FORM",zRe="GENERAL.MESSAGES",NRe=({onCancel:e})=>{const[n,t]=P.useState(!1),[r]=Ft.useForm(),{t:a}=l2(),{requiredField:o}=l6(),i=ao(M1.AppName),c=[{dataIndex:"field",title:a("HELPDESK.TABLE.FIELD"),render:f=>a(`HELPDESK.FORM.FIELDS.${f==null?void 0:f.toUpperCase()}`)},{dataIndex:"code",title:a("HELPDESK.TABLE.CODE"),render:f=>a(`HELPDESK.ERRORS_CODE.${f==null?void 0:f.toUpperCase()}`)}],l=f=>{r.setFieldValue(Ko.Attachments,f.fileList)},u=f=>{t(!0);const m={...f,appName:i};wRe(m).then(()=>{Gl.success({message:a(`${zRe}.SUCCESS.TICKET`),placement:"topLeft"}),e&&e()}).catch(({response:p})=>{const{errors:g}=p.data;Gl.error({className:"table-notification",message:a("ERROR"),placement:"topLeft",description:we.jsx(X2,{dataSource:g,columns:c,pagination:{defaultPageSize:5},rowKey:"field",size:"small",bordered:!0}),duration:0})}).finally(()=>t(!1))};return we.jsxs(C1,{className:"helpdesk__content",children:[we.jsx(dr,{span:24,children:we.jsx(tD,{level:3,className:"helpdesk__title",children:a(`${s2}.TITLE`)})}),we.jsx(dr,{span:24,children:we.jsxs(_o,{children:[we.jsx(tD,{level:4,children:a(`${s2}.FIELDS.TITLE`)}),we.jsxs(Ft,{form:r,layout:"vertical",onFinish:u,children:[we.jsx(T2,{fieldName:Ko.Name,label:a(`${s2}.FIELDS.NAME`),placeholder:a(`${s2}.FIELDS.NAME`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(T2,{fieldName:Ko.Email,label:a(`${s2}.FIELDS.EMAIL`),placeholder:a(`${s2}.FIELDS.EMAIL`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(T2,{fieldName:Ko.Subject,label:a(`${s2}.FIELDS.SUBJECT`),placeholder:a(`${s2}.FIELDS.SUBJECT`,{context:"PLACEHOLDER"}),rules:o}),we.jsx(nTe,{fieldName:Ko.Description,label:a(`${s2}.FIELDS.DESCRIPTION`),placeholder:a(`${s2}.FIELDS.DESCRIPTION`,{context:"PLACEHOLDER"}),rows:4,rules:o}),we.jsx(Ft.Item,{name:Ko.Attachments,children:we.jsxs(M4,{beforeUpload:()=>!1,maxCount:5,onChange:l,className:"helpdesk__fields-files",multiple:!0,children:[we.jsx("p",{className:"ant-upload-drag-icon",children:we.jsx(E5,{})}),we.jsx(DM,{i18nKey:a(`${s2}.FIELDS.UPLOAD_FILES`),components:{strong:we.jsx("strong",{}),br:we.jsx("br",{}),small:we.jsx("small",{})}})]})}),we.jsx(Qt,{htmlType:"submit",type:"primary",icon:we.jsx(I2,{icon:MRe}),loading:n,disabled:n,block:!0,children:a(`${s2}.BUTTONS.SEND`)})]})]})})]})};I4e.add(cIe);const $Re=({size:e})=>{const[n,t]=P.useState(!1),{t:r}=l2(),a=()=>t(c=>!c),o=()=>t(!1),i=()=>{switch(e){case"small":return"1x";case"large":return"xl";default:return"lg"}};return we.jsx(C1,{align:"middle",children:we.jsx(g3,{placement:"bottomRight",trigger:"click",content:we.jsx(NRe,{onCancel:o}),rootClassName:"helpdesk__container",overlayInnerStyle:{padding:0},arrow:!1,open:n,destroyTooltipOnHide:!0,children:we.jsx(n1,{title:r("HELPDESK.SUPPORT"),placement:"left",children:we.jsx(Qt,{type:"primary",shape:"circle",icon:we.jsx(I2,{icon:bO,size:i()}),onClick:a,size:e})})})})},ORe=e=>we.jsx(es,{children:we.jsx($Re,{...e})}),PRe=O4()(ORe);var y6=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e.GetUser="GetUser",e.GetLanguages="GetLanguages",e))(y6||{});const IRe=async()=>{const e=window.globalAuthUrl,{data:n}=await La.get(`${e}/getApps`);return n},TRe=async()=>{const e=window.globalAuthUrl,{data:n}=await La.get(`${e}/GetLanguages`);return n},RRe=async e=>{const n=window.globalAuthUrl,{data:t}=await La.post(`${n}/ListReleases`,e);return t},_Re=async e=>{const n=window.globalAuthUrl,{data:t}=await La.post(`${n}/MaintainReleases`,e);return t},ARe=async(e,n)=>{const t=window.globalAuthUrl,{data:r}=await La.post(`${t}/ReadNotification`,{idRelease:e,userId:n});return r},rD=()=>xu([y6.GetApps],async()=>await IRe()),S6=()=>xu([y6.GetLanguages],async()=>await TRe()),DRe=e=>{var c;const{i18n:n}=l2(),{data:t}=S6(),r=(c=t==null?void 0:t.find(l=>l.description===n.language))==null?void 0:c.idLanguage,{idApp:a,userId:o,lastDeployed:i}=e;return xu([y6.GetReleases,a,o,i,r],async()=>await RRe({...e,idLanguage:r}),{enabled:!!a&&r!==void 0})},Pm=20,kRe=({onlyFlag:e})=>{var u;const{i18n:n}=l2(),{data:t,isLoading:r}=S6(),a=mA(),o=(u=t==null?void 0:t.find(({description:f})=>f===n.language))==null?void 0:u.image;P.useEffect(()=>{t&&(t.some(({description:f})=>f===a)?i(a):i("EN"))},[a,t]);const i=f=>{n.changeLanguage(f),dc.set(M1.Language,f),Mr.locale(f.toLowerCase())},c=({key:f})=>{n.changeLanguage(f),dc.set(M1.Language,f.toUpperCase())},l=t==null?void 0:t.map(({description:f,image:m})=>({value:f,label:we.jsxs("div",{className:"switcher__option",children:[we.jsx("img",{src:Uo(m),alt:`${f} flag`,width:Pm}),we.jsx("span",{style:{textTransform:"uppercase"},children:f})]})}));if(e){const f=t==null?void 0:t.map(({description:m,image:p})=>({key:m,label:m,icon:we.jsx("img",{src:Uo(p),alt:`${m} flag`,width:Pm})})).sort((m,p)=>m.label.localeCompare(p.label));return we.jsx(e4,{placement:"bottomRight",menu:{items:f,onClick:c},children:we.jsx(Qt,{type:"link",shape:"circle",styles:{icon:{display:"flex"}},icon:o?we.jsx("img",{src:Uo(o),alt:"language flag",width:Pm}):we.jsx(ga.Image,{active:!0,className:"language-switcher-skeleton"}),onClick:m=>m.preventDefault(),loading:r})})}return we.jsx(ha,{optionLabelProp:"label",style:{width:90,display:"inline-block"},options:uA(l),value:n.language,onSelect:i,loading:r,variant:"borderless"})},FRe=e=>we.jsx(es,{children:we.jsx(kRe,{...e})}),jRe=O4()(FRe);var gt=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(gt||{}),x6={exports:{}};/**
1086
1086
  * @license
1087
1087
  * Lodash <https://lodash.com/>
1088
1088
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}.switcher__option{display:flex;align-items:center;column-gap:5px}.switcher__option img{max-width:20px}.switcher__option span{text-transform:uppercase}.release-notes-image.ant-upload-wrapper{width:100%}.addUser__modal .ant-form-item-control-input{min-height:0}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body .ant-carousel .slick-slider .slick-arrow{color:#60c5cf}body .ant-carousel .slick-slider .slick-dots>li>button{background:#60c5cf}body .ant-carousel .slick-slider .slick-list .slick-track .slick-slide{width:100%}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
1
+ .helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}.switcher__option{display:flex;align-items:center;column-gap:5px}.switcher__option img{max-width:20px}.switcher__option span{text-transform:uppercase}.ant-skeleton.ant-skeleton-element .language-switcher-skeleton.ant-skeleton-image{border-radius:50%;width:40px;height:40px}.ant-skeleton.ant-skeleton-element .language-switcher-skeleton.ant-skeleton-image svg{width:20px;height:20px}.release-notes-image.ant-upload-wrapper{width:100%}.addUser__modal .ant-form-item-control-input{min-height:0}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body .ant-carousel .slick-slider .slick-arrow{color:#60c5cf}body .ant-carousel .slick-slider .slick-dots>li>button{background:#60c5cf}body .ant-carousel .slick-slider .slick-list .slick-track .slick-slide{width:100%}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aquasis-fe-components",
3
3
  "private": false,
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "type": "module",
6
6
  "license": "ISC",
7
7
  "author": "Ewerton Souza",