tocco-widget-showcase 3.17.5 → 3.17.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +6 -0
- package/dist/chunk-20135.2037173b74e02f546c86.js +1 -0
- package/dist/chunk-26335.a8b20a4034480f00d940.js +1 -0
- package/dist/chunk-47027.7db981ee5de6b67157ac.js +1 -0
- package/dist/chunk-75085.6d0c805a0b4cf6d56ef5.js +1 -0
- package/dist/chunk-code-editor.6b4e2e52888c976dae87.js +1 -0
- package/dist/chunk-docs-actions.024a4bfa78d4a78b3dfc.js +1 -0
- package/dist/chunk-html-editor.3d29b112617694995185.js +6 -0
- package/dist/chunk-phone-formatter.b462c1f103ca7d4c7325.js +1 -0
- package/dist/chunk-vendor-icons.ce938641e26f3c32f098.js +1 -0
- package/dist/index.js +63 -61
- package/jest.config.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-26528.033b1bdc468f5e79dbc6.js +0 -1
- package/dist/chunk-68389.2fbee0cdc27b3e24ed7c.js +0 -1
- package/dist/chunk-73498.d0b8d2d6d90ba67bf92a.js +0 -1
- package/dist/chunk-9231.6d46ebbe51b3749b2b2f.js +0 -1
- package/dist/chunk-code-editor.41fb2ced9afa9670d1df.js +0 -1
- package/dist/chunk-docs-actions.fc820ee788e88cde480e.js +0 -1
- package/dist/chunk-html-editor.34f2403650a425b5a8d7.js +0 -6
- package/dist/chunk-phone-formatter.a6cfd5cff68b735c00af.js +0 -1
- package/dist/chunk-vendor-icons.ccdde5581f5191640245.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_widget_showcase=this.webpackChunktocco_widget_showcase||[]).push([[47027],{10957(e,n,t){t.r(n),t.d(n,{default:()=>Je});var i=t(71468),o=t(11055),s=t(64467),r=t(4883),a=t(87046),c=t(36372),d=t(66387),l=t(52662),g=t(30157),u=t(33150);const p=t.p+"imgs/tocco-circle.7ab925bf473f813493f0.svg";var h=t(42768),f=t(76320),w=t(10467),y=t(60436),m=t(5544),x=t(54756),A=t(55364),b=t(77238),j=t(77418),v=t(33829),C=t(76792),k=t(84672),S="widget-container",O="widget";function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){(0,s.A)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P,T,E,M,z,D,F,I,H=function(){return document.getElementById(S)},q=function(){var e=(0,w.A)(x.mark((function e(n,t,i,o,s){var r,a,c,d,l,g,u,p;return x.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.packageName,a=i.appName,c=i.locale,d=i.config,l=C.A.getBackendUrl(),e.next=1,k.A.loadScriptAsync("".concat(l).concat(k.A.getEntryFilePath(r,a)));case 1:return g=N(N(N({backendUrl:l,locale:c},o?{customTheme:o}:{}),d),{},{appContext:{embedType:"widget",widgetConfigKey:t,widgetShowcase:!0}},s),u="".concat(l,"/js/tocco-").concat(r,"/dist/"),p=window.reactRegistry.render(a,n,O,g,{},u),e.abrupt("return",{methods:p,input:g});case 2:case"end":return e.stop()}}),e)})));return function(n,t,i,o,s){return e.apply(this,arguments)}}(),L=t(81845),R=t(57528),B=t(51510),_=t(26513),U=t(57541),V=t(37474),Y=B.Ay.div.withConfig({displayName:"Container"})(P||(P=(0,R.A)(["\n max-width: 1600px;\n margin: 0 auto;\n"]))),J=B.Ay.div.withConfig({displayName:"StyledToolboxContainer"})(T||(T=(0,R.A)(["\n display: flex;\n margin-bottom: 20px;\n"]))),K=B.Ay.div.withConfig({displayName:"StyledFullscreenWidgetContainer"})(E||(E=(0,R.A)(["\n background-color: ",";\n z-index: 1;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n padding: 0 "," ",";\n position: absolute;\n box-sizing: border-box;\n overflow: auto;\n"])),_.t7.color("paper"),U.A.space(.5),U.A.space(.5)),G=B.Ay.div.withConfig({displayName:"StyledFullscreenToolboxContainer"})(M||(M=(0,R.A)(["\n padding: "," 0 ",";\n display: flex;\n"])),U.A.space(.5),U.A.space(1)),Q=B.Ay.div.withConfig({displayName:"StyledWidgetContainer"})(z||(z=(0,R.A)(["\n & * {\n ","\n }\n"])),(0,V.A)({color:"inherit"})),X=B.Ay.span.withConfig({displayName:"StyledEmptyInput"})(D||(D=(0,R.A)(["\n ","\n min-height: 2.6rem;\n display: flex;\n align-items: center;\n"])),(0,V.A)()),Z=B.Ay.div.withConfig({displayName:"StyledSection"})(F||(F=(0,R.A)(["\n margin: 20px 0;\n border-top: 1px solid ",";\n padding: 40px 0 20px;\n"])),_.t7.color("borderLight")),$=B.Ay.span.withConfig({displayName:"StyledVisibilityStatus"})(I||(I=(0,R.A)(["\n ","\n border: 1px solid #e6e6e6;\n background-color: #e6e6e6;\n border-radius: ",";\n padding: "," ",";\n margin-right: ",";\n"])),(0,V.A)(),_.t7.radii("button"),U.A.space(-2.1),U.A.space(0),U.A.space(-1.38)),ee=t(74848);const ne=function(e){var n=e.children,t=e.onExit,i=e.fullscreen,o=void 0!==i&&i,s=e.toolbox,r=(0,a.tz)();return o?(0,L.createPortal)((0,ee.jsxs)(K,{children:[(0,ee.jsxs)(G,{children:[(0,ee.jsx)(u.A,{type:"button",onClick:function(){return t()},look:"raised",icon:"arrows-minimize",label:r.formatMessage({id:"client.widget-showcase.exitFullscreen"})}),s]}),n]}),document.body):(0,ee.jsx)(ee.Fragment,{children:n})};var te;const ie=function(e){var n,t=e.label,i=e.onClick,o=(0,a.tz)(),s=(0,r.useState)("[]"),c=(0,m.A)(s,2),d=c[0],g=c[1];return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(l.Ay.H3,{children:t}),(0,ee.jsx)(b.A,{label:(n="client.widget-showcase.methodArguments",o.formatMessage({id:n})),children:(0,ee.jsx)(j.A,{type:"code",value:d,events:{onChange:g},options:{autoFocusOnMount:!1,mode:"json"}})}),(0,ee.jsx)(u.A,{type:"button",onClick:function(){return i.apply(void 0,(0,y.A)(JSON.parse(d)))},look:"raised",children:te||(te=(0,ee.jsx)(a.sA,{id:"client.widget-showcase.execute"}))})]})},oe={name:"wk-widget",colors:{primary:"#0057ad",backgroundPanelHeaderFooter:"#ededed"},radii:{button:"16px",buttonLarge:"24px",form:"8px",dashboard:0,modal:"8px",menu:"16px"}};var se,re,ae,ce,de,le,ge,ue;const pe=function(e){var n=e.selectedWidget,t=e.setSelectedWidget,i=e.selectedWidgetConfig,o=e.setSelectedWidgetConfig,s=e.loadWidgets,c=e.widgets,d=e.widgetConfigs,g=e.widgetConfig,p=e.editWidgetConfig,f=e.theme,C=e.editTheme,k=e.setTheme,W=e.resetTheme,N=e.viewWidgetInput,P=e.isWidgetManager,T=e.mode,E=(0,a.tz)(),M=function(e){return E.formatMessage({id:e})};(0,r.useEffect)((function(){s()}),[s]);var z=c.map((function(e){return{key:e.key,display:e.label}})),D=d.map((function(e){return{key:e.key,uniqueId:e.uniqueId,display:"".concat(e.uniqueId," - ").concat(e.label)}})),F=(0,r.useState)([]),I=(0,m.A)(F,2),L=I[0],R=I[1],B=(0,r.useState)([]),_=(0,m.A)(B,2),U=_[0],V=_[1],K=(0,r.useState)(null),G=(0,m.A)(K,2),te=G[0],pe=G[1],he=(0,r.useState)(null),fe=(0,m.A)(he,2),we=fe[0],ye=fe[1],me=(0,r.useState)(!1),xe=(0,m.A)(me,2),Ae=xe[0],be=xe[1],je=function(e,n){return V((function(t){return[].concat((0,y.A)(t),[{key:(0,v.A)(),name:e,args:n}])}))},ve=null==i?void 0:i.uniqueId,Ce=(0,r.useCallback)((0,w.A)(x.mark((function e(){var n,t,i,o,s,r;return x.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=H(),t=f,i={onVisibilityStatusChange:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var i=n[0].status;R(i),je("onVisibilityStatusChange",n)}},e.next=1,q(n,ve,g,t,i);case 1:o=e.sent,s=o.input,r=o.methods,pe(r),ye(s);case 2:case"end":return e.stop()}}),e)}))),[f,ve,g]),ke=(0,r.useCallback)((0,w.A)(x.mark((function e(){return x.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return history.pushState("",document.title,window.location.pathname+window.location.search),R([]),V([]),pe(null),ye(null),e.next=1,new Promise((function(e){var n=H();n&&0!==n.children.length?setTimeout((function(){window.reactRegistry.unmount(O),e()}),0):e()}));case 1:case"end":return e.stop()}}),e)}))),[]),Se=(0,r.useCallback)((0,w.A)(x.mark((function e(){return x.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ke();case 1:Ce();case 2:case"end":return e.stop()}}),e)}))),[Ce,ke]),Oe=f.name===oe.name;(0,r.useEffect)((function(){g?Se():ke()}),[g,Ae,ke,Se]);var We=(0,ee.jsx)(ee.Fragment,{children:L&&L.length>0&&(0,ee.jsxs)($,{children:[se||(se=(0,ee.jsx)(a.sA,{id:"client.widget-showcase.visibilityStatus"})),": ",L.join(",")]})});return(0,ee.jsxs)(Y,{children:[(0,ee.jsx)(b.A,{label:M("client.widget-showcase.widget"),children:(0,ee.jsx)(j.A,{type:"single-select",value:n,options:{options:z},events:{onChange:t}})}),(0,ee.jsx)(b.A,{label:M("client.widget-showcase.widgetConfiguration"),children:n?(0,ee.jsx)(j.A,{type:"single-select",value:i,options:{options:D},events:{onChange:o}}):re||(re=(0,ee.jsx)(X,{children:(0,ee.jsx)(a.sA,{id:"client.widget-showcase.selectWidget"})}))}),i&&(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)(Z,{children:[ae||(ae=(0,ee.jsx)(l.Ay.H2,{children:(0,ee.jsx)(a.sA,{id:"client.widget-showcase.settings"})})),P&&(0,ee.jsx)(u.A,{type:"button",onClick:p,ink:"primary",look:"raised",icon:"gear",label:M("client.widget-showcase.widgetConfiguration.edit")}),Oe&&(0,ee.jsx)(u.A,{type:"button",onClick:function(){return W()},look:"raised",label:M("client.widget-showcase.theme.resetWpTheme")}),!Oe&&(0,ee.jsx)(u.A,{type:"button",onClick:function(){k(A({},f,oe))},look:"raised",label:M("client.widget-showcase.theme.applyWpTheme")}),(0,h.f6)(T)&&(0,ee.jsx)(u.A,{type:"button",onClick:C,look:"raised",icon:"pen",label:M("client.widget-showcase.theme.edit")}),(0,h.f6)(T)&&(0,ee.jsx)(u.A,{type:"button",icon:"info",look:"raised",onClick:function(){return N(we)},label:M("client.widget-showcase.widgetInput.view")})]}),(0,ee.jsxs)(Z,{children:[(0,ee.jsxs)(l.Ay.H2,{children:[ce||(ce=(0,ee.jsx)(a.sA,{id:"client.widget-showcase.widget"})),": ",i.display]}),(0,ee.jsxs)(J,{children:[(0,ee.jsx)(u.A,{type:"button",onClick:function(){return be(!0)},look:"raised",icon:"arrows-maximize",label:M("client.widget-showcase.fullscreen")}),We]}),(0,ee.jsx)(ne,{fullscreen:Ae,onExit:function(){return be(!1)},toolbox:We,children:de||(de=(0,ee.jsx)(Q,{id:S}))})]}),(0,h.f6)(T)&&(0,ee.jsxs)(Z,{children:[le||(le=(0,ee.jsx)(l.Ay.H2,{children:(0,ee.jsx)(a.sA,{id:"client.widget-showcase.events"})})),U.length>0?(0,ee.jsx)("pre",{children:U.map((function(e){var n=e.key,t=e.name,i=e.args;return(0,ee.jsxs)(r.Fragment,{children:[t," - ",JSON.stringify(i),ge||(ge=(0,ee.jsx)("br",{}))]},n)}))}):"-"]}),(0,h.f6)(T)&&(0,ee.jsxs)(Z,{children:[ue||(ue=(0,ee.jsx)(l.Ay.H2,{children:(0,ee.jsx)(a.sA,{id:"client.widget-showcase.methods"})})),te?(0,ee.jsx)(ee.Fragment,{children:Object.keys(te).map((function(e){return(0,ee.jsx)(ie,{label:e,onClick:te[e]},e)}))}):"-"]})]})]})};var he={setSelectedWidget:o.qN,setSelectedWidgetConfig:o.qK,loadWidgets:o.ow,setWidgetConfig:o.pE,editWidgetConfig:f.dT,editTheme:f.at,setTheme:o.Yl,resetTheme:o.hm,viewWidgetInput:f.Yz};const fe=(0,i.Ng)((function(e){return{selectedWidget:e.showcase.selectedWidget,selectedWidgetConfig:e.showcase.selectedWidgetConfig,widgets:e.showcase.widgets,widgetConfigs:e.showcase.widgetConfigs,widgetConfig:e.showcase.widgetConfig,theme:e.showcase.theme,isWidgetManager:e.showcase.access.isWidgetManager,mode:e.showcase.mode}}),he)(pe);var we,ye,me,xe,Ae,be,je,ve,Ce,ke,Se,Oe,We,Ne,Pe,Te,Ee=(0,B.DU)(we||(we=(0,R.A)(["\n html,\n body {\n ","\n font-size: 14px !important;\n }\n"])),(0,V.A)()),Me=t(49337),ze=B.Ay.div.withConfig({displayName:"StyledWidgetShowcaseWrapper"})(ye||(ye=(0,R.A)(["\n background-color: ",";\n display: flex;\n flex-direction: column;\n height: 100%;\n ","\n"])),_.t7.color("paper"),(0,V.A)()),De=B.Ay.img.withConfig({displayName:"StyledLogo"})(me||(me=(0,R.A)(["\n width: 40px;\n height: auto;\n"]))),Fe=B.Ay.div.withConfig({displayName:"StyledBrand"})(xe||(xe=(0,R.A)(["\n display: flex;\n gap: ",";\n align-items: center;\n\n "," {\n margin-top: 0;\n ","\n }\n"])),U.A.space(0),Me.rd,(0,V.A)({fontSize:U.A.font(9),fontWeight:_.t7.fontWeight("bold")})),Ie=B.Ay.div.withConfig({displayName:"StyledModeWrapper"})(Ae||(Ae=(0,R.A)(["\n display: flex;\n justify-content: flex-end;\n max-width: 1600px;\n margin: 0 auto ",";\n"])),U.A.space(1)),He=B.Ay.span.withConfig({displayName:"StyledBoldText"})(be||(be=(0,R.A)(["\n font-weight: 500;\n"]))),qe=B.Ay.span.withConfig({displayName:"StyledLightText"})(je||(je=(0,R.A)(["\n ","\n"])),(0,V.A)({color:_.t7.color("textLight"),fontSize:U.A.font(9)})),Le=B.Ay.header.withConfig({displayName:"StyledHeader"})(ve||(ve=(0,R.A)(["\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: ",";\n box-shadow: 0 0 10px rgb(0 0 0 / 30%);\n border-bottom: 1px solid ",";\n"])),_.t7.color("paper"),_.t7.color("borderLight")),Re=B.Ay.nav.withConfig({displayName:"StyledNavigationWrapper"})(Ce||(Ce=(0,R.A)(["\n min-height: 50px;\n max-width: 1600px;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: "," "," "," 0;\n box-sizing: border-box;\n margin: 0 auto;\n"])),U.A.space(-.5),U.A.space(.5),U.A.space(-.5)),Be=(B.Ay.ul.withConfig({displayName:"StyledNavigationList"})(ke||(ke=(0,R.A)(["\n list-style: none;\n display: flex;\n"]))),B.Ay.main.withConfig({displayName:"StyledMain"})(Se||(Se=(0,R.A)(["\n flex: 1;\n padding: "," ",";\n overflow: auto;\n"])),U.A.space(1),U.A.space(.5)));function _e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Ue(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_e(Object(t),!0).forEach((function(n){(0,s.A)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const Ve=function(e){var n=e.init,t=e.isDevelopmentRunEnv,i=e.isWidgetManager,o=e.mode,s=e.setMode,f=(0,a.tz)();(0,r.useEffect)((function(){n()}),[n]);var w=(0,h.pn)(o)?{ink:"secondary"}:{},y=(0,h.f6)(o)?{ink:"secondary"}:{};return(0,ee.jsxs)(d.A,{required:[void 0!==i&&"undefined"!==t],children:[Oe||(Oe=(0,ee.jsx)(Ee,{})),i||t?(0,ee.jsxs)(ze,{children:[We||(We=(0,ee.jsx)(Le,{children:(0,ee.jsx)(Re,{children:(0,ee.jsxs)(Fe,{children:[(0,ee.jsx)(De,{src:p,alt:"tocco-logo"}),(0,ee.jsxs)(l.Ay.H1,{children:[(0,ee.jsx)(He,{children:"Tocco"})," ",(0,ee.jsx)(qe,{children:"Widget Showcase"})]})]})})})),Ne||(Ne=(0,ee.jsx)(c.A.Notifications,{})),(0,ee.jsxs)(Be,{children:[(0,ee.jsx)(Ie,{children:(0,ee.jsxs)(g.A,{children:[(0,ee.jsx)(u.A,Ue({look:"raised",onClick:function(){return s(h.nI.simple)},label:f.formatMessage({id:"client.widget-showcase.mode.simple"})},w)),(0,ee.jsx)(u.A,Ue({look:"raised",onClick:function(){return s(h.nI.advanced)},label:f.formatMessage({id:"client.widget-showcase.mode.advanced"})},y))]})}),Pe||(Pe=(0,ee.jsx)(fe,{}))]})]}):Te||(Te=(0,ee.jsx)(l.Ay.P,{children:(0,ee.jsx)(a.sA,{id:"client.widget-showcase.noAccess"})}))]})};var Ye={init:o.Ts,setMode:o.iY};const Je=(0,i.Ng)((function(e){return{isDevelopmentRunEnv:e.showcase.access.isDevelopmentRunEnv,isWidgetManager:e.showcase.access.isWidgetManager,mode:e.showcase.mode}}),Ye)(Ve)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_widget_showcase=this.webpackChunktocco_widget_showcase||[]).push([[75085],{75085(e,t,r){r.r(t),r.d(t,{default:()=>b});var n,c=r(64467),o=r(57528),i=r(51510),s=r(23103),p=r(26513),a=(0,i.Ay)(s.A).withConfig({displayName:"StyledIcon"})(n||(n=(0,o.A)(["\n color: ",";\n"])),p.t7.color("loadingSpinner")),u=r(74848);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,c.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const b=function(e){var t=e.size,r=e.style,n=e.icon;return(0,u.jsx)(a,O(O({},r),{},{style:{fontSize:t},spin:!0,icon:n||"circle-notch"}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_widget_showcase=this.webpackChunktocco_widget_showcase||[]).push([[83722],{70424(e,t,n){n.r(t),n.d(t,{default:()=>xe});var r=n(5544),o=n(57528),a=n(34987),c=(n(9428),n(48063)),i=n(7896),u=n(38475),s=n(83524),l=n(82259),f=n(72495),p=n(38133),d=n(6349),h=n(58156),m=n(69843),g=n(23805),k=n(85015),x=n(4883),v=n(51510),w=(n(41769),n(22113),n(4850),n(38606),n(13198),n(84082),n(69377),n(51266),n(8804),n(50086),n(88926)),_=function(e){return w.A.executeRequest("rest/".concat(e))},y=function(e){return 200===e.status?e.json():null},b=n(92901),A=n(23029),M=n(56822),R=n(53954),$=n(85501),j=(n(75910),n(56449)),q=n(6924),B=["==","!=","<=",">=","<",">","~="],I=["true","false","null"],O=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],z=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],C=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function T(e,t,n){return t=(0,R.A)(t),(0,M.A)(e,N()?Reflect.construct(t,n||[],(0,R.A)(e).constructor):t.apply(e,n))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}const E=function(e){return function(t){function n(){var t;(0,A.A)(this,n),t=T(this,n);var r=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(C.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],o={start:e?[{token:"keyword.where",regex:/\s*/,next:"rootwhere",caseInsensitive:!0}]:[{token:"keyword.find",regex:/find($|\s+)/,push:"model",caseInsensitive:!0},{token:"keyword.where",regex:/where($|\s+)/,next:"rootwhere",caseInsensitive:!0}],model:[{token:"support.class.model",regex:/[A-Z][a-z_0-9]*\s*/,next:"pop"}],rootwhere:[{token:"keyword.order_by",regex:/order by($|\s+)/,next:"order",caseInsensitive:!0}].concat(r),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(B.join("|"),")\\s*"),next:"value"}],value:[{token:"string",regex:/".*?"\s*/,next:"pop"},{token:"constant.numeric",regex:/\d+(.\d+)?\s*/,next:"pop"},{token:"constant.language.tocco_placeholder",regex:"\\:(".concat(z.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(I.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat(O.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(r,[{token:"paren.rparen",regex:/\)\s*/,next:"pop"}]),count:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"countwhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}],countwhere:[].concat(r,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return t.$rules=q(t.$rules,o,(function(e,t){return j(e)?e.concat(t):void 0})),t.normalizeRules(),t}return(0,$.A)(n,t),(0,b.A)(n)}(a.require("ace/mode/text_highlight_rules").TextHighlightRules)};function S(e,t,n){return t=(0,R.A)(t),(0,M.A)(e,H()?Reflect.construct(t,n||[],(0,R.A)(e).constructor):t.apply(e,n))}function H(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H=function(){return!!e})()}var F=function(e){function t(){var e;(0,A.A)(this,t);return(e=S(this,t)).$rules={start:[{token:"constant.character.entity",regex:/&[^;]+;/},{token:"support.function",regex:"\\?(\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|upper_case|word_list|xhtml|xmlc|round|floor|ceilingiso_[a-z_]+first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunkkeys|valueschildren|parent|root|ancestors|node_name|node_type|node_namespacebyte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|eval|has_content|interpret|is_[a-z_]+|namespacenew)"},{token:"support.function.deprecated",regex:"\\?(default|exists|if_exists|web_safe)"},{token:"language.variable",regex:"\\.(?:data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|now|output_encoding|template_name|url_escaping_charset|vars|version)"},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"keyword.operator",regex:"\\b(?:gt|gte|lt|lte|as|in|using)\\b"},{token:"entity.other.attribute-name",regex:"encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|attributes"},{token:"string",regex:/['"]/,next:"qstring"},{token:function(e){return e.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")?"constant.numeric":"variable"},regex:/[\w.+-]+/},{token:"keyword.operator",regex:"!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qstring:[{token:"constant.character.escape",regex:'\\\\[nrtvef\\\\"$]'},{token:"string",regex:/['"]/,next:"start"},{defaultToken:"string"}]},e}return(0,$.A)(t,e),(0,b.A)(t)}(a.require("ace/mode/text_highlight_rules").TextHighlightRules),G=function(e){function t(){var e;(0,A.A)(this,t),e=S(this,t);var n=["query","queryCount"],r=[{token:"keyword.function",regex:"\\[@(".concat(n.join("|"),").*?]"),push:"tql-start"},{token:"comment",regex:"\\[#--",next:"ftl-dcomment"},{token:"string.interpolated",regex:"\\${",push:"ftl-start"},{token:"keyword.function",regex:"\\[/?#(assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|setting|stop|switch|t|visit)",push:"ftl-start"},{token:"keyword.other",regex:"\\[/?@[a-zA-Z\\.]+",push:"ftl-start"}];for(var o in e.$rules)e.$rules[o].unshift.apply(e.$rules[o],r);e.embedRules(F,"ftl-",[{token:"keyword",regex:"/?\\]",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),e.addRules({"ftl-dcomment":[{token:"comment",regex:"--\\]",next:"pop"},{defaultToken:"comment"}]});var a=[{token:"keyword.function",regex:"\\[/@(".concat(n.join("|"),")]"),next:"pop"}];e.embedRules(E(),"tql-",a,["start"]);var c={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(n.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(n.join("|"),")]"),next:"pop"}]};return e.$rules=q(e.$rules,c,(function(e,t){return j(e)?e.concat(t):void 0})),e.normalizeRules(),e}return(0,$.A)(t,e),(0,b.A)(t)}(a.require("ace/mode/html_highlight_rules").HtmlHighlightRules),V=n(10076),U=n(60436);function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Z=a.require("ace/token_iterator").TokenIterator,D=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},J=function(e,t){return D(e.getCurrentToken())===t},K=function(e){if(J(e,"model")&&e.stepBackward(),(J(e,"field")||J(e,"relation"))&&e.stepBackward(),!J(e,"chaining"))return null;if(e.stepBackward(),J(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},L=function(e,t){for(;!J(e,t);)if(!e.stepBackward())return!1;return!0},Q=function(e,t){return J(e,"rparen")?1:t>0&&J(e,"lparen")?(e.stepBackward(),-1):0},W=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&J(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat((0,U.A)(Y(e))):[]}if(J(e,"order_by")){if(L(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=Q(e,t),!e.stepBackward())return null}return null},X=function(e,t){for(var n=[],r=t(e);r;)Array.isArray(r)?r.forEach((function(e){return n.unshift(e)})):n.unshift(r),r=t(e);return n},Y=function(e){return X(e,K)},ee=function(e){return X(e,W)},te=1e3,ne=function(e,t,n){var r=function(e,t){if(t){var n=ee(e());return{baseModel:t,modelScope:P((0,V.A)(n)).slice(0)}}var r=ee(e()),o=(0,V.A)(r);return{baseModel:o[0],modelScope:P(o).slice(1)}}(e,n),o=r.baseModel,a=r.modelScope;if(o){var c=Y(e()),i=[].concat((0,U.A)(a),(0,U.A)(c)).map((function(e){return"rel".concat(e)}));(function(e){var t=(0,V.A)(e),n=t[0],r=P(t).slice(1);return _(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then(y).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat((0,U.A)(t.map((function(e){return{label:(t=e,t.label?"".concat(t.fieldName," (").concat(t.label,")"):t.fieldName),value:e.fieldName,meta:e.type};var t}))),(0,U.A)(n.map((function(e){return{label:(t=e,t.label?"".concat(t.relationName," (").concat(t.label,")"):t.relationName),value:e.relationName,meta:e.targetEntity};var t}))))}))})([o].concat((0,U.A)(i))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:te}}));t(null,n)})).catch((function(e){return t(e)}))}},re=function(e,t){return t?"".concat(e," (").concat(t,")"):e},oe=function(e){return _("entities").then(y).then((function(e){return e?e.entities:{}})).then((function(e){return e?Object.values(e):[]})).then((function(e){return e.map((function(e){return e.metaData}))})).then((function(t){var n=t.map((function(e){var t=e.modelName,n=e.label;return{caption:re(t,n),value:t,score:te}}));e(null,n)})).catch((function(t){return e(t)}))},ae=function(){return C.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ce=function(e){return{getCompletions:function(t,n,r,o,a){var c=function(){return new Z(n,r.row,r.column)},i=c(),u=i.getCurrentToken(),s=i.stepBackward()?i.getCurrentToken():null;switch(D(u)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ne(c,a,e);break;case"where":case"conjunction":ne(c,a,e),a(null,ae());break;case"nice_function":a(null,ae());break;case"find":oe(a);break;case"type":case"tocco_placeholder":case"comparison":a(null,O.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),a(null,z.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ne(c,a,e),s&&"relation"!==D(s)&&oe(a);break;case null:e&&ne(c,a,e),a(null,ae())}}}};function ie(e,t,n){return t=(0,R.A)(t),(0,M.A)(e,ue()?Reflect.construct(t,n||[],(0,R.A)(e).constructor):t.apply(e,n))}function ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ue=function(){return!!e})()}var se=function(e){function t(){var e;return(0,A.A)(this,t),(e=ie(this,t)).HighlightRules=G,e.completer=ce(),e}return(0,$.A)(t,e),(0,b.A)(t)}(a.require("ace/mode/ftl").Mode);function le(e,t,n){return t=(0,R.A)(t),(0,M.A)(e,fe()?Reflect.construct(t,n||[],(0,R.A)(e).constructor):t.apply(e,n))}function fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fe=function(){return!!e})()}var pe,de=function(e){function t(e){var n,r=e.implicitModelName;return(0,A.A)(this,t),(n=le(this,t)).HighlightRules=E(r),n.completer=ce(r),n.snippedIdField=null,n}return(0,$.A)(t,e),(0,b.A)(t)}(a.require("ace/mode/text").Mode),he=n(74848),me=v.Ay.div.withConfig({displayName:"StyledEditor"})(pe||(pe=(0,o.A)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ge={groovy:function(){return new i.Mode},html:function(){return new u.Mode},xml:function(){return new d.Mode},properties:function(){return new f.Mode},json:function(){return new s.Mode},htmlmixed:function(){return new se},freemarkermixed:function(){return new se},ftl:function(){return new se},tql:function(e){return new de(e)},less:function(){return new l.Mode},drools:function(){return new c.Mode},text:function(){return new p.Mode}},ke=function(e,t){var n=t.mode,o=t.theme,a=t.showGutter,c=t.editorOptions,i=void 0===c?{}:c;(function(e){return k(e)?Promise.resolve(e):g(e)?_("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(y).then((function(t){return h(t,["paths",e.field,"value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return h(ge,e,e)(t)}(n,{implicitModelName:e})})).then((function(t){return e.getSession().setMode(t)})),e.setTheme("ace/theme/".concat(o)),Object.entries(i).forEach((function(t){var n=(0,r.A)(t,2),o=n[0],a=n[1];e.setOption(o,a)})),e.renderer.setShowGutter(a),e.resize()};const xe=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,c=e.onChange,i=e.showGutter,u=void 0===i||i,s=e.editorOptions,l=void 0===s?{}:s,f=e.implicitModel,p=e.autoFocusOnMount,d=void 0!==p&&p,h=e.id,g=(0,x.useRef)(null),k=(0,x.useRef)(null),v=(0,x.useMemo)((function(){return{mode:t,theme:r,showGutter:u,editorOptions:l,implicitModel:f,autoFocusOnMount:d}}),[t,r,u,l,f,d]);return(0,x.useEffect)((function(){var e=a.edit(g.current);return e.getSession().setValue(o||""),e.on("change",(function(){return c(e.getValue())})),ke(e,v),k.current=e,v.autoFocusOnMount&&k.current.focus(),function(){return e.destroy()}}),[]),(0,x.useEffect)((function(){k.current&&ke(k.current,v)}),[v]),(0,x.useEffect)((function(){k.current&&!m(o)&&o!==k.current.getValue()&&k.current.getSession().setValue(o)}),[o]),(0,he.jsx)(me,{id:h,ref:g})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_widget_showcase=this.webpackChunktocco_widget_showcase||[]).push([[61556],{86127(e,t,n){n.r(t);var r=n(87046),i=n(76325),o=n(84294),a=n(30274),s=n(50069),l=n(241),c=n(4894),d=n(74848);const u=(0,c.S)((function(e){var t=e.path,n=e.context,c=e.onSuccess,u=e.locale,y=e.emitAction,p=(0,r.tz)(),f=(0,l.A)(t),A=f?[{id:"rel".concat(f.model),value:f.key}]:[],m=(0,s.A)(n,"Domain");return(0,d.jsx)(i.A,{entityName:"Domain",formName:m,mode:"create",defaultValues:A,locale:u,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];c({title:p.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||y(e)},listApp:o.Ay,docsApp:a.Ay,labelPosition:"inside"})}));n.d(t,["default",0,u])},89127(e,t,n){n.r(t);var r=n(87046),i=n(76325),o=n(84294),a=n(30274),s=n(50069),l=n(241),c=n(4894),d=n(74848);const u=(0,c.S)((function(e){var t=e.context,n=e.path,c=e.onSuccess,u=e.locale,y=e.emitAction,p=(0,r.tz)(),f=(0,l.A)(n),A=f?[{id:"rel".concat(f.model),value:f.key}]:[],m=(0,s.A)(t,"Folder");return(0,d.jsx)(i.A,{entityName:"Folder",formName:m,mode:"create",defaultValues:A,locale:u,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];c({title:p.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||y(e)},listApp:o.Ay,docsApp:a.Ay,labelPosition:"inside"})}));n.d(t,["default",0,u])},78570(e,t,n){n.r(t),n.d(t,{default:()=>xt});var r,i=n(64467),o=n(5556),a=n(93467),s=n(67452),l=n(7297),c=n(36372),d=n(90785),u=n(16700),y=n(71468),p="root/LOAD_DIALOG_INFO",f="delete/SET_DELETE_DIALOG_INFO",A="delete/DO_DELETE",m="delete/SET_DELETING_IN_PROGRESS",v="delete/ON_CANCEL",g="delete/SET_ENTITIES_TO_DELETE",x="delete/SOCKET_MESSAGE_RECEIVED",h="delete/SET_TEMPORARY_FILTERS",b=function(e){return{type:f,payload:{dialogInfo:e}}},E=function(){return{type:A}},j=function(e){return{type:g,payload:{entitiesToDelete:e}}},k=function(e){return{type:x,payload:{data:e}}},S=function(e){return{type:h,payload:{temporaryFilters:e}}},O=n(4883),N=n(87046),T=n(66387),D=n(10511),w=n(52662),L=n(60436),I=n(5544),P=n(57528),_=n(51510),F=n(87756),C=n(74848);const R=function(e){var t,n=e.deleteEntityProp,i=e.children,o=e.maxCountLink,a=e.hasTempFilter;if((a||n.keys.length<o)&&(!n.keysOtherBu||0===n.keysOtherBu.length))return i;var s=(0,C.jsxs)(C.Fragment,{children:[!a&&n.keys.length>o&&(r||(r=(0,C.jsx)(w.Ay.P,{children:(0,C.jsx)(N.sA,{id:"client.delete.tooManyRecords"})}))),(null===(t=n.keysOtherBu)||void 0===t?void 0:t.length)>0&&(0,C.jsx)(w.Ay.P,{children:(0,C.jsx)(N.sA,{id:"client.delete.recordInOtherBU",values:{count:n.keysOtherBu.length}})})]});return(0,C.jsx)(F.A,{content:s,placement:"top",children:i})};var B,M,U=_.Ay.span.withConfig({displayName:"NonBreakingText"})(B||(B=(0,P.A)(["\n white-space: nowrap;\n"])));const J=function(e){var t=e.rootEntities,n=e.relatedEntities,r=e.maxCountLink,i=e.rootTemporaryFilters,o=void 0===i?{}:i,a=e.relatedTemporaryFilters,s=void 0===a?{}:a,l=e.navigationStrategy;return(0,C.jsxs)(w.Ay.Span,{children:[(0,C.jsx)(w.Ay.B,{children:Object.entries(t).map((function(e){var t=(0,I.A)(e,2),n=t[0],i=t[1],a=!!o[n];return(0,C.jsxs)("span",{children:[i.entityLabel," (",(0,C.jsx)(R,{deleteEntityProp:i,maxCountLink:r,hasTempFilter:a,children:i.keys.length>0&&l.ListLink?(0,C.jsx)(l.ListLink,{entityName:n,tempFilter:a?o[n]:void 0,entityKeys:a?void 0:i.keys.slice(0,r),children:i.keys.length}):(0,C.jsx)(w.Ay.Span,{children:i.keys.length})}),")"]},"root-entity-".concat(n))})).reduce((function(e,t){return[].concat((0,L.A)(e),[t,", "])}),[]).slice(0,-1)}),Object.keys(n).length>0&&(0,C.jsxs)(C.Fragment,{children:[M||(M=(0,C.jsx)("span",{children:" / "})),Object.keys(n).map((function(e){var t=n[e],i=[].concat((0,L.A)(t.keys),(0,L.A)(t.keysOtherBu)).length,o=!!s[e],a=t.keys.length>0&&l.ListLink?(0,C.jsx)(l.ListLink,{entityName:e,tempFilter:o?s[e]:void 0,entityKeys:o?void 0:t.keys.slice(0,r),children:i}):(0,C.jsx)(w.Ay.Span,{children:i}),c=(0,C.jsx)(R,{deleteEntityProp:t,maxCountLink:r,hasTempFilter:o,children:a});return(0,C.jsx)(O.Fragment,{children:(0,C.jsxs)(U,{children:[t.entityLabel," (",c,")"]})},"entity-info-"+e)})).reduce((function(e,t){return[].concat((0,L.A)(e),[t,", "])}),[]).slice(0,-1)]})]})};var G,W,q,z=n(57541),K=_.Ay.div.withConfig({displayName:"StyledIconWrapper"})(G||(G=(0,P.A)(["\n margin-bottom: ",";\n"])),z.A.space(.2));const V=function(e){var t=e.dialogInfo,n=e.navigationStrategy;return(0,C.jsxs)(C.Fragment,{children:[W||(W=(0,C.jsx)(K,{children:(0,C.jsx)(D.A,{size:"30px"})})),q||(q=(0,C.jsx)(w.Ay.P,{children:(0,C.jsx)(N.sA,{id:"client.delete.deleteInProgress"})})),(0,C.jsx)(J,{rootEntities:t.rootEntitiesDeletable,relatedEntities:t.relatedDeletable,maxCountLink:100,navigationStrategy:n},"infopart-deletable")]})};var H={doDelete:E};const Q=(0,y.Ng)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),H)(V);var Y,X=n(64889),Z=n(22866),$=n(77231),ee=n(26513),te=[Z.A.condition.BASE,Z.A.condition.INFO,Z.A.condition.DANGER,Z.A.condition.SUCCESS,Z.A.condition.WARNING],ne=(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},Z.A.condition.BASE,ee.t7.color("signal.neutral")),Z.A.condition.DANGER,ee.t7.color("signal.dangerLight")),Z.A.condition.SUCCESS,ee.t7.color("signal.successLight")),Z.A.condition.WARNING,ee.t7.color("signal.warningLight")),Z.A.condition.INFO,ee.t7.color("signal.infoLight")),re=_.Ay.div.withConfig({displayName:"StyledSignalBox"})(Y||(Y=(0,P.A)(["\n && {\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n\n &:not(:last-child) {\n margin-bottom: ",";\n }\n\n * {\n color: #000; /* black in all themes */\n }\n\n "," {\n margin-right: ",";\n }\n }\n"])),(function(e){var t=e.condition;return ne[te.includes(t)?t:Z.A.condition.INFO]}),z.A.space(-1),z.A.space(-.3),ee.t7.radii("statusLabel"),z.A.space(-1),$.i,z.A.space(-1));re.propTypes={condition:Z.A.oneOfPropTypeAndCompletelyMapped(te,ne)};const ie=function(e){var t=e.condition,n=void 0===t?Z.A.condition.BASE:t,r=e.title,i=e.children,o=e.meta;return(0,C.jsxs)(re,{condition:n,children:[r&&(0,C.jsx)(w.Ay.H5,{children:r}),i,o&&(0,C.jsx)(w.Ay.Small,{children:o})]})};var oe,ae,se,le,ce,de,ue,ye,pe,fe=n(33150),Ae=n(76242),me=_.Ay.div.withConfig({displayName:"StyledSectionWrapper"})(oe||(oe=(0,P.A)(["\n padding-top: ",";\n"])),z.A.space(.6)),ve=_.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(ae||(ae=(0,P.A)(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),Ae.Ay);const ge=function(e){var t=e.dialogInfo,n=t.rootEntitiesDeletable,r=t.rootEntitiesNotDeletable,i=t.relatedDeletable,o=t.relatedNotDeletable,a=t.hasUnreadableEntities,s=t.limitExceeded,l=e.temporaryFilters,c=e.doDelete,d=e.onCancel,u=e.navigationStrategy;return(0,X.L)(d),s?se||(se=(0,C.jsx)(w.Ay.P,{children:(0,C.jsx)(N.sA,{id:"client.delete.limitExceededText"})})):(0,C.jsxs)(C.Fragment,{children:[Object.keys(n).length>0&&(0,C.jsxs)(me,{children:[le||(le=(0,C.jsx)(w.Ay.P,{children:(0,C.jsx)(N.sA,{id:"client.delete.confirmText"})})),(0,C.jsx)(J,{rootEntities:n,relatedEntities:i,maxCountLink:100,navigationStrategy:u,rootTemporaryFilters:null==l?void 0:l.deletableRoot,relatedTemporaryFilters:null==l?void 0:l.deletableRelated},"infopart-deletable")]}),Object.keys(r).length>0&&(0,C.jsxs)(me,{children:[ce||(ce=(0,C.jsx)(w.Ay.P,{children:(0,C.jsx)(N.sA,{id:"client.delete.textNotDeletable"})})),(0,C.jsx)(J,{rootEntities:r,relatedEntities:o,maxCountLink:100,navigationStrategy:u,rootTemporaryFilters:null==l?void 0:l.undeletableRoot,relatedTemporaryFilters:null==l?void 0:l.undeletableRelated},"infopart-notdeletable")]}),0===Object.keys(n).length&&0===Object.keys(r).length&&(de||(de=(0,C.jsx)(me,{children:(0,C.jsx)(w.Ay.P,{children:(0,C.jsx)(N.sA,{id:"client.delete.errorMessage"})})}))),a&&(ue||(ue=(0,C.jsx)(me,{children:(0,C.jsx)(ie,{condition:"warning",children:(0,C.jsx)(w.Ay.Span,{children:(0,C.jsx)(N.sA,{id:"client.delete.unreadableEntities"})})})}))),(0,C.jsx)(me,{children:(0,C.jsxs)(ve,{children:[(0,C.jsx)(fe.A,{onClick:c,disabled:Object.keys(n).every((function(e){return 0===n[e].keys.length})),"data-cy":"btn-delete-ok",children:ye||(ye=(0,C.jsx)(N.sA,{id:"client.delete.deleteButton"}))}),(0,C.jsx)(fe.A,{ink:"primary",look:"raised",onClick:d,"data-cy":"btn-delete-cancel",children:pe||(pe=(0,C.jsx)(N.sA,{id:"client.delete.cancelButton"}))})]})})]})};var xe={doDelete:E,onCancel:function(){return{type:v}}};const he=(0,y.Ng)((function(e,t){return{dialogInfo:e.del.dialogInfo,temporaryFilters:e.del.temporaryFilters,navigationStrategy:e.input.navigationStrategy}}),xe)(ge);var be,Ee;const je=function(e){var t=e.loadDialogInfo,n=e.dialogInfo,r=e.deletingInProgress;(0,O.useEffect)((function(){t()}),[t]);var i,o=(0,N.tz)();return r?be||(be=(0,C.jsx)(Q,{})):(0,C.jsx)(T.A,{required:[n],loadingText:(i="client.delete.loadingText",o.formatMessage({id:i})),children:n&&(Ee||(Ee=(0,C.jsx)(he,{})))})};var ke={loadDialogInfo:function(){return{type:p}}};const Se=(0,y.Ng)((function(e,t){return{dialogInfo:e.del.dialogInfo,deletingInProgress:e.del.deletingInProgress}}),ke)(je);var Oe=n(82481),Ne=(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},f,Oe.A.singleTransferReducer("dialogInfo")),g,Oe.A.singleTransferReducer("entitiesToDelete")),m,Oe.A.singleTransferReducer("deletingInProgress")),h,Oe.A.singleTransferReducer("temporaryFilters")),Te={dialogInfo:null,entitiesToDelete:null,deletingInProgress:!1,temporaryFilters:{}};var De=n(54756),we=n(69917),Le=n(58695),Ie=n(81475);const Pe=function(e){var t=e.errors.map((function(e){var t=e.entityValidatorErrors;return Object.keys(t).map((function(e){return(0,C.jsx)(Ie.A.List,{children:t[e].map((function(t,n){return(0,C.jsx)(Ie.A.Item,{label:t},"entity-".concat(e,"-").concat(n))}))},e)}))}));return(0,C.jsx)(C.Fragment,{children:t})};var _e=n(58156);function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Re="DELETABLE",Be=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.rootEntity,o=r.entityName,a=r.entityLabel,s=r.key;if(s.includes("/")){var l=s.split("/"),c=(0,I.A)(l,2),d=c[0],u=c[1];return Ce(Ce({},e),{},(0,i.A)({},d,{entityLabel:a,keys:[].concat((0,L.A)(_e(e,[d,"keys"],[])),(0,L.A)(n?[u]:[]))}))}return Ce(Ce({},e),{},(0,i.A)({},o,{entityLabel:a,keys:[].concat((0,L.A)(_e(e,[o,"keys"],[])),(0,L.A)(n?[s]:[]))}))},Me=function(e){return e.rootEntity.deleteStatus===Re&&!e.affectedEntities.find((function(e){return e.deleteStatus!==Re}))},Ue=function(e,t){var n=e.entitiesToDelete;return e.limitExceeded?{limitExceeded:!0}:n.reduce((function(e,n){var r=Me(n),o=r?"relatedDeletable":"relatedNotDeletable";return Ce(Ce(Ce({},e),{},{rootEntitiesDeletable:Be(e.rootEntitiesDeletable,n,r)},!r&&{rootEntitiesNotDeletable:Be(e.rootEntitiesNotDeletable,n)}),{},(0,i.A)({},o,function(e,t,n,r){return Ce({},t.affectedEntities.reduce((function(e,t){return Ce(Ce({},e),n||t.deleteStatus!==Re?(0,i.A)({},t.entityName,Ce(Ce({},_e(e,t.entityName,{keys:[],keysOtherBu:[],entityLabel:t.entityLabel})),null===t.businessUnitId||t.businessUnitId===r?{keys:Array.from(new Set([].concat((0,L.A)(_e(e,[t.entityName,"keys"],[])),[t.key])))}:{keysOtherBu:Array.from(new Set([].concat((0,L.A)(_e(e,[t.entityName,"keysOtherBu"],[])),[t.key])))})):{})}),Ce({},e)))}(e[o],n,r,t)))}),{rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!!n.find((function(e){return e.unreadableEntities}))})},Je=function(e){var t=e.entitiesToDelete;return{entityName:_e(t,"[0].rootEntity.entityName"),keys:t.reduce((function(e,t){return[].concat((0,L.A)(e),(0,L.A)(Me(t)?[t.rootEntity.key]:[]))}),[])}},Ge=o.shape({entityLabel:o.string.isRequired,keys:o.arrayOf(o.string).isRequired,keysOtherBu:o.arrayOf(o.string)}),We=(o.shape({rootEntitiesDeletable:o.objectOf(Ge),rootEntitiesNotDeletable:o.objectOf(Ge),relatedDeletable:o.objectOf(Ge),relatedNotDeletable:o.objectOf(Ge),hasUnreadableEntities:o.bool,limitExceeded:o.bool}),De.mark(et)),qe=De.mark(tt),ze=De.mark(nt),Ke=De.mark(rt),Ve=De.mark(it),He=De.mark(ot),Qe=De.mark(at),Ye=De.mark(lt),Xe=function(e){return e.input},Ze=function(e){return e.app.messages},$e=function(e){return e.del.entitiesToDelete};function et(){var e,t,n;return De.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,we.Lt)(Xe);case 1:return e=r.sent,t=e.selection,r.next=2,(0,we.T1)(d.A.getEntities,t,Le.A.fetchAllEntities);case 2:return n=r.sent,r.abrupt("return",{entityModel:n.entityName,keys:n.keys});case 3:case"end":return r.stop()}}),We)}function tt(){var e,t;return De.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,we.Lt)(Xe);case 1:return e=n.sent,t=e.customDeleteEndpoint,n.abrupt("return",t||"client/delete");case 2:case"end":return n.stop()}}),qe)}function nt(){var e,t,n,r,i,o,a;return De.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=1,(0,we.T1)(et);case 1:return e=s.sent,s.next=2,(0,we.T1)(tt);case 2:return t=s.sent,s.next=3,(0,we.T1)(Le.A.requestSaga,"".concat(t,"/dialog"),{method:"POST",body:e,acceptedStatusCodes:[403]});case 3:if(!(n=s.sent).ok){s.next=10;break}return s.next=4,(0,we.T1)(Le.A.fetchPrincipal);case 4:return r=s.sent,i=n.body.temporaryFilters,s.next=5,(0,we.yJ)(S(i));case 5:return s.next=6,(0,we.T1)(Ue,n.body,r.currentBusinessUnit.id);case 6:return o=s.sent,s.next=7,(0,we.yJ)(b(o));case 7:return s.next=8,(0,we.T1)(Je,n.body);case 8:return a=s.sent,s.next=9,(0,we.yJ)(j(a));case 9:s.next=11;break;case 10:return s.next=11,(0,we.yJ)(b({rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!1}));case 11:case"end":return s.stop()}}),ze)}function rt(){var e,t;return De.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,we.Lt)($e);case 1:return e=n.sent,n.next=2,(0,we.yJ)({type:m,payload:{deletingInProgress:!0}});case 2:return n.next=3,(0,we.T1)(tt);case 3:return t=n.sent,n.next=4,(0,we.yJ)(u.A.addSocketReceiver("deleteAction",k));case 4:return n.prev=4,n.next=5,(0,we.T1)(Le.A.requestSaga,t,{method:"POST",body:{entityModel:e.entityName,keys:e.keys}});case 5:n.next=7;break;case 6:return n.prev=6,n.catch(4),n.next=7,(0,we.yJ)(u.A.removeSocketReceiver("deleteAction"));case 7:case"end":return n.stop()}}),Ke,null,[[4,6]])}function it(){return De.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,we.yJ)(l.A.fireExternalEvent("onCancel"));case 1:case"end":return e.stop()}}),Ve)}function ot(e){var t,n;return De.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,we.yJ)(u.A.removeSocketReceiver("deleteAction"));case 1:return t=Object.keys(e.deletedEntities).reduce((function(t,n){return[].concat((0,L.A)(t),(0,L.A)(e.deletedEntities[n].map((function(e){return{entityName:n,key:e}}))))}),[]),n=[{type:"entity-delete-event",payload:{entities:t}}],r.next=2,(0,we.yJ)(l.A.fireExternalEvent("onSuccess",{title:null,remoteEvents:n}));case 2:case"end":return r.stop()}}),He)}function at(e){var t,n;return De.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,we.yJ)(u.A.removeSocketReceiver("deleteAction"));case 1:return r.next=2,(0,we.Lt)(Ze);case 2:if(t=r.sent,null==e||!e.information){r.next=4;break}return r.next=3,(0,we.yJ)(l.A.fireExternalEvent("onError",{message:e.information}));case 3:case 5:r.next=7;break;case 4:if(null==e||!e.validationErrors){r.next=6;break}return n=function(){return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{children:t["client.delete.validationErrorMessage"]}),(0,C.jsx)(Pe,{errors:e.validationErrors})]})},r.next=5,(0,we.yJ)(l.A.fireExternalEvent("onError",{message:n}));case 6:return r.next=7,(0,we.yJ)(l.A.fireExternalEvent("onError",{message:t["client.delete.errorMessage"]}));case 7:case"end":return r.stop()}}),Qe)}function st(e){var t=e.payload.data;return De.mark((function e(){var n;return De.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.type,e.next="DELETION_START"===n?1:"FINISHED"===n?3:"ERROR"===n?5:7;break;case 1:return e.next=2,(0,we.yJ)(l.A.fireExternalEvent("onClose"));case 2:case 4:case 6:return e.abrupt("continue",7);case 3:return e.next=4,(0,we.T1)(ot,t.result);case 5:return e.next=6,(0,we.T1)(at,t.error);case 7:case"end":return e.stop()}}),e)}))()}function lt(){return De.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,we.Q7)([(0,we.p8)(p,nt),(0,we.p8)(A,rt),(0,we.p8)(v,it),(0,we.p8)(x,st)]);case 1:case"end":return e.stop()}}),Ye)}const ct={del:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te,t=arguments.length>1?arguments[1]:void 0,n=Ne[t.type];return n?n(e,t):e}};var dt,ut=[lt];var yt="delete",pt=["onSuccess","onCancel","onError","onClose","emitAction"],ft=function(e,t,n,r){var i=dt||(dt=(0,C.jsx)(Se,{})),o=s.A.createStore(ct,ut,t,yt);a.A.addToStore(o,(function(e){return e.input.emitAction}));var d=!(null!=n&&n.emitAction);return c.A.addToStore(o,d),u.A.addToStore(o,!d),l.A.addToStore(o,(function(e){return s.A.getEvents(pt,e.input)})),s.A.createApp(yt,i,o,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",yt]})};s.A.registerAppInRegistry(yt,ft);var At=function(e){return s.A.useApp({initApp:ft,props:e,packageName:yt,externalEvents:pt}).component};At.propTypes={selection:d.A.propType.isRequired,customDeleteEndpoint:o.string};const mt=At;s.A.createBundleableApp(yt,ft,At);function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const xt=function(e){return(0,C.jsx)(mt,gt(gt({},e),{},{customDeleteEndpoint:"documents/delete/websocket"}))}},20763(e,t,n){n.r(t);var r=n(5544),i=n(4883),o=n(76325),a=n(84294),s=n(60349),l=n(30274),c=n(50069),d=n(4894),u=n(74848);const y=(0,d.S)((function(e){var t=e.selection,n=e.onSuccess,d=e.onCancel,y=e.locale,p=e.context,f=e.emitAction,A=e.navigate,m=e.navigationStrategy,v=t.ids[0].split("/"),g=(0,r.A)(v,2),x=g[0],h=g[1];(0,i.useEffect)((function(){"Resource"===x&&(A("/docs/doc/".concat(h,"/detail")),d())}),[x,h,A,d]);var b=(0,c.A)(p,x);return(0,u.jsx)(o.A,{entityName:x,formName:b,entityId:h,mode:"update",locale:y,onEntityUpdated:function(){var e=[{type:"entity-update-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},onEntityDeleted:function(){var e=[{type:"entity-delete-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||f(e)},listApp:a.Ay,docsApp:l.Ay,labelPosition:"inside",customActions:{history:function(e,t,n,r,i,o,a){m.navigateToPath({pathname:(0,s.K)(t),inNewTab:!0})}}})}));n.d(t,["default",0,y])},74250(e,t,n){n.r(t),n.d(t,{default:()=>S});var r,i,o,a=n(71468),s=n(7544),l=n(4894),c=n(5544),d=n(57528),u=n(2404),y=n(4883),p=n(87046),f=n(51510),A=n(76242),m=n(66387),v=n(33150),g=n(30274),x=n(241),h=n(74848),b=f.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(r||(r=(0,d.A)(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),A.Ay),E=(0,f.Ay)(m.A).withConfig({displayName:"StyledLoadMask"})(i||(i=(0,d.A)(["\n height: auto;\n"]))),j=function(e,t){return null!==e?"Move_docs_list_item":null!==t?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},k={initialize:s.n_,moveElements:s.BQ};const S=(0,l.S)((0,a.Ng)((function(e){return{isWaiting:e.docs.move.isWaiting,domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,businessUnit:e.input.businessUnit,locale:e.app.locale}}),k)((function(e){var t=e.selection,n=e.onSuccess,r=e.onError,i=e.path,a=e.initialize,s=e.moveElements,l=e.isWaiting,d=e.domainTypes,f=e.rootNodes,A=e.businessUnit,m=e.locale,k=e.emitAction,S=(0,x.A)(i),O={model:"Docs_list_item",key:"".concat(S.model,"/").concat(S.key)},N=(0,y.useState)(O),T=(0,c.A)(N,2),D=T[0],w=T[1];(0,y.useEffect)((function(){a(t,n,r)}),[]);var L=function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(e))}};return(0,h.jsxs)(E,{required:[!l],children:[(0,h.jsx)(g.Ay,{routerType:"routerless",initialLocation:function(){if(null===D)return null;var e=D.key.split("/"),t=(0,c.A)(e,2),n=t[0],r=t[1];return L(n,r)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",getListFormName:j,onListParentChange:w,getCustomLocation:L,navigationStrategy:{},embedded:!0,emitAction:k,noLeftPadding:!0,domainTypes:d,rootNodes:f,businessUnit:A,sortable:!1,scrollBehaviour:"none",locale:m,selectOnRowClick:!1}),(0,h.jsx)(b,{children:(0,h.jsx)(v.A,{onClick:function(){return s(D.key,t.ids)},look:"raised",ink:"primary",disabled:null===D||u(D,O),children:o||(o=(0,h.jsx)(p.sA,{id:"client.actions.dms-move.button"}))})})]})})))},50069(e,t,n){const r=function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)};n.d(t,["A",0,r])}}]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_widget_showcase=this.webpackChunktocco_widget_showcase||[]).push([[71262],{68165(e,t,n){n.r(t),n.d(t,{default:()=>J});var o,r=n(60436),a=n(64467),i=n(5544),c=n(4883);function d(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function u(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}function l(e,t){return"NEW_CKEDITOR"in window?Promise.resolve(NEW_CKEDITOR):"string"!=typeof e||e.length<1?Promise.reject(new TypeError("CKEditor URL must be a non-empty string.")):(o||(o=l.scriptLoader(e).then((function(e){return t&&t(e),e}))),o)}l.scriptLoader=function(e){return new Promise((function(t,n){
|
|
2
|
+
/**
|
|
3
|
+
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
|
4
|
+
* For licensing, see LICENSE.md.
|
|
5
|
+
*/
|
|
6
|
+
var r,a,i,c,l;r=e,a=function(e){return o=void 0,e?n(e):window.NEW_CKEDITOR?void t(NEW_CKEDITOR):n(new Error("Script loaded from editorUrl doesn't provide NEW_CKEDITOR namespace."))},c=document.head||document.getElementsByTagName("head")[0],l=document.createElement("script"),"function"==typeof a&&(i=a,a={}),a=a||{},i=i||function(){},l.type=a.type||"text/javascript",l.charset=a.charset||"utf8",l.async=!("async"in a)||!!a.async,l.src=r,a.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(l,a.attrs),a.text&&(l.text=String(a.text)),("onload"in l?d:u)(l,i),l.onload||d(l,i),c.appendChild(l)}))};var s=n(5556),p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)};function f(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var y=["activeEnterModeChange","activeFilterChange","afterCommandExec","afterInsertHtml","afterPaste","afterPasteFromWord","afterSetData","afterUndoImage","ariaEditorHelpLabel","ariaWidget","autogrow","beforeCommandExec","beforeDestroy","beforeGetData","beforeModeUnload","beforeSetMode","beforeUndoImage","blur","change","configLoaded","contentDirChanged","contentDom","contentDomInvalidated","contentDomUnload","contentPreview","customConfigLoaded","dataFiltered","dataReady","destroy","dialogHide","dialogShow","dirChanged","doubleclick","dragend","dragstart","drop","elementsPathUpdate","exportPdf","fileUploadRequest","fileUploadResponse","floatingSpaceLayout","focus","getData","getSnapshot","insertElement","insertHtml","insertText","instanceReady","key","langLoaded","loadSnapshot","loaded","lockSnapshot","maximize","menuShow","mode","notificationHide","notificationShow","notificationUpdate","paste","pasteFromWord","pluginsLoaded","readOnly","removeFormatCleanup","required","resize","save","saveSnapshot","selectionChange","setData","stylesRemove","stylesSet","template","toDataFormat","toHtml","uiSpace","unlockSnapshot","updateSnapshot","widgetDefinition"],g=["beforeLoad","namespaceLoaded"],h=f(f([],y,!0),g,!0),m="__CKE__";function v(e){var t=e.substr(0,1).toUpperCase()+e.substr(1);return"on".concat(t)}function b(e){return e.substr(2,1).toLowerCase()+e.substr(3)}var O=f(f([],y,!0),g,!0).reduce((function(e,t){var n;return p(p({},e),((n={})[t]=function(e){return"".concat(m).concat(e)}(t),n))}),{});function S(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}function x(e,t,n){var o={display:"none",visibility:"hidden"};return"classic"===e?o:"ready"===t?null!=n?n:void 0:o}function k(e){var t=e.debug,n=e.editor,o=e.evtName,r=e.handler,a=e.listenerData,i=e.priority,c=t&&Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),d=r;return t&&(d=function(e){console.log({operation:"invoke",editor:n.name,evtName:o,handlerId:c,data:e.data,listenerData:e.listenerData}),r(e)}),t&&console.log({operation:"register",editor:n.name,evtName:o,handlerId:c}),n.on(o,d,null,a,i),function(){t&&console.log({operation:"unregister",editor:n.name,evtName:o,handlerId:c}),n.removeListener(o,d)}}var w=c.useEffect,C=c.useReducer,E=c.useRef,D={};function j(e,t){switch(t.type){case"init":return p(p({},e),{hookStatus:"init"});case"loading":return p(p({},e),{hookStatus:"loading"});case"unloaded":return{editor:t.payload,hookStatus:"unloaded"};case"loaded":return p(p({},e),{hookStatus:"loaded"});case"ready":return p(p({},e),{hookStatus:"ready"});case"destroyed":return{editor:void 0,hookStatus:"destroyed"};case"error":return{editor:void 0,hookStatus:"error"};default:return e}}var L=c.useEffect,_=c.useRef,P=c.useState;function R(e){var t=e.config,n=void 0===t?{}:t,o=e.debug,r=e.editorUrl,a=e.initData,i=e.name,d=e.readOnly,u=e.style,s=e.type,p=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,["config","debug","editorUrl","initData","name","readOnly","style","type"]),f=P(null),y=f[0],R=f[1],T=_(p);n&&"boolean"==typeof d&&(n.readOnly=d);var U=function(e){var t=e.config,n=e.debug,o=e.dispatchEvent,r=e.subscribeTo,a=void 0===r?h:r,i=e.editorUrl,c=e.element,d=e.initContent,u=e.type,s=void 0===u?"classic":u,p=E(i||"https://cdn.ckeditor.com/4.22.1/standard-all/ckeditor.js"),f=E(null!=a?a:h),y=E(n),v=E(o),b=E(d),S=E(t||D),x=E(s),L=C(j,{editor:void 0,hookStatus:"init"}),_=L[0],P=_.editor,R=_.hookStatus,T=L[1];return w((function(){return c&&!P&&(T({type:"loading"}),l(p.current,(function(e){var t;-1!==f.current.indexOf("namespaceLoaded")&&(null===(t=v.current)||void 0===t||t.call(v,{type:O.namespaceLoaded,payload:e}))})).then((function(e){var t,n="inline"===x.current,o=S.current.readOnly;-1!==f.current.indexOf("beforeLoad")&&(null===(t=v.current)||void 0===t||t.call(v,{type:O.beforeLoad,payload:e}));var r=e[n?"inline":"replace"](c,S.current);f.current.filter((function(e){return-1===g.indexOf(e)})).forEach((function(e){k({debug:y.current,editor:r,evtName:e,handler:function(t){var n;null===(n=v.current)||void 0===n||n.call(v,{type:"".concat(m).concat(e),payload:t})}})})),k({debug:y.current,editor:r,evtName:"loaded",handler:function(){T({type:"loaded"})},priority:-1}),k({debug:y.current,editor:r,evtName:"instanceReady",handler:function(e){var t=e.editor;T({type:"ready"}),n&&!o&&t.setReadOnly(!1),b.current&&t.setData(b.current,{noSnapshot:!0,callback:function(){t.resetUndo()}})},priority:-1}),k({debug:y.current,editor:r,evtName:"destroy",handler:function(){T({type:"destroyed"})},priority:-1}),T({type:"unloaded",payload:r})})).catch((function(e){console.error(e),T({type:"error"})}))),function(){P&&P.destroy()}}),[P,c]),{editor:P,status:null==P?void 0:P.status,error:"error"===R,loading:"loading"===R}}({config:n,dispatchEvent:function(e){var t=e.type,n=e.payload,o=v(t.substr(7)),r=T.current[o];r&&r(n)},debug:o,editorUrl:r,element:y,initContent:"string"==typeof a?a:void 0,subscribeTo:Object.keys(p).filter((function(e){return 0===e.indexOf("on")})).map(b),type:s}),A=U.editor,N=U.status;return L((function(){var e="inline"!==s&&A&&("loaded"===N||"ready"===N);return u&&e&&A.container.setStyles(u),function(){u&&e&&Object.keys(u).map(S).forEach((function(e){A.container.removeStyle(e)}))}}),[A,N,u,s]),L((function(){A&&"ready"===N&&"boolean"==typeof d&&A.setReadOnly(d)}),[A,N,d]),c.createElement("div",{id:null!=i?i:void 0,ref:R,style:x(null!=s?s:"classic",N,u)},"string"==typeof a?null:a)}var T=p({config:s.object,debug:s.bool,editorUrl:s.string,initData:s.node,name:s.string,readOnly:s.bool,style:s.object,type:s.oneOf(["classic","inline"])},h.reduce((function(e,t){var n;return p(p({},e),((n={})[v(t)]=s.func,n))}),{}));R.propTypes=T;var U=n(87046),A=n(82014);const N=Object.entries({"8px":"~6pt","9px":"~7pt","10px":"~7.5pt","11px":"~8pt","12px":"~9pt","13px":"~10pt","14px":"~10.5pt","15px":"~11pt","16px":"~12pt","17px":"~13pt","18px":"~13.5pt","19px":"~14pt","20px":"~14.5pt","22px":"~16pt","24px":"~18pt","26px":"~20pt","28px":"~21pt","29px":"~22pt","32px":"~24pt","36px":"~26pt","37px":"~28pt","48px":"~36pt","64px":"~48pt","72px":"~54pt"}).map((function(e){var t=(0,i.A)(e,2),n=t[0],o=t[1];return"".concat(n," (").concat(o,")/").concat(n)})).join(";");var H,I=n(57528),F=n(51510),z=n(98582),K=F.Ay.div.withConfig({displayName:"StyledHtmlEditor"})(H||(H=(0,I.A)(["\n && {\n .ck-editor {\n --ck-border-radius: 0.27rem;\n ","\n\n .ck.ck-list__item .ck-button.ck-fontsize-option .ck-button__label {\n line-height: 1;\n }\n\n .ck-editor__editable {\n min-height: 100px;\n }\n }\n }\n"])),(function(e){return(0,z.g)(e,"ckeditor")})),W=n(74848);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}window.NEW_CKEDITOR_BASEPATH="".concat(n.p,"ckeditor4/");var G=function(e){switch(e){case"fr-CH":return"fr";case"it-CH":return"it";case"en-US":return"en";case"fr":case"en":case"it":case"de":return e;case"de-CH":return"de-ch";default:return"de"}};const J=function(e){var t=e.id,o=e.value,a=void 0===o?"":o,d=e.onChange,u=e.contentLang,l=void 0===u?"de":u,s=e.defaultLinkTarget,p=e.ckEditorConfig,f=e.useAutogrow,y=e.height,g=e.minHeight,h=e.maxHeight,m=(0,U.tz)().locale,v=(0,c.useState)(a),b=(0,i.A)(v,2),O=b[0],S=b[1],x=(0,c.useState)(!1),k=(0,i.A)(x,2),w=k[0],C=k[1],E=(0,c.useState)(y),D=(0,i.A)(E,2),j=D[0],L=D[1],_=(0,c.useState)(Math.random()),P=(0,i.A)(_,2),T=P[0],H=P[1];(0,c.useEffect)((function(){w&&O!==a&&H(Math.random())}),[a,w]);var I=M(M({language:G(m),contentsLanguage:l,entities:!1,allowedContent:!0,toolbar:[["Bold","Italic","Underline","Strike","RemoveFormat"],["Format","Font","FontSize","TextColor"],["NumberedList","BulletedList","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"],["Link","Unlink"],["Table","SpecialChar","Image"],["PasteText"],["Source"]],extraPlugins:["colorbutton","colordialog","dialogadvtab","font","codemirror","justify"].concat((0,r.A)(f?["autogrow"]:[])),removeButtons:[],removeDialogTabs:"",removePlugins:["elementspath"],codemirror:{mode:"htmlmixed",enableCodeFormatting:!0,autoFormatOnStart:!0},versionCheck:!1,fontSize_sizes:N},p),f?{resize_enabled:!1,autoGrow_onStartup:!0,autoGrow_minHeight:g,autoGrow_maxHeight:h}:{height:j}),F=function(e){try{var t=e.data.name,n=e.data.definition;if("link"===t)n.getContents("info").get("protocol").default="https://",n.getContents("target").get("linkTargetType").default=s||"notSet"}catch(e){A.A.logError("Could not set default link attributes.")}};return(0,W.jsx)(K,{id:t,children:(0,W.jsx)(R,{config:I,initData:a,onBeforeLoad:function(e){return e.on("dialogDefinition",F)},type:"classic",onChange:function(e){var t=e.editor.getData();S(t),d(t)},onKey:function(e){"source"===e.editor.mode&&setTimeout((function(){var t=e.editor.editable().getValue();d(t)}),0)},editorUrl:"".concat(n.p,"ckeditor4/ckeditor-new.js"),onLoaded:function(){return C(!0)},onResize:f?function(){}:function(e){var t=e.data.contentsHeight;return L(t)}},T)})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_widget_showcase=this.webpackChunktocco_widget_showcase||[]).push([[4672],{68341(t,a,e){e.r(a);var o=e(11211),r=e(62193),n=e(96177),c=e(74848);const s=function(t){var a=t.value,e=t.breakWords,s=t.id,i=(0,o.l)(a),u=r(i)?a:i.formatInternational();return(0,c.jsx)(n.A,{href:"tel:".concat(a),target:"_blank",onClick:function(t){return t.stopPropagation()},label:u,breakWords:e,id:s})};e.d(a,["default",0,s])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunktocco_widget_showcase=this.webpackChunktocco_widget_showcase||[]).push([[36916],{3031(a,l,i){i.r(l),i.d(l,{Icon:()=>N,default:()=>J});var e=i(64467),r=i(5556),t=i(80045),f=i(37107),o=i(37875),c=i(49456),n=i(15685),s=i(1970),d=i(58156),b=i(77231),u=i(74848),p=["icon","style","hasFixedWidth","title"];function h(a,l){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);l&&(e=e.filter((function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable}))),i.push.apply(i,e)}return i}function g(a){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?h(Object(i),!0).forEach((function(l){(0,e.A)(a,l,i[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(i,l))}))}return a}f.Yv.add(n.s4k,c.s4k,c.fMY,c.kpQ,c.XkK,c.Wzs,c.w2A,c.Jt$,c.Bwz,c.QLR,c.ao0,c.$Bp,c.yy,n.yy,c.p7g,c.GRI,c.dmS,c.INu,c.B0C,c.CeG,c.CFw,c.IxC,c.GZ1,c.oZK,c.h9M,c.pS3,c.k6j,c.A4h,c.h8M,c.OXM,c.ruc,c.Wxp,c.fny,c.o1d,c.$MS,c.O_q,c.__G,c.CI$,c.e68,c.bxP,c.y_8,c.GEE,n.GEE,c.SGM,n.SGM,c.jPR,o.FjH,o.aUl,o.Kjv,o.mhH,o.uu9,o.iMk,o.qKs,c.ckx,c.vMs,c.KKr,c.Nz1,c.MjD,c.t5Z,c.a$,c.Yj9,c.dB,c.wq_,c.ktq,c.adM,c.WoN,c.VNe,n.WPY,c.gr3,c.LBj,c.Dvs,c.Ync,c.wRm,c.vaG,c.EZy,c.s0Q,c.iW_,c.tUE,c.yLS,c.JAe,c.Wny,c.ITF,c.UNK,c.QLL,c.H77,c.gKm,c.Nfw,c.Vdo,c.hys,c.z$e,c.n6T,c.xxn,c.gVK,c.sqM,n.Nfw,c.THi,c.LJS,c.URI,c.bG5,c.DN2,c.bgf,c.hSh,c.hpd,c.tAZ,n.WMI,c.isI,c.oMV,c.vuR,c.$8E,c.FFg,c._$s,c.d$A,c.dhZ,c.okg,c.z2i,c.X3I,c.wM0,c.a9Q,c._JS,c.Bi7,c.C_m,c.qqK,c.AgW,c.ZQp,c.gdJ,c.g_i,c.DEr,c.br3,c.Qux,c.zm_,c.b6I,c.fPr,c.JmV,c.DW4,c.jTw,c.mRM,c.QhE,c.c3e,c.CQO,c.wic,c.aTc,c.X46,c.ayg,c.Rwe,c.yqK,c.BH7,c.h6r,c.o_8,c.PJS,c.bMg,c.w97,c.vRt,c.LTU,c.ZpR,c.pHs,c.eST,c._2z,c.a8v,c.LP,c.Gk0,c.$ki,c.ww_,c.IMq,c.swh,c.Qyz,c.Dfk,c.i8r,c.vri,c.XmQ,c.el8,c.Dkf,c.yHR,c.jot,c.Vf1);const w=function(a){var l=a.icon,i=a.style,e=a.hasFixedWidth,r=void 0===e||e,f=a.title,o=(0,t.A)(a,p),c=l.includes(",")?l.replace(/\s+/,"").split(","):l,n=g({},d(i,"color")&&{color:i.color}),h=Array.isArray(c)?c[1]:c;return(0,u.jsx)(b.i,{"data-testid":"icon",title:f,children:(0,u.jsx)(s.gc,g(g(g({icon:c,style:i},n),{},{fixedWidth:r},o),{},{"data-testid":"icon-".concat(h),"data-cy":"icon-".concat(h)}))})},m=JSON.parse('{"abacus":{"id":"fal, abacus","lib":"fa"},"address-card":{"id":"fal, address-card","lib":"fa"},"apple":{"id":"fab, apple","lib":"fa","tags":["sso"]},"arrow-left":{"id":"fal, arrow-left","lib":"fa","tags":["navigate"]},"arrow-right":{"id":"fal, arrow-right","lib":"fa","tags":["navigate"]},"arrow-up":{"id":"fal, arrow-up","lib":"fa"},"arrow-down":{"id":"fal, arrow-down","lib":"fa"},"arrow-down-to-line":{"id":"fal, arrow-down-to-line","lib":"fa"},"arrow-up-to-line":{"id":"fal, arrow-up-to-line","lib":"fa"},"sigma":{"id":"fal, sigma","lib":"fa"},"empty-set":{"id":"fal, empty-set","lib":"fa"},"arrow-to-bottom":{"id":"fal, arrow-to-bottom","lib":"fa","tags":["download"]},"arrow-to-top":{"id":"fal, arrow-to-top","lib":"fa","tags":["upload"]},"arrow-turn-left":{"id":"fal, arrow-turn-left","lib":"fa"},"arrow-turn-left-up":{"id":"fal, arrow-turn-left-up","lib":"fa"},"arrow-up-long":{"id":"fal, arrow-up-long","lib":"fa","tags":["arrow-up-long"]},"arrows-maximize":{"id":"fal, arrows-maximize","lib":"fa"},"arrows-minimize":{"id":"fal, arrows-minimize","lib":"fa"},"expand":{"id":"fal, expand","lib":"fa"},"arrow-down-arrow-up":{"id":"fal, arrow-down-arrow-up","lib":"fa","tags":["sort"]},"badge-percent":{"id":"fal, badge-percent","lib":"fa"},"ballot-check":{"id":"fal, ballot-check","lib":"fa"},"barcode-alt":{"id":"fal, barcode-alt","lib":"fa"},"bars":{"id":"fal, bars","lib":"fa","tags":["burger"]},"bell":{"id":"fal, bell","lib":"fa","tags":["notification"]},"bolt":{"id":"fal, bolt-lightning","lib":"fa"},"bolt-lightning":{"id":"fal, bolt-lightning","lib":"fa"},"book":{"id":"fal, book","lib":"fa"},"box":{"id":"fal, box","lib":"fa"},"box-open":{"id":"fal, box-open","lib":"fa"},"building":{"id":"fal, building","lib":"fa"},"calendar":{"id":"fal, calendar","lib":"fa"},"calendar-arrow-down":{"id":"fal, calendar-arrow-down","lib":"fa"},"calendar-circle-user":{"id":"fal, calendar-circle-user","lib":"fa"},"calendar-check":{"id":"fal, calendar-check","lib":"fa"},"calendar-minus":{"id":"fal, calendar-minus","lib":"fa"},"calendar-plus":{"id":"fal, calendar-plus","lib":"fa"},"chalkboard-teacher":{"id":"fal, chalkboard-teacher","lib":"fa"},"chart-network":{"id":"fal, chart-network","lib":"fa"},"check":{"id":"fal, check","lib":"fa","tags":["ok"]},"check-circle":{"id":"fal, check-circle","lib":"fa","tags":["check"]},"check-circle-full":{"id":"fas, check-circle","lib":"fa"},"chevron-double-down":{"id":"fal, chevron-double-down","lib":"fa"},"chevron-double-left":{"id":"fal, chevron-double-left","lib":"fa"},"chevron-double-right":{"id":"fal, chevron-double-right","lib":"fa"},"chevron-double-up":{"id":"fal, chevron-double-up","lib":"fa"},"chevron-down":{"id":"fal, chevron-down","lib":"fa"},"chevron-left":{"id":"fal, chevron-left","lib":"fa"},"chevron-right":{"id":"fal, chevron-right","lib":"fa"},"chevron-up":{"id":"fal, chevron-up","lib":"fa"},"circle":{"id":"fal, circle","lib":"fa","tags":["selection"]},"circle-full":{"id":"fas, circle","lib":"fa"},"circle-notch":{"id":"fa, circle-notch","lib":"fa"},"circle-notch-light":{"id":"fal, circle-notch","lib":"fa"},"clock":{"id":"fal, clock","lib":"fa"},"clock-rotate-left":{"id":"fal, clock-rotate-left","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"coins":{"id":"fal, coins","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"comment-arrow-up-right":{"id":"fal, comment-arrow-up-right","lib":"fa"},"copy":{"id":"fal, copy","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"eye":{"id":"fal, eye","lib":"fa"},"eye-slash":{"id":"fal, eye-slash","lib":"fa"},"facebook":{"id":"fab, facebook","lib":"fa","tags":["sso"]},"facebook-f":{"id":"fab, facebook-f","lib":"fa","tags":["sso"]},"file":{"id":"fal, file","lib":"fa"},"file-alt":{"id":"fal, file-alt","lib":"fa"},"file-circle-plus":{"id":"fal, file-circle-plus","lib":"fa"},"file-code":{"id":"fal, file-code","lib":"fa"},"file-csv":{"id":"fal, file-csv","lib":"fa"},"file-excel":{"id":"fal, file-excel","lib":"fa"},"file-export":{"id":"fal, file-export","lib":"fa"},"file-import":{"id":"fal, file-import","lib":"fa"},"file-pdf":{"id":"fal, file-pdf","lib":"fa"},"file-spreadsheet":{"id":"fal, file-spreadsheet","lib":"fa"},"filter":{"id":"fal, filter","lib":"fa"},"folder":{"id":"fal, folder","lib":"fa"},"folders":{"id":"fal, folders","lib":"fa","tags":["copy"]},"globe":{"id":"fal, globe","lib":"fa"},"google":{"id":"fab, google","lib":"fa","tags":["sso"]},"horizontal-rule":{"id":"fal, horizontal-rule","lib":"fa"},"id-badge":{"id":"fal, id-badge","lib":"fa"},"info":{"id":"fal, info","lib":"fa"},"laptop-code":{"id":"fal, laptop-code","lib":"fa"},"link":{"id":"fal, link","lib":"fa"},"link-simple":{"id":"fal, link-simple","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"list-tree":{"id":"fal, list-tree","lib":"fa"},"location-check":{"id":"fal, location-check","lib":"fa"},"location-dot":{"id":"fal, location-dot","lib":"fa"},"lock":{"id":"fal, lock","lib":"fa"},"info-circle":{"id":"fal, info-circle","lib":"fa","tags":["info"]},"mail-bulk":{"id":"fal, mail-bulk","lib":"fa"},"map-marked":{"id":"fal, map-marked","lib":"fa"},"mailbox-flag-up":{"id":"fal, mailbox-flag-up","lib":"fa"},"merge":{"id":"fal, merge","lib":"fa"},"microsoft":{"id":"fab, microsoft","lib":"fa","tags":["sso"]},"minus":{"id":"fal, minus","lib":"fa"},"newspaper":{"id":"fal, newspaper","lib":"fa"},"office":{"id":"office","lib":"toc"},"paper-clip":{"id":"fa, paper-clip","lib":"fa"},"paper-plane":{"id":"fal, paper-plane","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"person-chalkboard":{"id":"fal, person-chalkboard","lib":"fa"},"phone":{"id":"fal, phone","lib":"fa"},"phone-laptop":{"id":"fal, phone-laptop","lib":"fa"},"plus":{"id":"fal, plus","lib":"fa","tags":["new"]},"question-circle":{"id":"fal, question-circle","lib":"fa","tags":["help"]},"save":{"id":"fal, save","lib":"fa"},"search":{"id":"fal, search","lib":"fa"},"share":{"id":"fal, share","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sliders":{"id":"fal, sliders","lib":"fa"},"send":{"id":"send","lib":"toc"},"sparkle":{"id":"sparkle","lib":"toc"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"sparkles":{"id":"fal, sparkles","lib":"fa"},"square":{"id":"fal, square","lib":"fa"},"square-full":{"id":"fas, square-full","lib":"fa"},"square-minus":{"id":"fal, square-minus","lib":"fa"},"square-plus":{"id":"fal, square-plus","lib":"fa"},"star":{"id":"fal, star","lib":"fa","tags":["favorite"]},"star-full":{"id":"fas, star","lib":"fa","tags":["favorite"]},"sync":{"id":"fal, sync","lib":"fa","tags":["refresh"]},"tasks":{"id":"fal, tasks","lib":"fa"},"times":{"id":"fal, times","lib":"fa","tags":["delete","close"]},"times-circle":{"id":"fal, times-circle","lib":"fa","tags":["error"]},"tocco":{"id":"logo","lib":"toc"},"trash":{"id":"fal, trash","lib":"fa","tags":["trash"]},"triangle-exclamation":{"id":"fal, triangle-exclamation","lib":"fa"},"truck-medical":{"id":"fal, truck-medical","lib":"fa"},"upload":{"id":"fal, upload","lib":"fa"},"users":{"id":"fal, users","lib":"fa"},"lightbulb-exclamation":{"id":"fal, lightbulb-exclamation","lib":"fa"},"house-blank":{"id":"fal, house-blank","lib":"fa"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"},"user":{"id":"fal, user","lib":"fa"},"suitcase":{"id":"fal, suitcase","lib":"fa"},"gear":{"id":"fal, gear","lib":"fa"},"calculator":{"id":"fal, calculator","lib":"fa"},"wrench":{"id":"fal, wrench","lib":"fa"},"sun-bright":{"id":"fal, sun-bright","lib":"fa"},"moon":{"id":"fal, moon","lib":"fa"},"key":{"id":"fal, key","lib":"fa"},"table":{"id":"fal, table","lib":"fa"},"list-dropdown":{"id":"fal, list-dropdown","lib":"fa"},"chair-office":{"id":"fal, chair-office","lib":"fa"},"calendar-exclamation":{"id":"fal, calendar-exclamation","lib":"fa"},"bell-ring":{"id":"fal, bell-ring","lib":"fa"},"graduation-cap":{"id":"fal, graduation-cap","lib":"fa"},"tag":{"id":"fal, tag","lib":"fa"},"grip-dots":{"id":"fal, grip-dots","lib":"fa"},"file-certificate":{"id":"fal, file-certificate","lib":"fa"},"screen-users":{"id":"fal, screen-users","lib":"fa"},"grip-dots-vertical":{"id":"fal, grip-dots-vertical","lib":"fa"},"table-layout":{"id":"fal, table-layout","lib":"fa"},"layout-column-one":{"id":"layout-column-one","lib":"toc"},"layout-column-two":{"id":"layout-column-two","lib":"toc"},"layout-column-three":{"id":"layout-column-three","lib":"toc"},"layout-sidebar-left":{"id":"layout-sidebar-left","lib":"toc"},"layout-sidebar-right":{"id":"layout-sidebar-right","lib":"toc"},"house-person-leave":{"id":"fal, house-person-leave","lib":"fa"},"ban":{"id":"fal, ban","lib":"fa"},"thumbtack-angle":{"id":"fal, thumbtack-angle","lib":"fa"},"thumbtack-angle-slash":{"id":"fal, thumbtack-angle-slash","lib":"fa"},"ellipsis-stroke":{"id":"fal, ellipsis-stroke","lib":"fa"},"memo":{"id":"fal, memo","lib":"fa"},"grid-2":{"id":"fal, grid-2","lib":"fa"}}');var v,y,k,x,j,O,z,M,S,P,V=["style"],H=["style"],A=["style"],q=["style"],D=["style"],_=["style"],B=["style"],C=["style"],E=["style"],L=["icon"];function W(a,l){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);l&&(e=e.filter((function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable}))),i.push.apply(i,e)}return i}function I(a){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?W(Object(i),!0).forEach((function(l){(0,e.A)(a,l,i[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):W(Object(i)).forEach((function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(i,l))}))}return a}var R={logo:function(a){var l=a.style,i=(0,t.A)(a,V);return(0,u.jsx)("svg",I(I(I({height:d(l,"fontSize",20)},l),i),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:v||(v=(0,u.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(a){var l=a.style,i=(0,t.A)(a,H);return(0,u.jsx)("svg",I(I(I({height:d(l,"fontSize",20)},l),i),{},{"aria-hidden":"true",role:"img",enableBackground:"new 0 0 2075 2499.8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2075 2499.8",children:y||(y=(0,u.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))},"layout-column-one":function(a){var l=a.style,i=(0,t.A)(a,A);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},l),i),{},{children:k||(k=(0,u.jsx)("path",{d:"M78.8 19.7H433.2c32.6 0 59.1 26.4 59.1 59.1V433.2c0 32.6-26.5 59.1-59.1 \n 59.1H78.8c-32.6 0-59.1-26.5-59.1-59.1V78.8c0-32.6 26.4-59.1 59.1-59.1zm0 39.4c-10.9 \n 0-19.7 8.8-19.7 19.7V433.2c0 10.9 8.8 19.7 19.7 19.7H433.2c10.9 0 19.7-8.8 \n 19.7-19.7V78.8c0-10.9-8.8-19.7-19.7-19.7H78.8z"}))}))},"layout-column-two":function(a){var l=a.style,i=(0,t.A)(a,q);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 591 512"},l),i),{},{children:x||(x=(0,u.jsx)("path",{d:"M219.5 0c9.7 0 19 3.8 25.9 10.7s10.7 16.2 10.7 25.9v438.8c0 \n 9.7-3.8 19-10.7 25.9s-16.2 10.7-25.9 10.7H36.7c-9.7 0-19-3.8-25.9-10.7S.1 \n 485.1 .1 475.4V36.6c0-9.7 3.8-19 10.7-25.9S27 0 36.7 0zM39.5 472.6h177.2V39.4H39.5zM548.7 \n 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.9 \n 9-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7H365.8c-9.7 0-19-3.8-25.9-10.7s-10.7-16.2-10.7-25.9V36.6c0-9.7 \n 3.8-19 10.7-25.9S356.1 0 365.8 0zm-180 472.6h177.2V39.4H368.7z"}))}))},"layout-column-three":function(a){var l=a.style,i=(0,t.A)(a,D);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 591 512"},l),i),{},{children:j||(j=(0,u.jsx)("path",{d:"M109.8 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.8 19-10.7 \n 25.9c-6.9 6.8-16.2 10.7-25.8 10.7H36.7c-9.7 0-19-3.8-25.9-10.7S.1 485.1 .1 475.4V36.6c0-9.7 3.8-19 \n 10.7-25.9S27 0 36.7 0zM39.5 472.6H107V39.4H39.5zM329.3 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 \n 10.7 25.9v438.8c0 9.7-3.9 19-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7h-73.2c-9.7 \n 0-19-3.8-25.8-10.7c-6.9-6.9-10.7-16.2-10.7-25.9V36.6c0-9.7 3.9-19 10.7-25.9C237.1 3.8 246.4 0 \n 256.1 0zM258.9 472.6h67.5V39.4h-67.5zM548.7 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 \n 25.9v438.8c0 9.7-3.9 19-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7h-73.2c-9.7 \n 0-19-3.8-25.8-10.7c-6.9-6.9-10.7-16.2-10.7-25.9V36.6c0-9.7 3.9-19 10.7-25.9C456.5 \n 3.8 465.8 0 475.5 0zM478.3 472.6h67.5V39.4h-67.5z"}))}))},"layout-sidebar-left":function(a){var l=a.style,i=(0,t.A)(a,_);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 591 512"},l),i),{},{children:O||(O=(0,u.jsx)("path",{d:"M73.3 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.9 19-10.7 \n 25.9S83 512 73.3 512H36.7c-9.7 0-19-3.8-25.9-10.7S.1 485.1 .1 475.4V36.6c0-9.7 3.8-19 10.7-25.9S27 \n 0 36.7 0zM39.5 472.6h31V39.4h-31zM548.7 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 \n 9.7-3.9 19-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7H219.5c-9.7 \n 0-19-3.8-25.8-10.7c-6.9-6.9-10.7-16.2-10.7-25.9V36.6c0-9.7 3.9-19 10.7-25.9S209.8 0 \n 219.5 0zM222.3 472.6h323.5V39.4H222.3z"}))}))},"layout-sidebar-right":function(a){var l=a.style,i=(0,t.A)(a,B);return(0,u.jsx)("svg",I(I(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 591 512"},l),i),{},{children:z||(z=(0,u.jsx)("path",{d:"M365.8 0c9.7 0 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.8\n 19-10.7 25.9c-6.9 6.8-16.2 10.7-25.8 10.7H36.7c-9.7 0-19-3.8-25.9-10.7S.1 485.1 .1\n 475.4V36.6c0-9.7 3.8-19 10.7-25.9S27 0 36.7 0zM39.5 472.6H363V39.4H39.5zM548.7 0c9.7 0\n 19 3.8 25.8 10.7c6.9 6.9 10.7 16.2 10.7 25.9v438.8c0 9.7-3.9 19-10.7 25.9c-6.9 6.8-16.2\n 10.7-25.8 10.7h-36.6c-9.7 0-19-3.8-25.8-10.7c-6.9-6.9-10.7-16.2-10.7-25.9V36.6c0-9.7 3.9-19\n 10.7-25.9C493.1 3.8 502.4 0 512.1 0zM514.9 472.6h31V39.4h-31z"}))}))},sparkle:function(a){var l=a.style,i=(0,t.A)(a,C);return(0,u.jsxs)("svg",I(I(I({height:d(l,"fontSize",20)},l),i),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",children:[M||(M=(0,u.jsx)("path",{d:"M8 0.5l1.6 4.3a2 2 0 0 0 1.2 1.2l4.3 1.6-4.3 1.6a2 2 0 0 0-1.2 1.2L8 14.7l-1.6-4.3a2 2 0 0 0-1.2-1.2L0.9 7.6l4.3-1.6a2 2 0 0 0 1.2-1.2L8 0.5z"})),S||(S=(0,u.jsx)("path",{d:"M13.2 0.9l0.6 1.6a0.7 0.7 0 0 0 0.4 0.4l1.6 0.6-1.6 0.6a0.7 0.7 0 0 0-0.4 0.4l-0.6 1.6-0.6-1.6a0.7 0.7 0 0 0-0.4-0.4L10.6 3.5l1.6-0.6a0.7 0.7 0 0 0 0.4-0.4l0.6-1.6z"}))]}))},send:function(a){var l=a.style,i=(0,t.A)(a,E);return(0,u.jsx)("svg",I(I(I({height:d(l,"fontSize",20)},l),i),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:P||(P=(0,u.jsx)("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"}))}))}};const G=function(a){var l=a.icon,i=(0,t.A)(a,L);return(0,u.jsx)(b.P,{children:R[l](i)})};function K(a,l){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);l&&(e=e.filter((function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable}))),i.push.apply(i,e)}return i}function Q(a){for(var l=1;l<arguments.length;l++){var i=null!=arguments[l]?arguments[l]:{};l%2?K(Object(i),!0).forEach((function(l){(0,e.A)(a,l,i[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):K(Object(i)).forEach((function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(i,l))}))}return a}var $={fa:function(a,l){return(0,u.jsx)(w,Q(Q({},l),{},{icon:a.id}))},toc:function(a,l){return(0,u.jsx)(G,Q(Q({},l),{},{icon:a.id,"data-testid":"icon-".concat(a.id)}))}},N=function(a){var l=m[a.icon];if(!l)return null;var i=$[l.lib];return i?i(l,a):null};N.propTypes={icon:r.string.isRequired,style:r.objectOf(r.string)};const J=N}}]);
|