@crystaldesign/diva-web-planner-react 26.1.0-beta.24 → 26.1.0-beta.26
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/build/umd/2602.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3695.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6547.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7145.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7415.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8345.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +9 -9
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 2602.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[2602],{65526:(e,t,n)=>{"use strict";var a=n(65807);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,l,o,
|
|
2
|
+
(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[2602],{65526:(e,t,n)=>{"use strict";var a=n(65807);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,l,o,r){if(r!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},36653:(e,t,n)=>{e.exports=n(65526)()},65807:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},59165:(e,t,n)=>{"use strict";n.d(t,{_l:()=>i,gc:()=>JsonView});var a=n(87363);const isDate=e=>!!e&&e instanceof Date,isObject=e=>"object"==typeof e&&null!==e,isFunction=e=>!!e&&e instanceof Object&&"function"==typeof e;function quoteString(e,t){return void 0===t&&(t=!1),!e||t?`"${e}"`:e}function ExpandableObject(e){let{field:t,value:n,data:l,lastElement:o,openBracket:r,closeBracket:s,level:i,style:c,shouldExpandNode:u,clickToExpandNode:d,outerRef:p,beforeExpandChange:m}=e;const f=(0,a.useRef)(!1),[b,h]=(0,a.useState)((()=>u(i,n,t))),E=(0,a.useRef)(null);(0,a.useEffect)((()=>{f.current?h(u(i,n,t)):f.current=!0}),[u]);const y=(0,a.useId)();if(0===l.length)return function EmptyObject(e){let{field:t,openBracket:n,closeBracket:l,lastElement:o,style:r}=e;return(0,a.createElement)("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,a.createElement)("span",{className:r.label},quoteString(t,r.quotesForFieldNames),":"),(0,a.createElement)("span",{className:r.punctuation},n),(0,a.createElement)("span",{className:r.punctuation},l),!o&&(0,a.createElement)("span",{className:r.punctuation},","))}({field:t,openBracket:r,closeBracket:s,lastElement:o,style:c});const g=b?c.collapseIcon:c.expandIcon,_=b?c.ariaLables.collapseJson:c.ariaLables.expandJson,v=i+1,x=l.length-1,setExpandWithCallback=e=>{b===e||m&&!m({level:i,value:n,field:t,newExpandValue:e})||h(e)},onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),setExpandWithCallback("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const t="ArrowUp"===e.key?-1:1;if(!p.current)return;const n=p.current.querySelectorAll("[role=button]");let a=-1;for(let e=0;e<n.length;e++)if(0===n[e].tabIndex){a=e;break}if(a<0)return;const l=(a+t+n.length)%n.length;n[a].tabIndex=-1,n[l].tabIndex=0,n[l].focus()}},onClick=()=>{var e;setExpandWithCallback(!b);const t=E.current;if(!t)return;const n=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');n&&(n.tabIndex=-1),t.tabIndex=0,t.focus()};return(0,a.createElement)("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":b,"aria-selected":void 0},(0,a.createElement)("span",{className:g,onClick,onKeyDown,role:"button","aria-label":_,"aria-expanded":b,"aria-controls":b?y:void 0,ref:E,tabIndex:0===i?0:-1}),(t||""===t)&&(d?(0,a.createElement)("span",{className:c.clickableLabel,onClick,onKeyDown},quoteString(t,c.quotesForFieldNames),":"):(0,a.createElement)("span",{className:c.label},quoteString(t,c.quotesForFieldNames),":")),(0,a.createElement)("span",{className:c.punctuation},r),b?(0,a.createElement)("ul",{id:y,role:"group",className:c.childFieldsContainer},l.map(((e,t)=>(0,a.createElement)(DataRender,{key:e[0]||t,field:e[0],value:e[1],style:c,lastElement:t===x,level:v,shouldExpandNode:u,clickToExpandNode:d,beforeExpandChange:m,outerRef:p})))):(0,a.createElement)("span",{className:c.collapsedContent,onClick,onKeyDown}),(0,a.createElement)("span",{className:c.punctuation},s),!o&&(0,a.createElement)("span",{className:c.punctuation},","))}function JsonObject(e){let{field:t,value:n,style:a,lastElement:l,shouldExpandNode:o,clickToExpandNode:r,level:s,outerRef:i,beforeExpandChange:c}=e;return ExpandableObject({field:t,value:n,lastElement:l||!1,level:s,openBracket:"{",closeBracket:"}",style:a,shouldExpandNode:o,clickToExpandNode:r,data:Object.keys(n).map((e=>[e,n[e]])),outerRef:i,beforeExpandChange:c})}function JsonArray(e){let{field:t,value:n,style:a,lastElement:l,level:o,shouldExpandNode:r,clickToExpandNode:s,outerRef:i,beforeExpandChange:c}=e;return ExpandableObject({field:t,value:n,lastElement:l||!1,level:o,openBracket:"[",closeBracket:"]",style:a,shouldExpandNode:r,clickToExpandNode:s,data:n.map((e=>[void 0,e])),outerRef:i,beforeExpandChange:c})}function JsonPrimitiveValue(e){let t,{field:n,value:l,style:o,lastElement:r}=e,s=o.otherValue;var i;return null===l?(t="null",s=o.nullValue):void 0===l?(t="undefined",s=o.undefinedValue):"string"==typeof(i=l)||i instanceof String?(t=function quoteStringValue(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}(l,!o.noQuotesForStringValues,o.stringifyStringValues),s=o.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(l)?(t=l?"true":"false",s=o.booleanValue):(e=>"number"==typeof e||e instanceof Number)(l)?(t=l.toString(),s=o.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(l)?(t=`${l.toString()}n`,s=o.numberValue):t=isDate(l)?l.toISOString():isFunction(l)?"function() { }":l.toString(),(0,a.createElement)("div",{className:o.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,a.createElement)("span",{className:o.label},quoteString(n,o.quotesForFieldNames),":"),(0,a.createElement)("span",{className:s},t),!r&&(0,a.createElement)("span",{className:o.punctuation},","))}function DataRender(e){const t=e.value;return n=t,Array.isArray(n)?(0,a.createElement)(JsonArray,Object.assign({},e)):!isObject(t)||isDate(t)||isFunction(t)?(0,a.createElement)(JsonPrimitiveValue,Object.assign({},e)):(0,a.createElement)(JsonObject,Object.assign({},e));var n}var l="_2bkNM",o="_1BXBN";const r={collapseJson:"collapse JSON",expandJson:"expand JSON"},s={container:"_2IvMF _GzYRV",basicChildStyle:l,childFieldsContainer:o,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:r,stringifyStringValues:!1},i={container:"_11RoI _GzYRV",basicChildStyle:l,childFieldsContainer:o,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:r,stringifyStringValues:!1},allExpanded=()=>!0,JsonView=e=>{let{data:t,style:n=s,shouldExpandNode:l=allExpanded,clickToExpandNode:o=!1,beforeExpandChange:r,compactTopLevel:i,...c}=e;const u=(0,a.useRef)(null);return(0,a.createElement)("div",Object.assign({"aria-label":"JSON view"},c,{className:n.container,ref:u,role:"tree"}),i&&isObject(t)?Object.entries(t).map((e=>{let[t,i]=e;return(0,a.createElement)(DataRender,{key:t,field:t,value:i,style:{...s,...n},lastElement:!0,level:1,shouldExpandNode:l,clickToExpandNode:o,beforeExpandChange:r,outerRef:u})})):(0,a.createElement)(DataRender,{value:t,style:{...s,...n},lastElement:!0,level:0,shouldExpandNode:l,clickToExpandNode:o,outerRef:u,beforeExpandChange:r}))}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 3695.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[3695],{59165:(e,n,t)=>{t.d(n,{_l:()=>r,gc:()=>JsonView});var l=t(87363);const isDate=e=>!!e&&e instanceof Date;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:a,lastElement:o,openBracket:r,closeBracket:i,level:s,style:d,shouldExpandNode:c,clickToExpandNode:u,outerRef:p}=e;const m=(0,l.useRef)(!1),[b,g,f]=function useBool(e){const[n,t]=(0,l.useState)(e());return[n,()=>t((e=>!e)),t]}((()=>c(s,t,n))),x=(0,l.useRef)(null);(0,l.useEffect)((()=>{m.current?f(c(s,t,n)):m.current=!0}),[c]);const _=b?d.collapseIcon:d.expandIcon,h=b?"collapse JSON":"expand JSON",k=(0,l.useId)(),v=s+1,E=a.length-1,onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),f("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let l=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){l=e;break}if(l<0)return;const a=(l+n+t.length)%t.length;t[l].tabIndex=-1,t[a].tabIndex=0,t[a].focus()}},onClick=()=>{var e;g();const n=x.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,l.createElement)("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":b,"aria-selected":void 0},(0,l.createElement)("span",{className:_,onClick,onKeyDown,role:"button","aria-label":h,"aria-expanded":b,"aria-controls":b?k:void 0,ref:x,tabIndex:0===s?0:-1}),(n||""===n)&&(u?(0,l.createElement)("span",{className:d.clickableLabel,onClick,onKeyDown},quoteString(n,d.quotesForFieldNames),":"):(0,l.createElement)("span",{className:d.label},quoteString(n,d.quotesForFieldNames),":")),(0,l.createElement)("span",{className:d.punctuation},r),b?(0,l.createElement)("ul",{id:k,role:"group"},a.map(((e,n)=>(0,l.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:d,lastElement:n===E,level:v,shouldExpandNode:c,clickToExpandNode:u,outerRef:p})))):(0,l.createElement)("span",{className:d.collapsedContent,onClick,onKeyDown}),(0,l.createElement)("span",{className:d.punctuation},i),!o&&(0,l.createElement)("span",{className:d.punctuation},","))}function EmptyObject(e){let{field:n,openBracket:t,closeBracket:a,lastElement:o,style:r}=e;return(0,l.createElement)("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,l.createElement)("span",{className:r.label},quoteString(n,r.quotesForFieldNames),":"),(0,l.createElement)("span",{className:r.punctuation},t),(0,l.createElement)("span",{className:r.punctuation},a),!o&&(0,l.createElement)("span",{className:r.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:l,lastElement:a,shouldExpandNode:o,clickToExpandNode:r,level:i,outerRef:s}=e;return 0===Object.keys(t).length?EmptyObject({field:n,openBracket:"{",closeBracket:"}",lastElement:a,style:l}):ExpandableObject({field:n,value:t,lastElement:a||!1,level:i,openBracket:"{",closeBracket:"}",style:l,shouldExpandNode:o,clickToExpandNode:r,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s})}function JsonArray(e){let{field:n,value:t,style:l,lastElement:a,level:o,shouldExpandNode:r,clickToExpandNode:i,outerRef:s}=e;return 0===t.length?EmptyObject({field:n,openBracket:"[",closeBracket:"]",lastElement:a,style:l}):ExpandableObject({field:n,value:t,lastElement:a||!1,level:o,openBracket:"[",closeBracket:"]",style:l,shouldExpandNode:r,clickToExpandNode:i,data:t.map((e=>[void 0,e])),outerRef:s})}function JsonPrimitiveValue(e){let n,{field:t,value:a,style:o,lastElement:r}=e,i=o.otherValue;var s;return null===a?(n="null",i=o.nullValue):void 0===a?(n="undefined",i=o.undefinedValue):"string"==typeof(s=a)||s instanceof String?(n=quoteString(a,!o.noQuotesForStringValues),i=o.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(a)?(n=a?"true":"false",i=o.booleanValue):(e=>"number"==typeof e||e instanceof Number)(a)?(n=a.toString(),i=o.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(a)?(n=`${a.toString()}n`,i=o.numberValue):n=isDate(a)?a.toISOString():a.toString(),(0,l.createElement)("div",{className:o.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,l.createElement)("span",{className:o.label},quoteString(t,o.quotesForFieldNames),":"),(0,l.createElement)("span",{className:i},n),!r&&(0,l.createElement)("span",{className:o.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,l.createElement)(JsonArray,Object.assign({},e)):(e=>e instanceof Object&&null!==e)(n)&&!isDate(n)?(0,l.createElement)(JsonObject,Object.assign({},e)):(0,l.createElement)(JsonPrimitiveValue,Object.assign({},e));var t}var a="_2bkNM";const o={container:"_2IvMF _GzYRV",basicChildStyle:a,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},r={container:"_11RoI _GzYRV",basicChildStyle:a,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=o,shouldExpandNode:a=allExpanded,clickToExpandNode:r=!1,...i}=e;const s=(0,l.useRef)(null);return(0,l.createElement)("div",Object.assign({"aria-label":"JSON view"},i,{className:t.container,ref:s,role:"tree"}),(0,l.createElement)(DataRender,{value:n,style:t,lastElement:!0,level:0,shouldExpandNode:a,clickToExpandNode:r,outerRef:s}))}},23695:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var l=t(72874),a=(t(87363),t(9420)),o=t(92349),r=t(65515),i=t.n(r),s=t(59165),d=(t(76839),t(76189)),c=t(47514),u=["json","isExpanded","collapsed"];const p=(0,a.Pi)((function JsonViewer(e){var n=e.json,t=e.isExpanded,a=(e.collapsed,(0,l.Z)(e,u),(0,d.NP)());return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:i()(o.YS,t?o.rp:void 0),style:{zIndex:9999},children:(0,c.jsx)(s.gc,{data:n,style:s._l},a.settingsState.configChanged)})})}))},62860:(e,n,t)=>{t.d(n,{BZ:()=>i,Jf:()=>p,Od:()=>s,Uj:()=>f,Ux:()=>u,YS:()=>b,ZP:()=>_,_D:()=>x,l1:()=>m,qk:()=>d,rp:()=>g,tX:()=>c});var l=t(8081),a=t.n(l),o=t(23645),r=t.n(o)()(a());r.push([e.id,".index-module--d56lH {\n width: 25%;\n border: 1px solid;\n border-radius: var(--globalBorderRadius);\n background-color: white;\n max-width: 90px;\n box-shadow: none;\n transition: box-shadow 0.5s;\n}\n.index-module--d56lH p {\n line-break: anywhere;\n}\n.index-module--TipV7 {\n background-color: rgba(96, 245, 96, 0.377);\n}\n.index-module--d56lH:hover {\n box-shadow: inset 5px 5px 100px 5px rgba(0,0,0,0.24706);\n cursor: pointer;\n transition: box-shadow 0.5s;\n}\n.index-module--F8fkE {\n display: flex;\n padding-left: 60px;\n padding-bottom: 10px;\n padding-top: 10px;\n gap: 2.5%;\n min-height: 135px;\n overflow: auto;\n background-color: #31383d;\n}\n.index-module--_cMQA {\n width: auto;\n height: auto;\n max-width: 95%;\n max-height: 90px;\n margin-left: 2.5%;\n margin-right: 2.5%;\n}\n.index-module--LpnAj {\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n text-align: center;\n background-color: rgb(28, 32, 35);\n color: black;\n margin: 5% 0% 0% 1%;\n cursor: pointer;\n}\n.index-module--Sj8he {\n margin-top: 1%;\n transform: rotate(270deg);\n transition: transform 0.3s;\n}\n.index-module--FqwmN {\n margin-top: 1%;\n transform: rotate(90deg);\n transition: transform 0.3s;\n}\n.index-module--cGqPx {\n position: relative;\n margin-left: 50px;\n height: 78.6vh;\n width: 96%;\n overflow: auto;\n background-color: rgb(28, 32, 35);\n transition: height 0.5s;\n}\n.index-module--HI_ql {\n height: 53.8vh;\n transition: height 0.5s;\n}\n.index-module--kIX5J {\n margin-left: 50px;\n display: flex;\n flex-basis: 100%;\n}\n.index-module--kIX5J * {\n width: 100%;\n background-color: #11101d;\n border: 0px;\n color: white;\n}\n.index-module--x1F61 {\n background-color: rgba(96, 245, 96, 0.377);\n color: black;\n border: 2px solid white;\n}\n",""]);var i="index-module--d56lH",s="index-module--TipV7",d="index-module--F8fkE",c="index-module--_cMQA",u="index-module--LpnAj",p="index-module--Sj8he",m="index-module--FqwmN",b="index-module--cGqPx",g="index-module--HI_ql",f="index-module--kIX5J",x="index-module--x1F61";const _=r},72035:(e,n,t)=>{t.d(n,{Z:()=>i});var l=t(8081),a=t.n(l),o=t(23645),r=t.n(o)()(a());r.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const i=r},92349:(e,n,t)=>{t.d(n,{BZ:()=>g.BZ,Jf:()=>g.Jf,Od:()=>g.Od,Uj:()=>g.Uj,Ux:()=>g.Ux,YS:()=>g.YS,_D:()=>g._D,l1:()=>g.l1,qk:()=>g.qk,rp:()=>g.rp,tX:()=>g.tX});var l=t(93379),a=t.n(l),o=t(7795),r=t.n(o),i=t(90569),s=t.n(i),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),m=t(44589),b=t.n(m),g=t(62860),f={};f.styleTagTransform=b(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=p();a()(g.ZP,f),g.ZP&&g.ZP.locals&&g.ZP.locals},76839:(e,n,t)=>{var l=t(93379),a=t.n(l),o=t(7795),r=t.n(o),i=t(90569),s=t.n(i),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),m=t(44589),b=t.n(m),g=t(72035),f={};f.styleTagTransform=b(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=p();a()(g.Z,f),g.Z&&g.Z.locals&&g.Z.locals}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[3695],{59165:(e,n,t)=>{t.d(n,{_l:()=>s,gc:()=>JsonView});var a=t(87363);const isDate=e=>!!e&&e instanceof Date,isObject=e=>"object"==typeof e&&null!==e,isFunction=e=>!!e&&e instanceof Object&&"function"==typeof e;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:l,lastElement:o,openBracket:r,closeBracket:i,level:s,style:d,shouldExpandNode:c,clickToExpandNode:u,outerRef:p,beforeExpandChange:m}=e;const g=(0,a.useRef)(!1),[b,f]=(0,a.useState)((()=>c(s,t,n))),x=(0,a.useRef)(null);(0,a.useEffect)((()=>{g.current?f(c(s,t,n)):g.current=!0}),[c]);const h=(0,a.useId)();if(0===l.length)return function EmptyObject(e){let{field:n,openBracket:t,closeBracket:l,lastElement:o,style:r}=e;return(0,a.createElement)("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,a.createElement)("span",{className:r.label},quoteString(n,r.quotesForFieldNames),":"),(0,a.createElement)("span",{className:r.punctuation},t),(0,a.createElement)("span",{className:r.punctuation},l),!o&&(0,a.createElement)("span",{className:r.punctuation},","))}({field:n,openBracket:r,closeBracket:i,lastElement:o,style:d});const _=b?d.collapseIcon:d.expandIcon,E=b?d.ariaLables.collapseJson:d.ariaLables.expandJson,v=s+1,y=l.length-1,setExpandWithCallback=e=>{b===e||m&&!m({level:s,value:t,field:n,newExpandValue:e})||f(e)},onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),setExpandWithCallback("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let a=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){a=e;break}if(a<0)return;const l=(a+n+t.length)%t.length;t[a].tabIndex=-1,t[l].tabIndex=0,t[l].focus()}},onClick=()=>{var e;setExpandWithCallback(!b);const n=x.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,a.createElement)("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":b,"aria-selected":void 0},(0,a.createElement)("span",{className:_,onClick,onKeyDown,role:"button","aria-label":E,"aria-expanded":b,"aria-controls":b?h:void 0,ref:x,tabIndex:0===s?0:-1}),(n||""===n)&&(u?(0,a.createElement)("span",{className:d.clickableLabel,onClick,onKeyDown},quoteString(n,d.quotesForFieldNames),":"):(0,a.createElement)("span",{className:d.label},quoteString(n,d.quotesForFieldNames),":")),(0,a.createElement)("span",{className:d.punctuation},r),b?(0,a.createElement)("ul",{id:h,role:"group",className:d.childFieldsContainer},l.map(((e,n)=>(0,a.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:d,lastElement:n===y,level:v,shouldExpandNode:c,clickToExpandNode:u,beforeExpandChange:m,outerRef:p})))):(0,a.createElement)("span",{className:d.collapsedContent,onClick,onKeyDown}),(0,a.createElement)("span",{className:d.punctuation},i),!o&&(0,a.createElement)("span",{className:d.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:a,lastElement:l,shouldExpandNode:o,clickToExpandNode:r,level:i,outerRef:s,beforeExpandChange:d}=e;return ExpandableObject({field:n,value:t,lastElement:l||!1,level:i,openBracket:"{",closeBracket:"}",style:a,shouldExpandNode:o,clickToExpandNode:r,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s,beforeExpandChange:d})}function JsonArray(e){let{field:n,value:t,style:a,lastElement:l,level:o,shouldExpandNode:r,clickToExpandNode:i,outerRef:s,beforeExpandChange:d}=e;return ExpandableObject({field:n,value:t,lastElement:l||!1,level:o,openBracket:"[",closeBracket:"]",style:a,shouldExpandNode:r,clickToExpandNode:i,data:t.map((e=>[void 0,e])),outerRef:s,beforeExpandChange:d})}function JsonPrimitiveValue(e){let n,{field:t,value:l,style:o,lastElement:r}=e,i=o.otherValue;var s;return null===l?(n="null",i=o.nullValue):void 0===l?(n="undefined",i=o.undefinedValue):"string"==typeof(s=l)||s instanceof String?(n=function quoteStringValue(e,n,t){return t?JSON.stringify(e):n?`"${e}"`:e}(l,!o.noQuotesForStringValues,o.stringifyStringValues),i=o.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(l)?(n=l?"true":"false",i=o.booleanValue):(e=>"number"==typeof e||e instanceof Number)(l)?(n=l.toString(),i=o.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(l)?(n=`${l.toString()}n`,i=o.numberValue):n=isDate(l)?l.toISOString():isFunction(l)?"function() { }":l.toString(),(0,a.createElement)("div",{className:o.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,a.createElement)("span",{className:o.label},quoteString(t,o.quotesForFieldNames),":"),(0,a.createElement)("span",{className:i},n),!r&&(0,a.createElement)("span",{className:o.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,a.createElement)(JsonArray,Object.assign({},e)):!isObject(n)||isDate(n)||isFunction(n)?(0,a.createElement)(JsonPrimitiveValue,Object.assign({},e)):(0,a.createElement)(JsonObject,Object.assign({},e));var t}var l="_2bkNM",o="_1BXBN";const r={collapseJson:"collapse JSON",expandJson:"expand JSON"},i={container:"_2IvMF _GzYRV",basicChildStyle:l,childFieldsContainer:o,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:r,stringifyStringValues:!1},s={container:"_11RoI _GzYRV",basicChildStyle:l,childFieldsContainer:o,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:r,stringifyStringValues:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=i,shouldExpandNode:l=allExpanded,clickToExpandNode:o=!1,beforeExpandChange:r,compactTopLevel:s,...d}=e;const c=(0,a.useRef)(null);return(0,a.createElement)("div",Object.assign({"aria-label":"JSON view"},d,{className:t.container,ref:c,role:"tree"}),s&&isObject(n)?Object.entries(n).map((e=>{let[n,s]=e;return(0,a.createElement)(DataRender,{key:n,field:n,value:s,style:{...i,...t},lastElement:!0,level:1,shouldExpandNode:l,clickToExpandNode:o,beforeExpandChange:r,outerRef:c})})):(0,a.createElement)(DataRender,{value:n,style:{...i,...t},lastElement:!0,level:0,shouldExpandNode:l,clickToExpandNode:o,outerRef:c,beforeExpandChange:r}))}},23695:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var a=t(72874),l=(t(87363),t(9420)),o=t(92349),r=t(65515),i=t.n(r),s=t(59165),d=(t(76839),t(76189)),c=t(47514),u=["json","isExpanded","collapsed"];const p=(0,l.Pi)((function JsonViewer(e){var n=e.json,t=e.isExpanded,l=(e.collapsed,(0,a.Z)(e,u),(0,d.NP)());return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:i()(o.YS,t?o.rp:void 0),style:{zIndex:9999},children:(0,c.jsx)(s.gc,{data:n,style:s._l},l.settingsState.configChanged)})})}))},62860:(e,n,t)=>{t.d(n,{BZ:()=>i,Jf:()=>p,Od:()=>s,Uj:()=>f,Ux:()=>u,YS:()=>g,ZP:()=>h,_D:()=>x,l1:()=>m,qk:()=>d,rp:()=>b,tX:()=>c});var a=t(8081),l=t.n(a),o=t(23645),r=t.n(o)()(l());r.push([e.id,".index-module--d56lH {\n width: 25%;\n border: 1px solid;\n border-radius: var(--globalBorderRadius);\n background-color: white;\n max-width: 90px;\n box-shadow: none;\n transition: box-shadow 0.5s;\n}\n.index-module--d56lH p {\n line-break: anywhere;\n}\n.index-module--TipV7 {\n background-color: rgba(96, 245, 96, 0.377);\n}\n.index-module--d56lH:hover {\n box-shadow: inset 5px 5px 100px 5px rgba(0,0,0,0.24706);\n cursor: pointer;\n transition: box-shadow 0.5s;\n}\n.index-module--F8fkE {\n display: flex;\n padding-left: 60px;\n padding-bottom: 10px;\n padding-top: 10px;\n gap: 2.5%;\n min-height: 135px;\n overflow: auto;\n background-color: #31383d;\n}\n.index-module--_cMQA {\n width: auto;\n height: auto;\n max-width: 95%;\n max-height: 90px;\n margin-left: 2.5%;\n margin-right: 2.5%;\n}\n.index-module--LpnAj {\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n text-align: center;\n background-color: rgb(28, 32, 35);\n color: black;\n margin: 5% 0% 0% 1%;\n cursor: pointer;\n}\n.index-module--Sj8he {\n margin-top: 1%;\n transform: rotate(270deg);\n transition: transform 0.3s;\n}\n.index-module--FqwmN {\n margin-top: 1%;\n transform: rotate(90deg);\n transition: transform 0.3s;\n}\n.index-module--cGqPx {\n position: relative;\n margin-left: 50px;\n height: 78.6vh;\n width: 96%;\n overflow: auto;\n background-color: rgb(28, 32, 35);\n transition: height 0.5s;\n}\n.index-module--HI_ql {\n height: 53.8vh;\n transition: height 0.5s;\n}\n.index-module--kIX5J {\n margin-left: 50px;\n display: flex;\n flex-basis: 100%;\n}\n.index-module--kIX5J * {\n width: 100%;\n background-color: #11101d;\n border: 0px;\n color: white;\n}\n.index-module--x1F61 {\n background-color: rgba(96, 245, 96, 0.377);\n color: black;\n border: 2px solid white;\n}\n",""]);var i="index-module--d56lH",s="index-module--TipV7",d="index-module--F8fkE",c="index-module--_cMQA",u="index-module--LpnAj",p="index-module--Sj8he",m="index-module--FqwmN",g="index-module--cGqPx",b="index-module--HI_ql",f="index-module--kIX5J",x="index-module--x1F61";const h=r},72035:(e,n,t)=>{t.d(n,{Z:()=>i});var a=t(8081),l=t.n(a),o=t(23645),r=t.n(o)()(l());r.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const i=r},92349:(e,n,t)=>{t.d(n,{BZ:()=>b.BZ,Jf:()=>b.Jf,Od:()=>b.Od,Uj:()=>b.Uj,Ux:()=>b.Ux,YS:()=>b.YS,_D:()=>b._D,l1:()=>b.l1,qk:()=>b.qk,rp:()=>b.rp,tX:()=>b.tX});var a=t(93379),l=t.n(a),o=t(7795),r=t.n(o),i=t(90569),s=t.n(i),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),m=t(44589),g=t.n(m),b=t(62860),f={};f.styleTagTransform=g(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=p();l()(b.ZP,f),b.ZP&&b.ZP.locals&&b.ZP.locals},76839:(e,n,t)=>{var a=t(93379),l=t.n(a),o=t(7795),r=t.n(o),i=t(90569),s=t.n(i),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),m=t(44589),g=t.n(m),b=t(72035),f={};f.styleTagTransform=g(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=p();l()(b.Z,f),b.Z&&b.Z.locals&&b.Z.locals}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 6547.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[6547,1880,2602,8291],{65526:(e,n,t)=>{"use strict";var a=t(65807);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,n,t,r,o,l){if(l!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},36653:(e,n,t)=>{e.exports=t(65526)()},65807:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},59165:(e,n,t)=>{"use strict";t.d(n,{_l:()=>l,gc:()=>JsonView});var a=t(87363);const isDate=e=>!!e&&e instanceof Date;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:r,lastElement:o,openBracket:l,closeBracket:i,level:s,style:c,shouldExpandNode:u,clickToExpandNode:d,outerRef:p}=e;const m=(0,a.useRef)(!1),[b,f,g]=function useBool(e){const[n,t]=(0,a.useState)(e());return[n,()=>t((e=>!e)),t]}((()=>u(s,t,n))),h=(0,a.useRef)(null);(0,a.useEffect)((()=>{m.current?g(u(s,t,n)):m.current=!0}),[u]);const v=b?c.collapseIcon:c.expandIcon,_=b?"collapse JSON":"expand JSON",x=(0,a.useId)(),y=s+1,N=r.length-1,onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),g("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let a=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){a=e;break}if(a<0)return;const r=(a+n+t.length)%t.length;t[a].tabIndex=-1,t[r].tabIndex=0,t[r].focus()}},onClick=()=>{var e;f();const n=h.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,a.createElement)("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":b,"aria-selected":void 0},(0,a.createElement)("span",{className:v,onClick,onKeyDown,role:"button","aria-label":_,"aria-expanded":b,"aria-controls":b?x:void 0,ref:h,tabIndex:0===s?0:-1}),(n||""===n)&&(d?(0,a.createElement)("span",{className:c.clickableLabel,onClick,onKeyDown},quoteString(n,c.quotesForFieldNames),":"):(0,a.createElement)("span",{className:c.label},quoteString(n,c.quotesForFieldNames),":")),(0,a.createElement)("span",{className:c.punctuation},l),b?(0,a.createElement)("ul",{id:x,role:"group"},r.map(((e,n)=>(0,a.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:c,lastElement:n===N,level:y,shouldExpandNode:u,clickToExpandNode:d,outerRef:p})))):(0,a.createElement)("span",{className:c.collapsedContent,onClick,onKeyDown}),(0,a.createElement)("span",{className:c.punctuation},i),!o&&(0,a.createElement)("span",{className:c.punctuation},","))}function EmptyObject(e){let{field:n,openBracket:t,closeBracket:r,lastElement:o,style:l}=e;return(0,a.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,a.createElement)("span",{className:l.label},quoteString(n,l.quotesForFieldNames),":"),(0,a.createElement)("span",{className:l.punctuation},t),(0,a.createElement)("span",{className:l.punctuation},r),!o&&(0,a.createElement)("span",{className:l.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:a,lastElement:r,shouldExpandNode:o,clickToExpandNode:l,level:i,outerRef:s}=e;return 0===Object.keys(t).length?EmptyObject({field:n,openBracket:"{",closeBracket:"}",lastElement:r,style:a}):ExpandableObject({field:n,value:t,lastElement:r||!1,level:i,openBracket:"{",closeBracket:"}",style:a,shouldExpandNode:o,clickToExpandNode:l,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s})}function JsonArray(e){let{field:n,value:t,style:a,lastElement:r,level:o,shouldExpandNode:l,clickToExpandNode:i,outerRef:s}=e;return 0===t.length?EmptyObject({field:n,openBracket:"[",closeBracket:"]",lastElement:r,style:a}):ExpandableObject({field:n,value:t,lastElement:r||!1,level:o,openBracket:"[",closeBracket:"]",style:a,shouldExpandNode:l,clickToExpandNode:i,data:t.map((e=>[void 0,e])),outerRef:s})}function JsonPrimitiveValue(e){let n,{field:t,value:r,style:o,lastElement:l}=e,i=o.otherValue;var s;return null===r?(n="null",i=o.nullValue):void 0===r?(n="undefined",i=o.undefinedValue):"string"==typeof(s=r)||s instanceof String?(n=quoteString(r,!o.noQuotesForStringValues),i=o.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(r)?(n=r?"true":"false",i=o.booleanValue):(e=>"number"==typeof e||e instanceof Number)(r)?(n=r.toString(),i=o.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(r)?(n=`${r.toString()}n`,i=o.numberValue):n=isDate(r)?r.toISOString():r.toString(),(0,a.createElement)("div",{className:o.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,a.createElement)("span",{className:o.label},quoteString(t,o.quotesForFieldNames),":"),(0,a.createElement)("span",{className:i},n),!l&&(0,a.createElement)("span",{className:o.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,a.createElement)(JsonArray,Object.assign({},e)):(e=>e instanceof Object&&null!==e)(n)&&!isDate(n)?(0,a.createElement)(JsonObject,Object.assign({},e)):(0,a.createElement)(JsonPrimitiveValue,Object.assign({},e));var t}var r="_2bkNM";const o={container:"_2IvMF _GzYRV",basicChildStyle:r,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},l={container:"_11RoI _GzYRV",basicChildStyle:r,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=o,shouldExpandNode:r=allExpanded,clickToExpandNode:l=!1,...i}=e;const s=(0,a.useRef)(null);return(0,a.createElement)("div",Object.assign({"aria-label":"JSON view"},i,{className:t.container,ref:s,role:"tree"}),(0,a.createElement)(DataRender,{value:n,style:t,lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:l,outerRef:s}))}},31880:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>y});var a=t(34988),r=t(76189),o=(t(87363),t(58590)),l=t(93379),i=t.n(l),s=t(7795),c=t.n(s),u=t(90569),d=t.n(u),p=t(3565),m=t.n(p),b=t(19216),f=t.n(b),g=t(44589),h=t.n(g),v=t(73751),_={};_.styleTagTransform=h(),_.setAttributes=m(),_.insert=d().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=f();i()(v.Z,_);v.Z&&v.Z.locals&&v.Z.locals;var x=t(47514);const y=function ArticleSelector(e){var n,t=(0,a.Z)(e.articleState,2),l=t[0],i=t[1],s=(0,r.NP)(),c=Object.values(null!==(n=s.divaWebPlanner.getDivaArticles(void 0,!0))&&void 0!==n?n:{}),u=c.map((function(e){return{value:e.basketId,label:e.name+" "+e.posNr}}));return 1==u.length||0==u.length?(0,x.jsx)(x.Fragment,{}):(0,x.jsx)(o.ZP,{value:u.find((function(e){return e.value===(null==l?void 0:l.basketId)})),options:u,onChange:function onChange(e){i(c.find((function(n){return n.basketId==e.value})))},className:v.Y})}},304:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>y});var a=t(12952),r=t(80248),o=t(84658),l=t(34988),i=t(88291),s=t(50747),c=t.n(s),u=t(87363),d=t(51203),p=t(36115),m=t(76189),b=t(9420),f=t(65515),g=t.n(f),h=t(88683),v=(t(76839),t(13222)),_=t(31880),x=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const y=(0,b.Pi)((function DecisionAnalyzer(e){var n,t=Object.assign({},((0,i.Z)(e),e)),r=(0,m.NP)(),s=r.divaWebPlanner.getDivaArticles(),b=(0,u.useState)(!1),f=(0,l.Z)(b,2),y=f[0],N=f[1];(0,u.useEffect)((function(){var e=function(){var e=(0,o.Z)(c().mark((function _callee(){return c().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.DivaUtils.Sleep(1e3);case 2:N(!y);case 3:case"end":return e.stop()}}),_callee)})));return function asyncFunct(){return e.apply(this,arguments)}}();e()}),[r.tabGroupState.allTabGroups]),(0,u.useEffect)((function(){var e=r.divaWebPlanner.actSet();return e&&!e.logDecisions&&(e.logDecisions=!0),function(){var e=r.divaWebPlanner.actSet();e&&(e.logDecisions=!1)}}),[r.uiState.isLoading]);var E=(0,u.useState)(Object.values(null!=s?s:{}).find((function(e){return 1==e.posNr}))),S=(0,l.Z)(E,2),k=S[0],j=S[1],O=(0,u.useState)(),w=(0,l.Z)(O,2),F=w[0],T=w[1],D=(0,u.useState)(),I=(0,l.Z)(D,2),P=I[0],R=I[1];if(!k)return(0,x.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm),style:{zIndex:800},children:[(0,x.jsx)("a",{className:p.Fs,children:"Decision analyzer - plann article"}),(0,x.jsx)(_.default,{articleState:[k,j]})]}));var C=k.CatalogData.isIDMFormat,A=null===(n=k.decisionDebugStacks)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.stack)||void 0===n?void 0:n.length;if(!A)return(0,x.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm),style:{zIndex:800},children:[(0,x.jsx)("a",{className:p.Fs,children:"Decision analyzer - change config"}),(0,x.jsx)(_.default,{articleState:[k,j]})]}));var V=(0,a.Z)(Array(A).keys()),Z=[];return Z=C?k.decisionDebugStacks.map((function(e){return e.stack.map((function(e){var n;return _objectSpread(_objectSpread({},e),{},{bold:!(void 0===P||null===(n=e.decision.featureRefs)||void 0===n||!n.includes(P))})}))})):k.decisionDebugStacks.map((function(e){return e.stack.map((function(e){var n,t;return _objectSpread(_objectSpread({},e),{},{bold:!(void 0===P||!(null!==(n=e.decision.DOC)&&void 0!==n&&n.find((function(e){var n,t;return(null===(n=e.DA)||void 0===n?void 0:n.find((function(e){return e.OptionCodex==P||e.DecisionNr==P})))||(null===(t=e.JsFormula)||void 0===t?void 0:t.includes("'OPT"+P+"'"))}))||null!==(t=e.decision.Options)&&void 0!==t&&t.includes("OPT"+P)))})}))})),(0,x.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm,r.uiState.configSettingsIsExpanded?d.NF:void 0),style:{zIndex:800},children:[(0,x.jsxs)("a",{className:p.Fs,children:["Decision history",(0,x.jsx)("input",{value:P,onChange:function onChange(e){return R(e.target.value)},placeholder:"filter option ohne OPT",className:p.hX})]}),(0,x.jsx)(_.default,{articleState:[k,j]}),(0,x.jsxs)("table",{className:p.Kz,children:[(0,x.jsx)("thead",{children:(0,x.jsx)("tr",{className:p.$Q,children:Z.map((function(e,n){return(0,x.jsx)("th",{children:n},n)}))})}),(0,x.jsx)("tbody",{children:V.map((function(e,n){return(0,x.jsx)("tr",{className:p.$Q,children:Z.map((function(e,t){var a,r;return(0,x.jsx)("th",{onClick:function onClick(){return function onClick(e,n){var t,a;e==((null==F||null===(t=F.decision)||void 0===t?void 0:t.Number)||(null==F||null===(a=F.decision)||void 0===a?void 0:a.decisionNo))?T(void 0):T(n)}(e[n].nr,e[n])},children:e[n].bold?(0,x.jsx)("strong",{children:null===(a=e[n])||void 0===a?void 0:a.text}):null===(r=e[n])||void 0===r?void 0:r.text},t)}))},n)}))})]}),F&&(0,x.jsx)("div",{className:p.EC,children:(0,x.jsx)(v.default,{decision:F.decision,snapshots:F.snapshots,onClose:function onClose(){return T(void 0)}})})]}))}))},73751:(e,n,t)=>{"use strict";t.d(n,{Y:()=>i,Z:()=>s});var a=t(8081),r=t.n(a),o=t(23645),l=t.n(o)()(r());l.push([e.id,".index-module--_Tl9c {\n width: 200px;\n font-size: 12px;\n}\n.index-module--_Tl9c div {\n border-color: grey !important;\n}\n.index-module--_Tl9c div {\n box-shadow: none;\n box-shadow: initial;\n}\n",""]);var i="index-module--_Tl9c";const s=l},89965:(e,n,t)=>{"use strict";t.d(n,{NF:()=>s,ZP:()=>u,ec:()=>i,pb:()=>c});var a=t(8081),r=t.n(a),o=t(23645),l=t.n(o)()(r());l.push([e.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var i="index-module--NA4Nc",s="index-module--zxgl3",c="index-module--WGNyK";const u=l},72035:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var a=t(8081),r=t.n(a),o=t(23645),l=t.n(o)()(r());l.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const i=l},51203:(e,n,t)=>{"use strict";t.d(n,{NF:()=>f.NF,ec:()=>f.ec,pb:()=>f.pb});var a=t(93379),r=t.n(a),o=t(7795),l=t.n(o),i=t(90569),s=t.n(i),c=t(3565),u=t.n(c),d=t(19216),p=t.n(d),m=t(44589),b=t.n(m),f=t(89965),g={};g.styleTagTransform=b(),g.setAttributes=u(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();r()(f.ZP,g),f.ZP&&f.ZP.locals&&f.ZP.locals},76839:(e,n,t)=>{"use strict";var a=t(93379),r=t.n(a),o=t(7795),l=t.n(o),i=t(90569),s=t.n(i),c=t(3565),u=t.n(c),d=t(19216),p=t.n(d),m=t(44589),b=t.n(m),f=t(72035),g={};g.styleTagTransform=b(),g.setAttributes=u(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();r()(f.Z,g),f.Z&&f.Z.locals&&f.Z.locals},88291:(e,n,t)=>{"use strict";function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(n,{Z:()=>_objectDestructuringEmpty})}}]);
|
|
2
|
+
(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[6547,1880,2602,8291],{65526:(e,n,t)=>{"use strict";var a=t(65807);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,n,t,r,o,l){if(l!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},36653:(e,n,t)=>{e.exports=t(65526)()},65807:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},59165:(e,n,t)=>{"use strict";t.d(n,{_l:()=>s,gc:()=>JsonView});var a=t(87363);const isDate=e=>!!e&&e instanceof Date,isObject=e=>"object"==typeof e&&null!==e,isFunction=e=>!!e&&e instanceof Object&&"function"==typeof e;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:r,lastElement:o,openBracket:l,closeBracket:i,level:s,style:c,shouldExpandNode:u,clickToExpandNode:d,outerRef:p,beforeExpandChange:m}=e;const f=(0,a.useRef)(!1),[b,g]=(0,a.useState)((()=>u(s,t,n))),h=(0,a.useRef)(null);(0,a.useEffect)((()=>{f.current?g(u(s,t,n)):f.current=!0}),[u]);const v=(0,a.useId)();if(0===r.length)return function EmptyObject(e){let{field:n,openBracket:t,closeBracket:r,lastElement:o,style:l}=e;return(0,a.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,a.createElement)("span",{className:l.label},quoteString(n,l.quotesForFieldNames),":"),(0,a.createElement)("span",{className:l.punctuation},t),(0,a.createElement)("span",{className:l.punctuation},r),!o&&(0,a.createElement)("span",{className:l.punctuation},","))}({field:n,openBracket:l,closeBracket:i,lastElement:o,style:c});const x=b?c.collapseIcon:c.expandIcon,_=b?c.ariaLables.collapseJson:c.ariaLables.expandJson,y=s+1,E=r.length-1,setExpandWithCallback=e=>{b===e||m&&!m({level:s,value:t,field:n,newExpandValue:e})||g(e)},onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),setExpandWithCallback("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let a=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){a=e;break}if(a<0)return;const r=(a+n+t.length)%t.length;t[a].tabIndex=-1,t[r].tabIndex=0,t[r].focus()}},onClick=()=>{var e;setExpandWithCallback(!b);const n=h.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,a.createElement)("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":b,"aria-selected":void 0},(0,a.createElement)("span",{className:x,onClick,onKeyDown,role:"button","aria-label":_,"aria-expanded":b,"aria-controls":b?v:void 0,ref:h,tabIndex:0===s?0:-1}),(n||""===n)&&(d?(0,a.createElement)("span",{className:c.clickableLabel,onClick,onKeyDown},quoteString(n,c.quotesForFieldNames),":"):(0,a.createElement)("span",{className:c.label},quoteString(n,c.quotesForFieldNames),":")),(0,a.createElement)("span",{className:c.punctuation},l),b?(0,a.createElement)("ul",{id:v,role:"group",className:c.childFieldsContainer},r.map(((e,n)=>(0,a.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:c,lastElement:n===E,level:y,shouldExpandNode:u,clickToExpandNode:d,beforeExpandChange:m,outerRef:p})))):(0,a.createElement)("span",{className:c.collapsedContent,onClick,onKeyDown}),(0,a.createElement)("span",{className:c.punctuation},i),!o&&(0,a.createElement)("span",{className:c.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:a,lastElement:r,shouldExpandNode:o,clickToExpandNode:l,level:i,outerRef:s,beforeExpandChange:c}=e;return ExpandableObject({field:n,value:t,lastElement:r||!1,level:i,openBracket:"{",closeBracket:"}",style:a,shouldExpandNode:o,clickToExpandNode:l,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s,beforeExpandChange:c})}function JsonArray(e){let{field:n,value:t,style:a,lastElement:r,level:o,shouldExpandNode:l,clickToExpandNode:i,outerRef:s,beforeExpandChange:c}=e;return ExpandableObject({field:n,value:t,lastElement:r||!1,level:o,openBracket:"[",closeBracket:"]",style:a,shouldExpandNode:l,clickToExpandNode:i,data:t.map((e=>[void 0,e])),outerRef:s,beforeExpandChange:c})}function JsonPrimitiveValue(e){let n,{field:t,value:r,style:o,lastElement:l}=e,i=o.otherValue;var s;return null===r?(n="null",i=o.nullValue):void 0===r?(n="undefined",i=o.undefinedValue):"string"==typeof(s=r)||s instanceof String?(n=function quoteStringValue(e,n,t){return t?JSON.stringify(e):n?`"${e}"`:e}(r,!o.noQuotesForStringValues,o.stringifyStringValues),i=o.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(r)?(n=r?"true":"false",i=o.booleanValue):(e=>"number"==typeof e||e instanceof Number)(r)?(n=r.toString(),i=o.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(r)?(n=`${r.toString()}n`,i=o.numberValue):n=isDate(r)?r.toISOString():isFunction(r)?"function() { }":r.toString(),(0,a.createElement)("div",{className:o.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,a.createElement)("span",{className:o.label},quoteString(t,o.quotesForFieldNames),":"),(0,a.createElement)("span",{className:i},n),!l&&(0,a.createElement)("span",{className:o.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,a.createElement)(JsonArray,Object.assign({},e)):!isObject(n)||isDate(n)||isFunction(n)?(0,a.createElement)(JsonPrimitiveValue,Object.assign({},e)):(0,a.createElement)(JsonObject,Object.assign({},e));var t}var r="_2bkNM",o="_1BXBN";const l={collapseJson:"collapse JSON",expandJson:"expand JSON"},i={container:"_2IvMF _GzYRV",basicChildStyle:r,childFieldsContainer:o,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:l,stringifyStringValues:!1},s={container:"_11RoI _GzYRV",basicChildStyle:r,childFieldsContainer:o,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:l,stringifyStringValues:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=i,shouldExpandNode:r=allExpanded,clickToExpandNode:o=!1,beforeExpandChange:l,compactTopLevel:s,...c}=e;const u=(0,a.useRef)(null);return(0,a.createElement)("div",Object.assign({"aria-label":"JSON view"},c,{className:t.container,ref:u,role:"tree"}),s&&isObject(n)?Object.entries(n).map((e=>{let[n,s]=e;return(0,a.createElement)(DataRender,{key:n,field:n,value:s,style:{...i,...t},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:l,outerRef:u})})):(0,a.createElement)(DataRender,{value:n,style:{...i,...t},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:u,beforeExpandChange:l}))}},31880:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>y});var a=t(34988),r=t(76189),o=(t(87363),t(58590)),l=t(93379),i=t.n(l),s=t(7795),c=t.n(s),u=t(90569),d=t.n(u),p=t(3565),m=t.n(p),f=t(19216),b=t.n(f),g=t(44589),h=t.n(g),v=t(73751),x={};x.styleTagTransform=h(),x.setAttributes=m(),x.insert=d().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=b();i()(v.Z,x);v.Z&&v.Z.locals&&v.Z.locals;var _=t(47514);const y=function ArticleSelector(e){var n,t=(0,a.Z)(e.articleState,2),l=t[0],i=t[1],s=(0,r.NP)(),c=Object.values(null!==(n=s.divaWebPlanner.getDivaArticles(void 0,!0))&&void 0!==n?n:{}),u=c.map((function(e){return{value:e.basketId,label:e.name+" "+e.posNr}}));return 1==u.length||0==u.length?(0,_.jsx)(_.Fragment,{}):(0,_.jsx)(o.ZP,{value:u.find((function(e){return e.value===(null==l?void 0:l.basketId)})),options:u,onChange:function onChange(e){i(c.find((function(n){return n.basketId==e.value})))},className:v.Y})}},304:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>y});var a=t(12952),r=t(80248),o=t(84658),l=t(34988),i=t(88291),s=t(50747),c=t.n(s),u=t(87363),d=t(51203),p=t(36115),m=t(76189),f=t(9420),b=t(65515),g=t.n(b),h=t(88683),v=(t(76839),t(13222)),x=t(31880),_=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const y=(0,f.Pi)((function DecisionAnalyzer(e){var n,t=Object.assign({},((0,i.Z)(e),e)),r=(0,m.NP)(),s=r.divaWebPlanner.getDivaArticles(),f=(0,u.useState)(!1),b=(0,l.Z)(f,2),y=b[0],E=b[1];(0,u.useEffect)((function(){var e=function(){var e=(0,o.Z)(c().mark((function _callee(){return c().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.DivaUtils.Sleep(1e3);case 2:E(!y);case 3:case"end":return e.stop()}}),_callee)})));return function asyncFunct(){return e.apply(this,arguments)}}();e()}),[r.tabGroupState.allTabGroups]),(0,u.useEffect)((function(){var e=r.divaWebPlanner.actSet();return e&&!e.logDecisions&&(e.logDecisions=!0),function(){var e=r.divaWebPlanner.actSet();e&&(e.logDecisions=!1)}}),[r.uiState.isLoading]);var N=(0,u.useState)(Object.values(null!=s?s:{}).find((function(e){return 1==e.posNr}))),S=(0,l.Z)(N,2),k=S[0],j=S[1],O=(0,u.useState)(),w=(0,l.Z)(O,2),F=w[0],C=w[1],T=(0,u.useState)(),D=(0,l.Z)(T,2),R=D[0],I=D[1];if(!k)return(0,_.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm),style:{zIndex:800},children:[(0,_.jsx)("a",{className:p.Fs,children:"Decision analyzer - plann article"}),(0,_.jsx)(x.default,{articleState:[k,j]})]}));var P=k.CatalogData.isIDMFormat,V=null===(n=k.decisionDebugStacks)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.stack)||void 0===n?void 0:n.length;if(!V)return(0,_.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm),style:{zIndex:800},children:[(0,_.jsx)("a",{className:p.Fs,children:"Decision analyzer - change config"}),(0,_.jsx)(x.default,{articleState:[k,j]})]}));var A=(0,a.Z)(Array(V).keys()),Z=[];return Z=P?k.decisionDebugStacks.map((function(e){return e.stack.map((function(e){var n;return _objectSpread(_objectSpread({},e),{},{bold:!(void 0===R||null===(n=e.decision.featureRefs)||void 0===n||!n.includes(R))})}))})):k.decisionDebugStacks.map((function(e){return e.stack.map((function(e){var n,t;return _objectSpread(_objectSpread({},e),{},{bold:!(void 0===R||!(null!==(n=e.decision.DOC)&&void 0!==n&&n.find((function(e){var n,t;return(null===(n=e.DA)||void 0===n?void 0:n.find((function(e){return e.OptionCodex==R||e.DecisionNr==R})))||(null===(t=e.JsFormula)||void 0===t?void 0:t.includes("'OPT"+R+"'"))}))||null!==(t=e.decision.Options)&&void 0!==t&&t.includes("OPT"+R)))})}))})),(0,_.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm,r.uiState.configSettingsIsExpanded?d.NF:void 0),style:{zIndex:800},children:[(0,_.jsxs)("a",{className:p.Fs,children:["Decision history",(0,_.jsx)("input",{value:R,onChange:function onChange(e){return I(e.target.value)},placeholder:"filter option ohne OPT",className:p.hX})]}),(0,_.jsx)(x.default,{articleState:[k,j]}),(0,_.jsxs)("table",{className:p.Kz,children:[(0,_.jsx)("thead",{children:(0,_.jsx)("tr",{className:p.$Q,children:Z.map((function(e,n){return(0,_.jsx)("th",{children:n},n)}))})}),(0,_.jsx)("tbody",{children:A.map((function(e,n){return(0,_.jsx)("tr",{className:p.$Q,children:Z.map((function(e,t){var a,r;return(0,_.jsx)("th",{onClick:function onClick(){return function onClick(e,n){var t,a;e==((null==F||null===(t=F.decision)||void 0===t?void 0:t.Number)||(null==F||null===(a=F.decision)||void 0===a?void 0:a.decisionNo))?C(void 0):C(n)}(e[n].nr,e[n])},children:e[n].bold?(0,_.jsx)("strong",{children:null===(a=e[n])||void 0===a?void 0:a.text}):null===(r=e[n])||void 0===r?void 0:r.text},t)}))},n)}))})]}),F&&(0,_.jsx)("div",{className:p.EC,children:(0,_.jsx)(v.default,{decision:F.decision,snapshots:F.snapshots,onClose:function onClose(){return C(void 0)}})})]}))}))},73751:(e,n,t)=>{"use strict";t.d(n,{Y:()=>i,Z:()=>s});var a=t(8081),r=t.n(a),o=t(23645),l=t.n(o)()(r());l.push([e.id,".index-module--_Tl9c {\n width: 200px;\n font-size: 12px;\n}\n.index-module--_Tl9c div {\n border-color: grey !important;\n}\n.index-module--_Tl9c div {\n box-shadow: none;\n box-shadow: initial;\n}\n",""]);var i="index-module--_Tl9c";const s=l},89965:(e,n,t)=>{"use strict";t.d(n,{NF:()=>s,ZP:()=>u,ec:()=>i,pb:()=>c});var a=t(8081),r=t.n(a),o=t(23645),l=t.n(o)()(r());l.push([e.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var i="index-module--NA4Nc",s="index-module--zxgl3",c="index-module--WGNyK";const u=l},72035:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var a=t(8081),r=t.n(a),o=t(23645),l=t.n(o)()(r());l.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const i=l},51203:(e,n,t)=>{"use strict";t.d(n,{NF:()=>b.NF,ec:()=>b.ec,pb:()=>b.pb});var a=t(93379),r=t.n(a),o=t(7795),l=t.n(o),i=t(90569),s=t.n(i),c=t(3565),u=t.n(c),d=t(19216),p=t.n(d),m=t(44589),f=t.n(m),b=t(89965),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();r()(b.ZP,g),b.ZP&&b.ZP.locals&&b.ZP.locals},76839:(e,n,t)=>{"use strict";var a=t(93379),r=t.n(a),o=t(7795),l=t.n(o),i=t(90569),s=t.n(i),c=t(3565),u=t.n(c),d=t(19216),p=t.n(d),m=t(44589),f=t.n(m),b=t(72035),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();r()(b.Z,g),b.Z&&b.Z.locals&&b.Z.locals},88291:(e,n,t)=>{"use strict";function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(n,{Z:()=>_objectDestructuringEmpty})}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 7145.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7145,2602,8291],{65526:(e,n,t)=>{"use strict";var o=t(65807);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,n,t,r,a,l){if(l!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},36653:(e,n,t)=>{e.exports=t(65526)()},65807:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},59165:(e,n,t)=>{"use strict";t.d(n,{_l:()=>l,gc:()=>JsonView});var o=t(87363);const isDate=e=>!!e&&e instanceof Date;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:r,lastElement:a,openBracket:l,closeBracket:i,level:s,style:c,shouldExpandNode:d,clickToExpandNode:u,outerRef:p}=e;const m=(0,o.useRef)(!1),[f,b,g]=function useBool(e){const[n,t]=(0,o.useState)(e());return[n,()=>t((e=>!e)),t]}((()=>d(s,t,n))),h=(0,o.useRef)(null);(0,o.useEffect)((()=>{m.current?g(d(s,t,n)):m.current=!0}),[d]);const x=f?c.collapseIcon:c.expandIcon,y=f?"collapse JSON":"expand JSON",v=(0,o.useId)(),_=s+1,E=r.length-1,onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),g("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let o=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){o=e;break}if(o<0)return;const r=(o+n+t.length)%t.length;t[o].tabIndex=-1,t[r].tabIndex=0,t[r].focus()}},onClick=()=>{var e;b();const n=h.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,o.createElement)("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":f,"aria-selected":void 0},(0,o.createElement)("span",{className:x,onClick,onKeyDown,role:"button","aria-label":y,"aria-expanded":f,"aria-controls":f?v:void 0,ref:h,tabIndex:0===s?0:-1}),(n||""===n)&&(u?(0,o.createElement)("span",{className:c.clickableLabel,onClick,onKeyDown},quoteString(n,c.quotesForFieldNames),":"):(0,o.createElement)("span",{className:c.label},quoteString(n,c.quotesForFieldNames),":")),(0,o.createElement)("span",{className:c.punctuation},l),f?(0,o.createElement)("ul",{id:v,role:"group"},r.map(((e,n)=>(0,o.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:c,lastElement:n===E,level:_,shouldExpandNode:d,clickToExpandNode:u,outerRef:p})))):(0,o.createElement)("span",{className:c.collapsedContent,onClick,onKeyDown}),(0,o.createElement)("span",{className:c.punctuation},i),!a&&(0,o.createElement)("span",{className:c.punctuation},","))}function EmptyObject(e){let{field:n,openBracket:t,closeBracket:r,lastElement:a,style:l}=e;return(0,o.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,o.createElement)("span",{className:l.label},quoteString(n,l.quotesForFieldNames),":"),(0,o.createElement)("span",{className:l.punctuation},t),(0,o.createElement)("span",{className:l.punctuation},r),!a&&(0,o.createElement)("span",{className:l.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:o,lastElement:r,shouldExpandNode:a,clickToExpandNode:l,level:i,outerRef:s}=e;return 0===Object.keys(t).length?EmptyObject({field:n,openBracket:"{",closeBracket:"}",lastElement:r,style:o}):ExpandableObject({field:n,value:t,lastElement:r||!1,level:i,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:a,clickToExpandNode:l,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s})}function JsonArray(e){let{field:n,value:t,style:o,lastElement:r,level:a,shouldExpandNode:l,clickToExpandNode:i,outerRef:s}=e;return 0===t.length?EmptyObject({field:n,openBracket:"[",closeBracket:"]",lastElement:r,style:o}):ExpandableObject({field:n,value:t,lastElement:r||!1,level:a,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:l,clickToExpandNode:i,data:t.map((e=>[void 0,e])),outerRef:s})}function JsonPrimitiveValue(e){let n,{field:t,value:r,style:a,lastElement:l}=e,i=a.otherValue;var s;return null===r?(n="null",i=a.nullValue):void 0===r?(n="undefined",i=a.undefinedValue):"string"==typeof(s=r)||s instanceof String?(n=quoteString(r,!a.noQuotesForStringValues),i=a.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(r)?(n=r?"true":"false",i=a.booleanValue):(e=>"number"==typeof e||e instanceof Number)(r)?(n=r.toString(),i=a.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(r)?(n=`${r.toString()}n`,i=a.numberValue):n=isDate(r)?r.toISOString():r.toString(),(0,o.createElement)("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,o.createElement)("span",{className:a.label},quoteString(t,a.quotesForFieldNames),":"),(0,o.createElement)("span",{className:i},n),!l&&(0,o.createElement)("span",{className:a.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,o.createElement)(JsonArray,Object.assign({},e)):(e=>e instanceof Object&&null!==e)(n)&&!isDate(n)?(0,o.createElement)(JsonObject,Object.assign({},e)):(0,o.createElement)(JsonPrimitiveValue,Object.assign({},e));var t}var r="_2bkNM";const a={container:"_2IvMF _GzYRV",basicChildStyle:r,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},l={container:"_11RoI _GzYRV",basicChildStyle:r,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=a,shouldExpandNode:r=allExpanded,clickToExpandNode:l=!1,...i}=e;const s=(0,o.useRef)(null);return(0,o.createElement)("div",Object.assign({"aria-label":"JSON view"},i,{className:t.container,ref:s,role:"tree"}),(0,o.createElement)(DataRender,{value:n,style:t,lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:l,outerRef:s}))}},70029:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>I});var o=t(80248),r=t(84658),a=t(34988),l=t(88291),i=t(50747),s=t.n(i),c=t(87363),d=t(51203),u=t(93379),p=t.n(u),m=t(7795),f=t.n(m),b=t(90569),g=t.n(b),h=t(3565),x=t.n(h),y=t(19216),v=t.n(y),_=t(44589),E=t.n(_),N=t(69288),k={};k.styleTagTransform=E(),k.setAttributes=x(),k.insert=g().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=v();p()(N.ZP,k);N.ZP&&N.ZP.locals&&N.ZP.locals;var w=t(76189),S=t(9420),j=t(65515),F=t.n(j),O=t(88683),P=(t(76839),t(13222)),T=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const I=(0,S.Pi)((function PriceAnalyzer(e){var n=Object.assign({},((0,l.Z)(e),e)),t=(0,w.NP)(),o=t.divaWebPlanner.getDivaArticles(),i=(0,c.useState)(!1),u=(0,a.Z)(i,2),p=u[0],m=u[1];(0,c.useEffect)((function(){var e=function(){var e=(0,r.Z)(s().mark((function _callee(){return s().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.DivaUtils.Sleep(1e3);case 2:m(!p);case 3:case"end":return e.stop()}}),_callee)})));return function asyncFunct(){return e.apply(this,arguments)}}();e()}),[t.tabGroupState.allTabGroups]),(0,c.useEffect)((function(){var e=t.divaWebPlanner.actSet();return e&&!e.logDecisions&&(e.logDecisions=!0),function(){var e=t.divaWebPlanner.actSet();e&&(e.logDecisions=!1)}}),[t.uiState.isLoading]);var f=Object.values(null!=o?o:{}).find((function(e){return 1==e.posNr})),b=(0,c.useState)(),g=(0,a.Z)(b,2),h=g[0],x=g[1],y=(0,c.useState)(),v=(0,a.Z)(y,2),_=v[0],E=v[1];if(!f)return(0,T.jsx)("div",_objectSpread(_objectSpread({},n),{},{className:F()(n.className,N.fm),style:{zIndex:800},children:(0,T.jsx)("a",{className:N.Fs,children:"Price analyzer - plann article"})}));var k=f.CatalogData.isIDMFormat,S=Object.values(f.decisionDebugStacks).findLast((function(e){return e})),j=null==S?void 0:S.prices;if(!j)return(0,T.jsx)("div",_objectSpread(_objectSpread({},n),{},{className:F()(n.className,N.fm),style:{zIndex:800},children:(0,T.jsx)("a",{className:N.Fs,children:"Price analyzer - change config"})}));return k?j?(0,T.jsxs)("div",_objectSpread(_objectSpread({},n),{},{className:F()(n.className,N.fm,t.uiState.configSettingsIsExpanded?d.NF:void 0),children:[(0,T.jsxs)("a",{className:N.Fs,children:["Price history",(0,T.jsx)("input",{value:_,onChange:function onChange(e){return E(e.target.value)},placeholder:"filter option ohne OPT",className:N.hX})]}),(0,T.jsxs)("div",{children:[(0,T.jsxs)("table",{className:N.Kz,children:[(0,T.jsx)("thead",{children:(0,T.jsx)("tr",{className:N.$Q,children:(0,T.jsx)("th",{children:1})})}),(0,T.jsx)("tbody",{children:j.map((function(e,n){return(0,T.jsx)("tr",{className:N.$Q,children:(0,T.jsx)("th",{onClick:function onClick(){return function onClick(e,n){var t;e==(null==h||null===(t=h.priceFeatureGroup)||void 0===t?void 0:t.priceFeatureGroupNo)?x(void 0):x(n)}(e.nr,e)},children:e.text})},n)}))})]}),h&&(0,T.jsx)("div",{className:N.EC,children:(0,T.jsx)(P.default,{decision:h.priceFeatureGroup,anyData:{prices:f.catalogArticle.idmPrices,variantData:h.variantValues},onClose:function onClose(){return x(void 0)}})})]})]})):(0,T.jsx)(T.Fragment,{children:" "}):(0,T.jsx)(T.Fragment,{children:"only implemented for IDM enricher data"})}))},69288:(e,n,t)=>{"use strict";t.d(n,{$Q:()=>c,EC:()=>p,Fs:()=>u,Kz:()=>i,ZP:()=>m,fm:()=>d,hX:()=>s});var o=t(8081),r=t.n(o),a=t(23645),l=t.n(a)()(r());l.push([e.id,".index-module--TMuWx {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.index-module--YulNJ {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--TMuWx thead {\n font-weight: bold !important;\n}\n\n.index-module--TMuWx thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--aAXou {\n text-align: left;\n}\n.index-module--aAXou:first-child {\n height: 20px;\n}\n\n.index-module--aAXou th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--gR4ES {\n overflow: auto;\n left: 50px;\n height: 100%;\n}\n.index-module--E6gUV {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--FCFmD {\n z-index: 100;\n position: fixed;\n top: 60px;\n right: 0px;\n z-index: 100000;\n width: 800px;\n height: calc(100vh - 60px);\n background-color: #fff;\n overflow: auto;\n}\n\n.index-module--aeMhl {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.index-module--NUFfA {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--sd0v0 {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--YZIPe {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--YZIPe th,\n.index-module--YZIPe td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--YZIPe th {\n background-color: #f2f2f2;\n}\n",""]);var i="index-module--TMuWx",s="index-module--YulNJ",c="index-module--aAXou",d="index-module--gR4ES",u="index-module--E6gUV",p="index-module--FCFmD";const m=l},89965:(e,n,t)=>{"use strict";t.d(n,{NF:()=>s,ZP:()=>d,ec:()=>i,pb:()=>c});var o=t(8081),r=t.n(o),a=t(23645),l=t.n(a)()(r());l.push([e.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var i="index-module--NA4Nc",s="index-module--zxgl3",c="index-module--WGNyK";const d=l},72035:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var o=t(8081),r=t.n(o),a=t(23645),l=t.n(a)()(r());l.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const i=l},51203:(e,n,t)=>{"use strict";t.d(n,{NF:()=>b.NF,ec:()=>b.ec,pb:()=>b.pb});var o=t(93379),r=t.n(o),a=t(7795),l=t.n(a),i=t(90569),s=t.n(i),c=t(3565),d=t.n(c),u=t(19216),p=t.n(u),m=t(44589),f=t.n(m),b=t(89965),g={};g.styleTagTransform=f(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();r()(b.ZP,g),b.ZP&&b.ZP.locals&&b.ZP.locals},76839:(e,n,t)=>{"use strict";var o=t(93379),r=t.n(o),a=t(7795),l=t.n(a),i=t(90569),s=t.n(i),c=t(3565),d=t.n(c),u=t(19216),p=t.n(u),m=t(44589),f=t.n(m),b=t(72035),g={};g.styleTagTransform=f(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();r()(b.Z,g),b.Z&&b.Z.locals&&b.Z.locals},88291:(e,n,t)=>{"use strict";function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(n,{Z:()=>_objectDestructuringEmpty})}}]);
|
|
2
|
+
(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7145,2602,8291],{65526:(e,n,t)=>{"use strict";var a=t(65807);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,n,t,o,r,l){if(l!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},36653:(e,n,t)=>{e.exports=t(65526)()},65807:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},59165:(e,n,t)=>{"use strict";t.d(n,{_l:()=>s,gc:()=>JsonView});var a=t(87363);const isDate=e=>!!e&&e instanceof Date,isObject=e=>"object"==typeof e&&null!==e,isFunction=e=>!!e&&e instanceof Object&&"function"==typeof e;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:o,lastElement:r,openBracket:l,closeBracket:i,level:s,style:c,shouldExpandNode:d,clickToExpandNode:u,outerRef:p,beforeExpandChange:m}=e;const f=(0,a.useRef)(!1),[b,g]=(0,a.useState)((()=>d(s,t,n))),h=(0,a.useRef)(null);(0,a.useEffect)((()=>{f.current?g(d(s,t,n)):f.current=!0}),[d]);const x=(0,a.useId)();if(0===o.length)return function EmptyObject(e){let{field:n,openBracket:t,closeBracket:o,lastElement:r,style:l}=e;return(0,a.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,a.createElement)("span",{className:l.label},quoteString(n,l.quotesForFieldNames),":"),(0,a.createElement)("span",{className:l.punctuation},t),(0,a.createElement)("span",{className:l.punctuation},o),!r&&(0,a.createElement)("span",{className:l.punctuation},","))}({field:n,openBracket:l,closeBracket:i,lastElement:r,style:c});const y=b?c.collapseIcon:c.expandIcon,v=b?c.ariaLables.collapseJson:c.ariaLables.expandJson,_=s+1,E=o.length-1,setExpandWithCallback=e=>{b===e||m&&!m({level:s,value:t,field:n,newExpandValue:e})||g(e)},onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),setExpandWithCallback("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let a=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){a=e;break}if(a<0)return;const o=(a+n+t.length)%t.length;t[a].tabIndex=-1,t[o].tabIndex=0,t[o].focus()}},onClick=()=>{var e;setExpandWithCallback(!b);const n=h.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,a.createElement)("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":b,"aria-selected":void 0},(0,a.createElement)("span",{className:y,onClick,onKeyDown,role:"button","aria-label":v,"aria-expanded":b,"aria-controls":b?x:void 0,ref:h,tabIndex:0===s?0:-1}),(n||""===n)&&(u?(0,a.createElement)("span",{className:c.clickableLabel,onClick,onKeyDown},quoteString(n,c.quotesForFieldNames),":"):(0,a.createElement)("span",{className:c.label},quoteString(n,c.quotesForFieldNames),":")),(0,a.createElement)("span",{className:c.punctuation},l),b?(0,a.createElement)("ul",{id:x,role:"group",className:c.childFieldsContainer},o.map(((e,n)=>(0,a.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:c,lastElement:n===E,level:_,shouldExpandNode:d,clickToExpandNode:u,beforeExpandChange:m,outerRef:p})))):(0,a.createElement)("span",{className:c.collapsedContent,onClick,onKeyDown}),(0,a.createElement)("span",{className:c.punctuation},i),!r&&(0,a.createElement)("span",{className:c.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:a,lastElement:o,shouldExpandNode:r,clickToExpandNode:l,level:i,outerRef:s,beforeExpandChange:c}=e;return ExpandableObject({field:n,value:t,lastElement:o||!1,level:i,openBracket:"{",closeBracket:"}",style:a,shouldExpandNode:r,clickToExpandNode:l,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s,beforeExpandChange:c})}function JsonArray(e){let{field:n,value:t,style:a,lastElement:o,level:r,shouldExpandNode:l,clickToExpandNode:i,outerRef:s,beforeExpandChange:c}=e;return ExpandableObject({field:n,value:t,lastElement:o||!1,level:r,openBracket:"[",closeBracket:"]",style:a,shouldExpandNode:l,clickToExpandNode:i,data:t.map((e=>[void 0,e])),outerRef:s,beforeExpandChange:c})}function JsonPrimitiveValue(e){let n,{field:t,value:o,style:r,lastElement:l}=e,i=r.otherValue;var s;return null===o?(n="null",i=r.nullValue):void 0===o?(n="undefined",i=r.undefinedValue):"string"==typeof(s=o)||s instanceof String?(n=function quoteStringValue(e,n,t){return t?JSON.stringify(e):n?`"${e}"`:e}(o,!r.noQuotesForStringValues,r.stringifyStringValues),i=r.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(o)?(n=o?"true":"false",i=r.booleanValue):(e=>"number"==typeof e||e instanceof Number)(o)?(n=o.toString(),i=r.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(o)?(n=`${o.toString()}n`,i=r.numberValue):n=isDate(o)?o.toISOString():isFunction(o)?"function() { }":o.toString(),(0,a.createElement)("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,a.createElement)("span",{className:r.label},quoteString(t,r.quotesForFieldNames),":"),(0,a.createElement)("span",{className:i},n),!l&&(0,a.createElement)("span",{className:r.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,a.createElement)(JsonArray,Object.assign({},e)):!isObject(n)||isDate(n)||isFunction(n)?(0,a.createElement)(JsonPrimitiveValue,Object.assign({},e)):(0,a.createElement)(JsonObject,Object.assign({},e));var t}var o="_2bkNM",r="_1BXBN";const l={collapseJson:"collapse JSON",expandJson:"expand JSON"},i={container:"_2IvMF _GzYRV",basicChildStyle:o,childFieldsContainer:r,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:l,stringifyStringValues:!1},s={container:"_11RoI _GzYRV",basicChildStyle:o,childFieldsContainer:r,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:l,stringifyStringValues:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=i,shouldExpandNode:o=allExpanded,clickToExpandNode:r=!1,beforeExpandChange:l,compactTopLevel:s,...c}=e;const d=(0,a.useRef)(null);return(0,a.createElement)("div",Object.assign({"aria-label":"JSON view"},c,{className:t.container,ref:d,role:"tree"}),s&&isObject(n)?Object.entries(n).map((e=>{let[n,s]=e;return(0,a.createElement)(DataRender,{key:n,field:n,value:s,style:{...i,...t},lastElement:!0,level:1,shouldExpandNode:o,clickToExpandNode:r,beforeExpandChange:l,outerRef:d})})):(0,a.createElement)(DataRender,{value:n,style:{...i,...t},lastElement:!0,level:0,shouldExpandNode:o,clickToExpandNode:r,outerRef:d,beforeExpandChange:l}))}},70029:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>T});var a=t(80248),o=t(84658),r=t(34988),l=t(88291),i=t(50747),s=t.n(i),c=t(87363),d=t(51203),u=t(93379),p=t.n(u),m=t(7795),f=t.n(m),b=t(90569),g=t.n(b),h=t(3565),x=t.n(h),y=t(19216),v=t.n(y),_=t(44589),E=t.n(_),N=t(69288),k={};k.styleTagTransform=E(),k.setAttributes=x(),k.insert=g().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=v();p()(N.ZP,k);N.ZP&&N.ZP.locals&&N.ZP.locals;var w=t(76189),S=t(9420),j=t(65515),F=t.n(j),O=t(88683),C=(t(76839),t(13222)),P=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const T=(0,S.Pi)((function PriceAnalyzer(e){var n=Object.assign({},((0,l.Z)(e),e)),t=(0,w.NP)(),a=t.divaWebPlanner.getDivaArticles(),i=(0,c.useState)(!1),u=(0,r.Z)(i,2),p=u[0],m=u[1];(0,c.useEffect)((function(){var e=function(){var e=(0,o.Z)(s().mark((function _callee(){return s().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.DivaUtils.Sleep(1e3);case 2:m(!p);case 3:case"end":return e.stop()}}),_callee)})));return function asyncFunct(){return e.apply(this,arguments)}}();e()}),[t.tabGroupState.allTabGroups]),(0,c.useEffect)((function(){var e=t.divaWebPlanner.actSet();return e&&!e.logDecisions&&(e.logDecisions=!0),function(){var e=t.divaWebPlanner.actSet();e&&(e.logDecisions=!1)}}),[t.uiState.isLoading]);var f=Object.values(null!=a?a:{}).find((function(e){return 1==e.posNr})),b=(0,c.useState)(),g=(0,r.Z)(b,2),h=g[0],x=g[1],y=(0,c.useState)(),v=(0,r.Z)(y,2),_=v[0],E=v[1];if(!f)return(0,P.jsx)("div",_objectSpread(_objectSpread({},n),{},{className:F()(n.className,N.fm),style:{zIndex:800},children:(0,P.jsx)("a",{className:N.Fs,children:"Price analyzer - plann article"})}));var k=f.CatalogData.isIDMFormat,S=Object.values(f.decisionDebugStacks).findLast((function(e){return e})),j=null==S?void 0:S.prices;if(!j)return(0,P.jsx)("div",_objectSpread(_objectSpread({},n),{},{className:F()(n.className,N.fm),style:{zIndex:800},children:(0,P.jsx)("a",{className:N.Fs,children:"Price analyzer - change config"})}));return k?j?(0,P.jsxs)("div",_objectSpread(_objectSpread({},n),{},{className:F()(n.className,N.fm,t.uiState.configSettingsIsExpanded?d.NF:void 0),children:[(0,P.jsxs)("a",{className:N.Fs,children:["Price history",(0,P.jsx)("input",{value:_,onChange:function onChange(e){return E(e.target.value)},placeholder:"filter option ohne OPT",className:N.hX})]}),(0,P.jsxs)("div",{children:[(0,P.jsxs)("table",{className:N.Kz,children:[(0,P.jsx)("thead",{children:(0,P.jsx)("tr",{className:N.$Q,children:(0,P.jsx)("th",{children:1})})}),(0,P.jsx)("tbody",{children:j.map((function(e,n){return(0,P.jsx)("tr",{className:N.$Q,children:(0,P.jsx)("th",{onClick:function onClick(){return function onClick(e,n){var t;e==(null==h||null===(t=h.priceFeatureGroup)||void 0===t?void 0:t.priceFeatureGroupNo)?x(void 0):x(n)}(e.nr,e)},children:e.text})},n)}))})]}),h&&(0,P.jsx)("div",{className:N.EC,children:(0,P.jsx)(C.default,{decision:h.priceFeatureGroup,anyData:{prices:f.catalogArticle.idmPrices,variantData:h.variantValues},onClose:function onClose(){return x(void 0)}})})]})]})):(0,P.jsx)(P.Fragment,{children:" "}):(0,P.jsx)(P.Fragment,{children:"only implemented for IDM enricher data"})}))},69288:(e,n,t)=>{"use strict";t.d(n,{$Q:()=>c,EC:()=>p,Fs:()=>u,Kz:()=>i,ZP:()=>m,fm:()=>d,hX:()=>s});var a=t(8081),o=t.n(a),r=t(23645),l=t.n(r)()(o());l.push([e.id,".index-module--TMuWx {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.index-module--YulNJ {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--TMuWx thead {\n font-weight: bold !important;\n}\n\n.index-module--TMuWx thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--aAXou {\n text-align: left;\n}\n.index-module--aAXou:first-child {\n height: 20px;\n}\n\n.index-module--aAXou th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--gR4ES {\n overflow: auto;\n left: 50px;\n height: 100%;\n}\n.index-module--E6gUV {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--FCFmD {\n z-index: 100;\n position: fixed;\n top: 60px;\n right: 0px;\n z-index: 100000;\n width: 800px;\n height: calc(100vh - 60px);\n background-color: #fff;\n overflow: auto;\n}\n\n.index-module--aeMhl {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.index-module--NUFfA {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--sd0v0 {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--YZIPe {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--YZIPe th,\n.index-module--YZIPe td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--YZIPe th {\n background-color: #f2f2f2;\n}\n",""]);var i="index-module--TMuWx",s="index-module--YulNJ",c="index-module--aAXou",d="index-module--gR4ES",u="index-module--E6gUV",p="index-module--FCFmD";const m=l},89965:(e,n,t)=>{"use strict";t.d(n,{NF:()=>s,ZP:()=>d,ec:()=>i,pb:()=>c});var a=t(8081),o=t.n(a),r=t(23645),l=t.n(r)()(o());l.push([e.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var i="index-module--NA4Nc",s="index-module--zxgl3",c="index-module--WGNyK";const d=l},72035:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var a=t(8081),o=t.n(a),r=t(23645),l=t.n(r)()(o());l.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const i=l},51203:(e,n,t)=>{"use strict";t.d(n,{NF:()=>b.NF,ec:()=>b.ec,pb:()=>b.pb});var a=t(93379),o=t.n(a),r=t(7795),l=t.n(r),i=t(90569),s=t.n(i),c=t(3565),d=t.n(c),u=t(19216),p=t.n(u),m=t(44589),f=t.n(m),b=t(89965),g={};g.styleTagTransform=f(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();o()(b.ZP,g),b.ZP&&b.ZP.locals&&b.ZP.locals},76839:(e,n,t)=>{"use strict";var a=t(93379),o=t.n(a),r=t(7795),l=t.n(r),i=t(90569),s=t.n(i),c=t(3565),d=t.n(c),u=t(19216),p=t.n(u),m=t(44589),f=t.n(m),b=t(72035),g={};g.styleTagTransform=f(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();o()(b.Z,g),b.Z&&b.Z.locals&&b.Z.locals},88291:(e,n,t)=>{"use strict";function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(n,{Z:()=>_objectDestructuringEmpty})}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 7415.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7415,2004,2602,2654,8317,1138,7943,8345],{65526:(r,m,y)=>{"use strict";var v=y(65807);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,r.exports=function(){function shim(r,m,y,x,C,w){if(w!==v){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}}function getShim(){return shim}shim.isRequired=shim;var r={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return r.PropTypes=r,r}},36653:(r,m,y)=>{r.exports=y(65526)()},65807:r=>{"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},57446:function(r,m,y){var v;r.exports=(v=y(87363),function(r){var m={};function n(y){if(m[y])return m[y].exports;var v=m[y]={i:y,l:!1,exports:{}};return r[y].call(v.exports,v,v.exports,n),v.l=!0,v.exports}return n.m=r,n.c=m,n.d=function(r,m,y){n.o(r,m)||Object.defineProperty(r,m,{enumerable:!0,get:y})},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,m){if(1&m&&(r=n(r)),8&m)return r;if(4&m&&"object"==typeof r&&r&&r.__esModule)return r;var y=Object.create(null);if(n.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:r}),2&m&&"string"!=typeof r)for(var v in r)n.d(y,v,function(m){return r[m]}.bind(null,v));return y},n.n=function(r){var m=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(m,"a",m),m},n.o=function(r,m){return Object.prototype.hasOwnProperty.call(r,m)},n.p="",n(n.s=4)}([function(r,m,y){r.exports=y(2)()},function(r,m){r.exports=v},function(r,m,y){"use strict";var v=y(3);function o(){}function i(){}i.resetWarningCache=o,r.exports=function(){function e(r,m,y,x,C,w){if(w!==v){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},function(r,m,y){"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(r,m,y){"use strict";y.r(m);var v=y(1),x=y.n(v),C=y(0),w=y.n(C),a=function(r){return 0!==r};function l(){return(l=Object.assign?Object.assign.bind():function(r){for(var m=1;m<arguments.length;m++){var y=arguments[m];for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(r[v]=y[v])}return r}).apply(this,arguments)}function c(r){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function p(r,m){for(var y=0;y<m.length;y++){var v=m[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(r,v.key,v)}}function u(r,m){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,m){return r.__proto__=m,r})(r,m)}function g(r){var m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}();return function(){var y,v=d(r);if(m){var x=d(this).constructor;y=Reflect.construct(v,arguments,x)}else y=v.apply(this,arguments);return f(this,y)}}function f(r,m){if(m&&("object"===c(m)||"function"==typeof m))return m;if(void 0!==m)throw new TypeError("Derived constructors may only return object or undefined");return h(r)}function h(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function d(r){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function b(r,m,y){return m in r?Object.defineProperty(r,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):r[m]=y,r}var O=function(r){!function(r,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(m&&m.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),m&&u(r,m)}(s,r);var m,y,v,C=g(s);function s(r){var m;return function(r,m){if(!(r instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),b(h(m=C.call(this,r)),"continueOpenCollapsible",(function(){var r=h(m).innerRef;m.setState({height:r.scrollHeight,transition:"height ".concat(m.props.transitionTime,"ms ").concat(m.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:a(r.scrollHeight),shouldOpenOnNextCycle:!1})})),b(h(m),"handleTriggerClick",(function(r){m.props.triggerDisabled||m.state.inTransition||(r.preventDefault(),m.props.handleTriggerClick?m.props.handleTriggerClick(m.props.accordionPosition):!0===m.state.isClosed?(m.openCollapsible(),m.props.onOpening(),m.props.onTriggerOpening()):(m.closeCollapsible(),m.props.onClosing(),m.props.onTriggerClosing()))})),b(h(m),"handleTransitionEnd",(function(r){r.target===m.innerRef&&(m.state.isClosed?(m.setState({inTransition:!1}),m.props.onClose()):(m.setState({height:"auto",overflow:m.props.overflowWhenOpen,inTransition:!1}),m.props.onOpen()))})),b(h(m),"setInnerRef",(function(r){return m.innerRef=r})),m.timeout=void 0,m.contentId=r.contentElementId||"collapsible-content-".concat(Date.now()),m.triggerId=r.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),r.open?m.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:r.overflowWhenOpen,inTransition:!1}:m.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(r.transitionTime,"ms ").concat(r.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},m}return m=s,(y=[{key:"componentDidUpdate",value:function(r,m){var y=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),"auto"!==m.height&&0!==m.height||!0!==this.state.shouldSwitchAutoOnNextCycle||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){y.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})}),50)),r.open!==this.props.open&&(!0===this.props.open?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var r=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:r.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:a(r.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:a(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var r=this.props,m=r.triggerSibling,y=r.classParentString;if(!m)return null;switch(c(m)){case"string":return x.a.createElement("span",{className:"".concat(y,"__trigger-sibling")},m);case"function":return m();case"object":return m;default:return null}}},{key:"render",value:function(){var r=this,m={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},y=this.state.isClosed?"is-closed":"is-open",v=this.props.triggerDisabled?"is-disabled":"",C=!1===this.state.isClosed&&void 0!==this.props.triggerWhenOpen?this.props.triggerWhenOpen:this.props.trigger,w=this.props.contentContainerTagName,O=this.props.triggerTagName,S=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,N=this.props,k=N.classParentString,j=N.contentOuterClassName,E=N.contentInnerClassName,T="".concat(k,"__trigger ").concat(y," ").concat(v," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),P="".concat(k," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),_="".concat(k,"__contentOuter ").concat(j),D="".concat(k,"__contentInner ").concat(E);return x.a.createElement(w,l({className:P.trim()},this.props.containerElementProps),x.a.createElement(O,l({id:this.triggerId,className:T.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(m){var y=m.key;(" "===y&&"button"!==r.props.triggerTagName.toLowerCase()||"Enter"===y)&&r.handleTriggerClick(m)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),C),this.renderNonClickableTriggerElement(),x.a.createElement("div",{id:this.contentId,className:_.trim(),style:m,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},x.a.createElement("div",{className:D.trim()},S)))}}])&&p(m.prototype,y),v&&p(m,v),Object.defineProperty(m,"prototype",{writable:!1}),s}(v.Component);O.propTypes={transitionTime:w.a.number,transitionCloseTime:w.a.number,triggerTagName:w.a.string,easing:w.a.string,open:w.a.bool,containerElementProps:w.a.object,triggerElementProps:w.a.object,contentElementId:w.a.string,classParentString:w.a.string,className:w.a.string,openedClassName:w.a.string,triggerStyle:w.a.object,triggerClassName:w.a.string,triggerOpenedClassName:w.a.string,contentOuterClassName:w.a.string,contentInnerClassName:w.a.string,accordionPosition:w.a.oneOfType([w.a.string,w.a.number]),handleTriggerClick:w.a.func,onOpen:w.a.func,onClose:w.a.func,onOpening:w.a.func,onClosing:w.a.func,onTriggerOpening:w.a.func,onTriggerClosing:w.a.func,trigger:w.a.oneOfType([w.a.string,w.a.element]),triggerWhenOpen:w.a.oneOfType([w.a.string,w.a.element]),triggerDisabled:w.a.bool,lazyRender:w.a.bool,overflowWhenOpen:w.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:w.a.bool,triggerSibling:w.a.oneOfType([w.a.string,w.a.element,w.a.func]),tabIndex:w.a.number,contentContainerTagName:w.a.string,children:w.a.oneOfType([w.a.string,w.a.element])},O.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},m.default=O}]))},59165:(r,m,y)=>{"use strict";y.d(m,{_l:()=>w,gc:()=>JsonView});var v=y(87363);const isDate=r=>!!r&&r instanceof Date;function quoteString(r,m){return void 0===m&&(m=!1),!r||m?`"${r}"`:r}function ExpandableObject(r){let{field:m,value:y,data:x,lastElement:C,openBracket:w,closeBracket:O,level:S,style:N,shouldExpandNode:k,clickToExpandNode:j,outerRef:E}=r;const T=(0,v.useRef)(!1),[P,_,D]=function useBool(r){const[m,y]=(0,v.useState)(r());return[m,()=>y((r=>!r)),y]}((()=>k(S,y,m))),I=(0,v.useRef)(null);(0,v.useEffect)((()=>{T.current?D(k(S,y,m)):T.current=!0}),[k]);const R=P?N.collapseIcon:N.expandIcon,A=P?"collapse JSON":"expand JSON",M=(0,v.useId)(),F=S+1,W=x.length-1,onKeyDown=r=>{if("ArrowRight"===r.key||"ArrowLeft"===r.key)r.preventDefault(),D("ArrowRight"===r.key);else if("ArrowUp"===r.key||"ArrowDown"===r.key){r.preventDefault();const m="ArrowUp"===r.key?-1:1;if(!E.current)return;const y=E.current.querySelectorAll("[role=button]");let v=-1;for(let r=0;r<y.length;r++)if(0===y[r].tabIndex){v=r;break}if(v<0)return;const x=(v+m+y.length)%y.length;y[v].tabIndex=-1,y[x].tabIndex=0,y[x].focus()}},onClick=()=>{var r;_();const m=I.current;if(!m)return;const y=null===(r=E.current)||void 0===r?void 0:r.querySelector('[role=button][tabindex="0"]');y&&(y.tabIndex=-1),m.tabIndex=0,m.focus()};return(0,v.createElement)("div",{className:N.basicChildStyle,role:"treeitem","aria-expanded":P,"aria-selected":void 0},(0,v.createElement)("span",{className:R,onClick,onKeyDown,role:"button","aria-label":A,"aria-expanded":P,"aria-controls":P?M:void 0,ref:I,tabIndex:0===S?0:-1}),(m||""===m)&&(j?(0,v.createElement)("span",{className:N.clickableLabel,onClick,onKeyDown},quoteString(m,N.quotesForFieldNames),":"):(0,v.createElement)("span",{className:N.label},quoteString(m,N.quotesForFieldNames),":")),(0,v.createElement)("span",{className:N.punctuation},w),P?(0,v.createElement)("ul",{id:M,role:"group"},x.map(((r,m)=>(0,v.createElement)(DataRender,{key:r[0]||m,field:r[0],value:r[1],style:N,lastElement:m===W,level:F,shouldExpandNode:k,clickToExpandNode:j,outerRef:E})))):(0,v.createElement)("span",{className:N.collapsedContent,onClick,onKeyDown}),(0,v.createElement)("span",{className:N.punctuation},O),!C&&(0,v.createElement)("span",{className:N.punctuation},","))}function EmptyObject(r){let{field:m,openBracket:y,closeBracket:x,lastElement:C,style:w}=r;return(0,v.createElement)("div",{className:w.basicChildStyle,role:"treeitem","aria-selected":void 0},(m||""===m)&&(0,v.createElement)("span",{className:w.label},quoteString(m,w.quotesForFieldNames),":"),(0,v.createElement)("span",{className:w.punctuation},y),(0,v.createElement)("span",{className:w.punctuation},x),!C&&(0,v.createElement)("span",{className:w.punctuation},","))}function JsonObject(r){let{field:m,value:y,style:v,lastElement:x,shouldExpandNode:C,clickToExpandNode:w,level:O,outerRef:S}=r;return 0===Object.keys(y).length?EmptyObject({field:m,openBracket:"{",closeBracket:"}",lastElement:x,style:v}):ExpandableObject({field:m,value:y,lastElement:x||!1,level:O,openBracket:"{",closeBracket:"}",style:v,shouldExpandNode:C,clickToExpandNode:w,data:Object.keys(y).map((r=>[r,y[r]])),outerRef:S})}function JsonArray(r){let{field:m,value:y,style:v,lastElement:x,level:C,shouldExpandNode:w,clickToExpandNode:O,outerRef:S}=r;return 0===y.length?EmptyObject({field:m,openBracket:"[",closeBracket:"]",lastElement:x,style:v}):ExpandableObject({field:m,value:y,lastElement:x||!1,level:C,openBracket:"[",closeBracket:"]",style:v,shouldExpandNode:w,clickToExpandNode:O,data:y.map((r=>[void 0,r])),outerRef:S})}function JsonPrimitiveValue(r){let m,{field:y,value:x,style:C,lastElement:w}=r,O=C.otherValue;var S;return null===x?(m="null",O=C.nullValue):void 0===x?(m="undefined",O=C.undefinedValue):"string"==typeof(S=x)||S instanceof String?(m=quoteString(x,!C.noQuotesForStringValues),O=C.stringValue):(r=>"boolean"==typeof r||r instanceof Boolean)(x)?(m=x?"true":"false",O=C.booleanValue):(r=>"number"==typeof r||r instanceof Number)(x)?(m=x.toString(),O=C.numberValue):(r=>"bigint"==typeof r||r instanceof BigInt)(x)?(m=`${x.toString()}n`,O=C.numberValue):m=isDate(x)?x.toISOString():x.toString(),(0,v.createElement)("div",{className:C.basicChildStyle,role:"treeitem","aria-selected":void 0},(y||""===y)&&(0,v.createElement)("span",{className:C.label},quoteString(y,C.quotesForFieldNames),":"),(0,v.createElement)("span",{className:O},m),!w&&(0,v.createElement)("span",{className:C.punctuation},","))}function DataRender(r){const m=r.value;return y=m,Array.isArray(y)?(0,v.createElement)(JsonArray,Object.assign({},r)):(r=>r instanceof Object&&null!==r)(m)&&!isDate(m)?(0,v.createElement)(JsonObject,Object.assign({},r)):(0,v.createElement)(JsonPrimitiveValue,Object.assign({},r));var y}var x="_2bkNM";const C={container:"_2IvMF _GzYRV",basicChildStyle:x,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},w={container:"_11RoI _GzYRV",basicChildStyle:x,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=r=>{let{data:m,style:y=C,shouldExpandNode:x=allExpanded,clickToExpandNode:w=!1,...O}=r;const S=(0,v.useRef)(null);return(0,v.createElement)("div",Object.assign({"aria-label":"JSON view"},O,{className:y.container,ref:S,role:"tree"}),(0,v.createElement)(DataRender,{value:m,style:y,lastElement:!0,level:0,shouldExpandNode:x,clickToExpandNode:w,outerRef:S}))}},52654:(r,m,y)=>{"use strict";y.r(m),y.d(m,{default:()=>w});y(87363);var v=y(28317),x=y(9420),C=y(47514);const w=(0,x.Pi)((function AsyncRender(r){var m=r.optionSnapshot,y=r.onClick,x=r.showDiffOnly,w=r.allOpen,O=function use(r){if("fulfilled"===r.status)return r.value;throw"rejected"===r.status?r.reason:("pending"===r.status||(r.status="pending",r.then((function(m){r.status="fulfilled",r.value=m}),(function(m){r.status="rejected",r.reason=m}))),r)}(m.promise);return O?(0,C.jsx)(v.default,{onClick:y,articles:O.articleSnapshot,price:O.price,title:m.title,allOpen:w,showDiffOnly:x,configStepKey:m.key}):(0,C.jsx)(C.Fragment,{})}))},28317:(r,m,y)=>{"use strict";y.r(m),y.d(m,{default:()=>P});var v=y(80248),x=y(34988),C=y(87363),w=y(9420),O=y(93476),S=y(57446),N=y.n(S),k=y(76189),j=y(47514);function ownKeys(r,m){var y=Object.keys(r);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(r);m&&(v=v.filter((function(m){return Object.getOwnPropertyDescriptor(r,m).enumerable}))),y.push.apply(y,v)}return y}function _objectSpread(r){for(var m=1;m<arguments.length;m++){var y=null!=arguments[m]?arguments[m]:{};m%2?ownKeys(Object(y),!0).forEach((function(m){(0,v.Z)(r,m,y[m])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(y)):ownKeys(Object(y)).forEach((function(m){Object.defineProperty(r,m,Object.getOwnPropertyDescriptor(y,m))}))}return r}var E=function getPartlistArticles(r,m){for(var y in r.partlistArticles){var v=r.partlistArticles[y];if(v.hasPartlistArticle)m.push(T(v,!0)),m=E(v,m);else{for(var x=!1,C=0;C<m.length;C++)if(v.articleCodex===m[C].articleCodex&&v.retailArticleNr===m[C].retailArticleNr&&v.retailPrefix===m[C].retailPrefix&&v.catalogCodex===m[C].catalogCodex&&JSON.stringify(v.VariantValues)==JSON.stringify(m[C].VariantValues)){x=!0,m[C].quantity+=v.quantity;break}x||m.push(T(v))}}return m},T=function getPartlsitArticleObj(r,m){var y,v,x,C,w,O,S;return{name:(m?"Hülse: ":"")+r.posNr+" "+r.name,price:m?"---":r.price,retailArticleNr:null!==(y=r.retailArticleNr)&&void 0!==y?y:"",retailPrefix:null!==(v=r.retailPrefix)&&void 0!==v?v:"",quantity:r.quantity,ruleDesc:null!==(x=r.ruleDesc)&&void 0!==x?x:"",articleCodex:r.articleCodex,typeNr:null!==(C=r.typeNr)&&void 0!==C?C:"",catalogCodex:null!==(w=r.catalogCodex)&&void 0!==w?w:"",codex:r.articleCodex,rule:r.ruleDesc,decision:r.partlistDecisionNo?null!==(O=null===(S=r.partListParentArticle)||void 0===S||null===(S=S.catalogArticle.partlistDecisions)||void 0===S?void 0:S["D"+r.partlistDecisionNo])&&void 0!==O?O:r.CatalogData.loadedDecisions.find((function(m){return m.decisionNo===r.partlistDecisionNo})):void 0,partlistRule:r.partlistRule}};const P=(0,w.Pi)((function PartlistTable(r){var m=r.onClick,y=r.articles,v=r.price,w=r.title,S=r.allOpen,T=r.configStepKey,P=r.showDiffOnly,_=(0,C.useState)(),D=(0,x.Z)(_,2),I=D[0],R=D[1],A=(0,k.NP)();return(0,C.useEffect)((function(){var r,m=A.settingsState.partlistArticlesInOverview[T];if((void 0===I||!m||m.totalCount===m.items.length)&&(void 0===I||P)){var v=[];for(var x in y)v=E(y[x],v);P&&m&&m.totalCount===m.items.length&&(v=v.map((function(r){return _objectSpread(_objectSpread({},r),{},{visible:m.items.filter((function(m){return m.articles.find((function(m){return m.plaCodex==r.articleCodex&&r.retailArticleNr==m.retailArticleNr}))})).length!==m.items.length})})));var C=_objectSpread({},A.settingsState.partlistArticlesInOverview);null!==(r=C[T])&&void 0!==r&&r.items&&!C[T].items.find((function(r){return r.opv===w}))&&(C[T].items.push({opv:w,articles:v.map((function(r){return{plaCodex:r.articleCodex,retailArticleNr:r.retailArticleNr,quantity:r.quantity}}))}),A.settingsState.setPartlistArticlesInOverview(C)),R(v)}}),[A.settingsState.partlistArticlesInOverview]),(0,j.jsx)(N(),{trigger:(0,j.jsx)("div",{style:{cursor:"pointer"},children:"Stücklistenartikel: "+(null!=I?I:[]).length+" preis: "+v+" -- "+w}),open:""==w||S,easing:"ease",transitionTime:100,children:(0,j.jsxs)("table",{className:O.Kz,children:[(0,j.jsx)("thead",{children:(0,j.jsxs)("tr",{className:O.$Q,children:[(0,j.jsx)("th",{children:"Name"}),(0,j.jsx)("th",{children:"Artikle Nr."}),(0,j.jsx)("th",{children:"Type Nr."}),(0,j.jsx)("th",{children:"CatalogCodex"}),(0,j.jsx)("th",{children:"Preis"}),(0,j.jsx)("th",{children:"Nr"}),(0,j.jsx)("th",{children:"Prefix"}),(0,j.jsx)("th",{children:"Menge"}),(0,j.jsx)("th",{children:"Rule"}),(0,j.jsx)("th",{children:"decision"})]})}),(0,j.jsx)("tbody",{children:(null!=I?I:[]).filter((function(r){return!P||r.visible||void 0===r.visible})).map((function(r){var y,v,x;return(0,j.jsxs)("tr",{className:O.$Q,children:[(0,j.jsxs)("th",{children:[" ",r.name]}),(0,j.jsxs)("th",{children:[r.articleCodex," "]}),(0,j.jsxs)("th",{children:[r.typeNr," "]}),(0,j.jsxs)("th",{children:[r.catalogCodex," "]}),(0,j.jsxs)("th",{children:[" ",null!==(y=r.price)&&void 0!==y?y:0," "]}),(0,j.jsxs)("th",{children:[" ",r.retailArticleNr," "]}),(0,j.jsxs)("th",{children:[r.retailPrefix," "]}),(0,j.jsxs)("th",{children:[r.quantity," "]}),(0,j.jsx)("th",{children:r.rule}),r.decision&&(0,j.jsx)("th",{onClick:function onClick(){return m({decision:r.decision,rule:r.partlistRule})},children:(null===(v=r.decision)||void 0===v?void 0:v.Number)||(null===(x=r.decision)||void 0===x?void 0:x.decisionNo)})]},r.articleCodex+r.retailArticleNr)}))})]})})}))},97078:(r,m,y)=>{"use strict";y.r(m),y.d(m,{default:()=>A});var v=y(80248),x=y(34988),C=y(72874),w=y(87363),O=y(51203),S=y(93476),N=y(36115),k=y(76189),j=y(9420),E=y(65515),T=y.n(E),P=y(13222),_=y(47943),D=y(52654),I=y(47514),R=["onMouseDown"];function ownKeys(r,m){var y=Object.keys(r);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(r);m&&(v=v.filter((function(m){return Object.getOwnPropertyDescriptor(r,m).enumerable}))),y.push.apply(y,v)}return y}function _objectSpread(r){for(var m=1;m<arguments.length;m++){var y=null!=arguments[m]?arguments[m]:{};m%2?ownKeys(Object(y),!0).forEach((function(m){(0,v.Z)(r,m,y[m])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(y)):ownKeys(Object(y)).forEach((function(m){Object.defineProperty(r,m,Object.getOwnPropertyDescriptor(y,m))}))}return r}const A=(0,j.Pi)((function PartList(r){var m=r.onMouseDown,y=(0,C.Z)(r,R),v=(0,k.NP)(),j=(0,w.useState)(),E=(0,x.Z)(j,2),A=E[0],M=E[1],F=(0,w.useState)(),W=(0,x.Z)(F,2),B=W[0],z=W[1],V=(0,w.useState)(!1),L=(0,x.Z)(V,2),H=L[0],Z=L[1],K=(0,w.useState)(!1),U=(0,x.Z)(K,2),q=U[0],G=U[1],Q=(0,w.useState)(!0),J=(0,x.Z)(Q,2),X=J[0],$=J[1],Y=function onClick(r){var m,y,v=r.decision;(v.decisionNo||v.Number)==((null==A||null===(m=A.decision)||void 0===m?void 0:m.Number)||(null==A||null===(y=A.decision)||void 0===y?void 0:y.decisionNo))?M(void 0):M(r)};(0,w.useEffect)((function(){H?setTimeout((function(){return ee()}),400):z([{snapshots:[{promise:new Promise((function(r){var m,y,x;r({articleSnapshot:null!==(m=v.divaWebPlanner.getDivaArticles())&&void 0!==m?m:{},price:null!==(y=null===(x=v.divaWebPlanner.actSet())||void 0===x?void 0:x.getSetPrice())&&void 0!==y?y:0})})),title:"",key:v.settingsState.configChanged.toString()}]}])}),[v.settingsState.configChanged,v.tabGroupState.curConfigStep]);var ee=function updateVariants(){for(var r=[],m={},y=v.settingsState.itemPaletteArr.filter((function(r){return r[1].visible})).map((function(r){return{items:r[1].groups.flatMap((function(r){return r.items.flatMap((function(r){return r}))})),palette:r[1]}})),x=0;x<y.length;x++){for(var C=y[x].items,w=y[x].palette,O=[],S=0;S<C.length;S++){var N=C[S];N.pricePreviewPromise&&(N.text||N.name)&&O.push({promise:N.pricePreviewPromise.promise,title:N.text||N.name,key:w.configStepKey})}m[w.configStepKey]={items:[],totalCount:C.length},r.push({snapshots:O,palette:w})}v.settingsState.setPartlistArticlesInOverview(m),z(r)};return(0,w.useEffect)((function(){var r=v.divaWebPlanner.actSet();r&&(r.logTotalStateForVariants=H)}),[H]),null!=B&&B.length?(0,I.jsxs)("div",_objectSpread(_objectSpread({},y),{},{className:T()(y.className,S.fm,v.uiState.configSettingsIsExpanded?O.NF:void 0),style:{zIndex:800},children:[(0,I.jsxs)("a",{className:S.Fs,onMouseDown:m,children:["Stücklisten Übersicht",(0,I.jsxs)("div",{className:S.US,children:[(0,I.jsx)(_.default,{state:H,onChange:function onChange(r){return Z(r)},on:"alle",off:"einzeln",width:100}),H&&(0,I.jsx)(_.default,{state:q,onChange:function onChange(r){return G(r)},on:"offen",off:"zu",width:100}),H&&(0,I.jsx)(_.default,{state:X,onChange:function onChange(r){return $(r)},on:"schnittm.",off:"alle",width:100})]})]}),B.map((function(r,m){var y;return(0,I.jsxs)("div",{className:S.EM,children:[!(null===(y=r.palette)||void 0===y||!y.name)&&(0,I.jsx)("div",{children:r.palette.name}),r.snapshots.map((function(r){return(0,I.jsx)(w.Suspense,{children:(0,I.jsx)(D.default,{onClick:Y,optionSnapshot:r,allOpen:q,showDiffOnly:X},r.key)})}))]},m)})),A&&(0,I.jsx)("div",{className:N.EC,style:{right:0,zIndex:100},children:(0,I.jsx)(P.default,{decision:A.decision,matchingOptions:A.rule})})]})):(0,I.jsx)(I.Fragment,{})}))},47943:(r,m,y)=>{"use strict";y.r(m),y.d(m,{default:()=>F});var v=y(65515),x=y.n(v),C=(y(87363),y(68692)),w=y(93379),O=y.n(w),S=y(7795),N=y.n(S),k=y(90569),j=y.n(k),E=y(3565),T=y.n(E),P=y(19216),_=y.n(P),D=y(44589),I=y.n(D),R=y(75581),A={};A.styleTagTransform=I(),A.setAttributes=T(),A.insert=j().bind(null,"head"),A.domAPI=N(),A.insertStyleElement=_();O()(R.ZP,A);R.ZP&&R.ZP.locals&&R.ZP.locals;var M=y(47514);const F=function Toggle(r){var m,y=r.onChange,v=r.val,w=r.state,O=r.on,S=r.off,N=r.alwaysActiveColor,k=r.height,j=void 0===k?40:k,E=r.width,T=void 0===E?80:E,P=r.handleDiameter,_=void 0===P?32:P,D=r.toggleTextClassName,I=void 0===D?R.f6:D,A=null===(m=getComputedStyle(document.documentElement).getPropertyValue("--primaryColor"))||void 0===m?void 0:m.replace(/ /g,"");return(0,M.jsx)(C.Z,{className:"no-swiping",checkedIcon:O?(0,M.jsx)("div",{className:x()(I),id:"yes",children:O}):(0,M.jsx)(M.Fragment,{}),uncheckedIcon:S?(0,M.jsx)("div",{className:x()(I),id:"no",children:S}):(0,M.jsx)(M.Fragment,{}),onChange:function onChange(){return y(null!=v?v:!w)},checked:w,onColor:A,offColor:N?A:"#CACACA",height:j,width:T,handleDiameter:_})}},98793:(r,m,y)=>{"use strict";y.d(m,{$Q:()=>S,EM:()=>E,Fs:()=>k,Kz:()=>O,US:()=>j,ZP:()=>T,fm:()=>N});var v=y(8081),x=y.n(v),C=y(23645),w=y.n(C)()(x());w.push([r.id,".index-module--LmG2a {\n position: relative;\n width: 100%;\n height: -moz-fit-content;\n height: fit-content;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--LmG2a thead {\n font-weight: bold !important;\n}\n.index-module--LmG2a thead {\n border-bottom: 1px solid;\n /* min-width: 20px; */\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--A0hQw {\n text-align: left;\n height: 20px;\n}\n.index-module--A0hQw th:nth-child(1) {\n width: 40%;\n border-bottom: 1px solid;\n}\n.index-module--A0hQw th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--A0hQw th:last-child {\n font-size: 12px;\n}\n.index-module--PcNw4 {\n overflow: auto;\n left: 50px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n z-index: 1700;\n}\n.index-module--Gh5Gk {\n height: 46px;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n cursor: ns-resize;\n padding-bottom: 20px;\n}\n.index-module--Biof7 {\n font-size: 16px;\n padding-left: 20px;\n display: flex;\n gap: 16px;\n background-color: grey;\n}\n\n.index-module--DLRJp {\n display: flex;\n flex-direction: column;\n padding-top: 20px;\n background: #fff;\n}\n",""]);var O="index-module--LmG2a",S="index-module--A0hQw",N="index-module--PcNw4",k="index-module--Gh5Gk",j="index-module--Biof7",E="index-module--DLRJp";const T=w},89965:(r,m,y)=>{"use strict";y.d(m,{NF:()=>S,ZP:()=>k,ec:()=>O,pb:()=>N});var v=y(8081),x=y.n(v),C=y(23645),w=y.n(C)()(x());w.push([r.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var O="index-module--NA4Nc",S="index-module--zxgl3",N="index-module--WGNyK";const k=w},75581:(r,m,y)=>{"use strict";y.d(m,{ZP:()=>S,f6:()=>O});var v=y(8081),x=y.n(v),C=y(23645),w=y.n(C)()(x());w.push([r.id,".index-module--lgscn {\n display: flex;\n font-weight: 300;\n line-height: 40px;\n gap: 24px;\n}\n\n.index-module--D7_Ss {\n padding-left: 16px;\n color: white;\n line-height: 40px;\n font-weight: 300;\n}\n\n.index-module--D7_Ss#yes {\n padding-left: 16px;\n}\n\n.index-module--D7_Ss#no {\n padding-left: 4px;\n}\n",""]);var O="index-module--D7_Ss";const S=w},93476:(r,m,y)=>{"use strict";y.d(m,{$Q:()=>_.$Q,EM:()=>_.EM,Fs:()=>_.Fs,Kz:()=>_.Kz,US:()=>_.US,fm:()=>_.fm});var v=y(93379),x=y.n(v),C=y(7795),w=y.n(C),O=y(90569),S=y.n(O),N=y(3565),k=y.n(N),j=y(19216),E=y.n(j),T=y(44589),P=y.n(T),_=y(98793),D={};D.styleTagTransform=P(),D.setAttributes=k(),D.insert=S().bind(null,"head"),D.domAPI=w(),D.insertStyleElement=E();x()(_.ZP,D),_.ZP&&_.ZP.locals&&_.ZP.locals},51203:(r,m,y)=>{"use strict";y.d(m,{NF:()=>_.NF,ec:()=>_.ec,pb:()=>_.pb});var v=y(93379),x=y.n(v),C=y(7795),w=y.n(C),O=y(90569),S=y.n(O),N=y(3565),k=y.n(N),j=y(19216),E=y.n(j),T=y(44589),P=y.n(T),_=y(89965),D={};D.styleTagTransform=P(),D.setAttributes=k(),D.insert=S().bind(null,"head"),D.domAPI=w(),D.insertStyleElement=E();x()(_.ZP,D),_.ZP&&_.ZP.locals&&_.ZP.locals},68692:(r,m,y)=>{"use strict";y.d(m,{Z:()=>w});var v=y(87363);function s(){return s=Object.assign?Object.assign.bind():function(r){for(var m=1;m<arguments.length;m++){var y=arguments[m];for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(r[v]=y[v])}return r},s.apply(this,arguments)}var x=v.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},v.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),C=v.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},v.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function h(r){if(7===r.length)return r;for(var m="#",y=1;y<4;y+=1)m+=r[y]+r[y];return m}function e(r,m,y,v,x){return function(r,m,y,v,x){var C=(r-y)/(m-y);if(0===C)return v;if(1===C)return x;for(var w="#",O=1;O<6;O+=2){var S=parseInt(v.substr(O,2),16),N=parseInt(x.substr(O,2),16),k=Math.round((1-C)*S+C*N).toString(16);1===k.length&&(k="0"+k),w+=k}return w}(r,m,y,h(v),h(x))}var w=function(r){function n(m){r.call(this,m);var y=m.height,v=m.width,x=m.checked;this.t=m.handleDiameter||y-2,this.i=Math.max(v-y,v-(y+this.t)/2),this.o=Math.max(0,(y-this.t)/2),this.state={h:x?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.k=this.k.bind(this),this.m=this.m.bind(this),this.M=this.M.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.D=this.D.bind(this),this.O=this.O.bind(this),this.S=this.S.bind(this),this.W=this.W.bind(this)}return r&&(n.__proto__=r),(n.prototype=Object.create(r&&r.prototype)).constructor=n,n.prototype.componentDidMount=function(){this.I=!0},n.prototype.componentDidUpdate=function(r){r.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},n.prototype.componentWillUnmount=function(){this.I=!1},n.prototype.H=function(r){this.R.focus(),this.setState({j:r,B:!0,L:Date.now()})},n.prototype.N=function(r){var m=this.state,y=m.j,v=m.h,x=(this.props.checked?this.i:this.o)+r-y;m.U||r===y||this.setState({U:!0});var C=Math.min(this.i,Math.max(this.o,x));C!==v&&this.setState({h:C})},n.prototype.A=function(r){var m=this.state,y=m.h,v=m.U,x=m.L,C=this.props.checked,w=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var O=Date.now()-x;(!v||O<250||C&&y<=w||!C&&y>=w)&&this.X(r),this.I&&this.setState({U:!1,B:!1}),this.l=Date.now()},n.prototype.p=function(r){r.preventDefault(),"number"==typeof r.button&&0!==r.button||(this.H(r.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.k))},n.prototype.v=function(r){r.preventDefault(),this.N(r.clientX)},n.prototype.k=function(r){this.A(r),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.k)},n.prototype.m=function(r){this.F=null,this.H(r.touches[0].clientX)},n.prototype.M=function(r){this.N(r.touches[0].clientX)},n.prototype.T=function(r){r.preventDefault(),this.A(r)},n.prototype.C=function(r){Date.now()-this.l>50&&(this.X(r),Date.now()-this.u>50&&this.I&&this.setState({B:!1}))},n.prototype.D=function(){this.u=Date.now()},n.prototype.O=function(){this.setState({B:!0})},n.prototype.S=function(){this.setState({B:!1})},n.prototype.W=function(r){this.R=r},n.prototype.$=function(r){r.preventDefault(),this.R.focus(),this.X(r),this.I&&this.setState({B:!1})},n.prototype.X=function(r){var m=this.props;(0,m.onChange)(!m.checked,r,m.id)},n.prototype.render=function(){var r=this.props,m=r.checked,y=r.disabled,x=r.className,C=r.offColor,w=r.onColor,O=r.offHandleColor,S=r.onHandleColor,N=r.checkedIcon,k=r.uncheckedIcon,j=r.checkedHandleIcon,E=r.uncheckedHandleIcon,T=r.boxShadow,P=r.activeBoxShadow,_=r.height,D=r.width,I=r.borderRadius,R=function(r,m){var y={};for(var v in r)Object.prototype.hasOwnProperty.call(r,v)&&-1===m.indexOf(v)&&(y[v]=r[v]);return y}(r,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),A=this.state,M=A.h,F=A.U,W=A.B,B={position:"relative",display:"inline-block",textAlign:"left",opacity:y?.5:1,direction:"ltr",borderRadius:_/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},z={height:_,width:D,margin:Math.max(0,(this.t-_)/2),position:"relative",background:e(M,this.i,this.o,C,w),borderRadius:"number"==typeof I?I:_/2,cursor:y?"default":"pointer",WebkitTransition:F?null:"background 0.25s",MozTransition:F?null:"background 0.25s",transition:F?null:"background 0.25s"},V={height:_,width:Math.min(1.5*_,D-(this.t+_)/2+1),position:"relative",opacity:(M-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:F?null:"opacity 0.25s",MozTransition:F?null:"opacity 0.25s",transition:F?null:"opacity 0.25s"},L={height:_,width:Math.min(1.5*_,D-(this.t+_)/2+1),position:"absolute",opacity:1-(M-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:F?null:"opacity 0.25s",MozTransition:F?null:"opacity 0.25s",transition:F?null:"opacity 0.25s"},H={height:this.t,width:this.t,background:e(M,this.i,this.o,O,S),display:"inline-block",cursor:y?"default":"pointer",borderRadius:"number"==typeof I?I-1:"50%",position:"absolute",transform:"translateX("+M+"px)",top:Math.max(0,(_-this.t)/2),outline:0,boxShadow:W?P:T,border:0,WebkitTransition:F?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:F?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:F?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},Z={height:this.t,width:this.t,opacity:Math.max(2*(1-(M-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:F?null:"opacity 0.25s",MozTransition:F?null:"opacity 0.25s",transition:F?null:"opacity 0.25s"},K={height:this.t,width:this.t,opacity:Math.max(2*((M-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:F?null:"opacity 0.25s",MozTransition:F?null:"opacity 0.25s",transition:F?null:"opacity 0.25s"};return v.createElement("div",{className:x,style:B},v.createElement("div",{className:"react-switch-bg",style:z,onClick:y?null:this.$,onMouseDown:function(r){return r.preventDefault()}},N&&v.createElement("div",{style:V},N),k&&v.createElement("div",{style:L},k)),v.createElement("div",{className:"react-switch-handle",style:H,onClick:function(r){return r.preventDefault()},onMouseDown:y?null:this.p,onTouchStart:y?null:this.m,onTouchMove:y?null:this.M,onTouchEnd:y?null:this.T,onTouchCancel:y?null:this.S},E&&v.createElement("div",{style:Z},E),j&&v.createElement("div",{style:K},j)),v.createElement("input",s({},{type:"checkbox",role:"switch","aria-checked":m,checked:m,disabled:y,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},R,{ref:this.W,onFocus:this.O,onBlur:this.S,onKeyUp:this.D,onChange:this.C})))},n}(v.Component);w.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:x,checkedIcon:C,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56}}}]);
|
|
2
|
+
(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7415,2004,2602,2654,8317,1138,7943,8345],{65526:(r,m,y)=>{"use strict";var v=y(65807);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,r.exports=function(){function shim(r,m,y,x,C,w){if(w!==v){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}}function getShim(){return shim}shim.isRequired=shim;var r={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return r.PropTypes=r,r}},36653:(r,m,y)=>{r.exports=y(65526)()},65807:r=>{"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},57446:function(r,m,y){var v;r.exports=(v=y(87363),function(r){var m={};function n(y){if(m[y])return m[y].exports;var v=m[y]={i:y,l:!1,exports:{}};return r[y].call(v.exports,v,v.exports,n),v.l=!0,v.exports}return n.m=r,n.c=m,n.d=function(r,m,y){n.o(r,m)||Object.defineProperty(r,m,{enumerable:!0,get:y})},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,m){if(1&m&&(r=n(r)),8&m)return r;if(4&m&&"object"==typeof r&&r&&r.__esModule)return r;var y=Object.create(null);if(n.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:r}),2&m&&"string"!=typeof r)for(var v in r)n.d(y,v,function(m){return r[m]}.bind(null,v));return y},n.n=function(r){var m=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(m,"a",m),m},n.o=function(r,m){return Object.prototype.hasOwnProperty.call(r,m)},n.p="",n(n.s=4)}([function(r,m,y){r.exports=y(2)()},function(r,m){r.exports=v},function(r,m,y){"use strict";var v=y(3);function o(){}function i(){}i.resetWarningCache=o,r.exports=function(){function e(r,m,y,x,C,w){if(w!==v){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},function(r,m,y){"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(r,m,y){"use strict";y.r(m);var v=y(1),x=y.n(v),C=y(0),w=y.n(C),a=function(r){return 0!==r};function l(){return(l=Object.assign?Object.assign.bind():function(r){for(var m=1;m<arguments.length;m++){var y=arguments[m];for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(r[v]=y[v])}return r}).apply(this,arguments)}function c(r){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function p(r,m){for(var y=0;y<m.length;y++){var v=m[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(r,v.key,v)}}function u(r,m){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,m){return r.__proto__=m,r})(r,m)}function g(r){var m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}();return function(){var y,v=d(r);if(m){var x=d(this).constructor;y=Reflect.construct(v,arguments,x)}else y=v.apply(this,arguments);return f(this,y)}}function f(r,m){if(m&&("object"===c(m)||"function"==typeof m))return m;if(void 0!==m)throw new TypeError("Derived constructors may only return object or undefined");return h(r)}function h(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function d(r){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function b(r,m,y){return m in r?Object.defineProperty(r,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):r[m]=y,r}var O=function(r){!function(r,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(m&&m.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),m&&u(r,m)}(s,r);var m,y,v,C=g(s);function s(r){var m;return function(r,m){if(!(r instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),b(h(m=C.call(this,r)),"continueOpenCollapsible",(function(){var r=h(m).innerRef;m.setState({height:r.scrollHeight,transition:"height ".concat(m.props.transitionTime,"ms ").concat(m.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:a(r.scrollHeight),shouldOpenOnNextCycle:!1})})),b(h(m),"handleTriggerClick",(function(r){m.props.triggerDisabled||m.state.inTransition||(r.preventDefault(),m.props.handleTriggerClick?m.props.handleTriggerClick(m.props.accordionPosition):!0===m.state.isClosed?(m.openCollapsible(),m.props.onOpening(),m.props.onTriggerOpening()):(m.closeCollapsible(),m.props.onClosing(),m.props.onTriggerClosing()))})),b(h(m),"handleTransitionEnd",(function(r){r.target===m.innerRef&&(m.state.isClosed?(m.setState({inTransition:!1}),m.props.onClose()):(m.setState({height:"auto",overflow:m.props.overflowWhenOpen,inTransition:!1}),m.props.onOpen()))})),b(h(m),"setInnerRef",(function(r){return m.innerRef=r})),m.timeout=void 0,m.contentId=r.contentElementId||"collapsible-content-".concat(Date.now()),m.triggerId=r.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),r.open?m.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:r.overflowWhenOpen,inTransition:!1}:m.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(r.transitionTime,"ms ").concat(r.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},m}return m=s,(y=[{key:"componentDidUpdate",value:function(r,m){var y=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),"auto"!==m.height&&0!==m.height||!0!==this.state.shouldSwitchAutoOnNextCycle||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){y.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})}),50)),r.open!==this.props.open&&(!0===this.props.open?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var r=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:r.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:a(r.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:a(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var r=this.props,m=r.triggerSibling,y=r.classParentString;if(!m)return null;switch(c(m)){case"string":return x.a.createElement("span",{className:"".concat(y,"__trigger-sibling")},m);case"function":return m();case"object":return m;default:return null}}},{key:"render",value:function(){var r=this,m={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},y=this.state.isClosed?"is-closed":"is-open",v=this.props.triggerDisabled?"is-disabled":"",C=!1===this.state.isClosed&&void 0!==this.props.triggerWhenOpen?this.props.triggerWhenOpen:this.props.trigger,w=this.props.contentContainerTagName,O=this.props.triggerTagName,S=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,N=this.props,k=N.classParentString,E=N.contentOuterClassName,j=N.contentInnerClassName,T="".concat(k,"__trigger ").concat(y," ").concat(v," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),P="".concat(k," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),_="".concat(k,"__contentOuter ").concat(E),D="".concat(k,"__contentInner ").concat(j);return x.a.createElement(w,l({className:P.trim()},this.props.containerElementProps),x.a.createElement(O,l({id:this.triggerId,className:T.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(m){var y=m.key;(" "===y&&"button"!==r.props.triggerTagName.toLowerCase()||"Enter"===y)&&r.handleTriggerClick(m)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),C),this.renderNonClickableTriggerElement(),x.a.createElement("div",{id:this.contentId,className:_.trim(),style:m,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},x.a.createElement("div",{className:D.trim()},S)))}}])&&p(m.prototype,y),v&&p(m,v),Object.defineProperty(m,"prototype",{writable:!1}),s}(v.Component);O.propTypes={transitionTime:w.a.number,transitionCloseTime:w.a.number,triggerTagName:w.a.string,easing:w.a.string,open:w.a.bool,containerElementProps:w.a.object,triggerElementProps:w.a.object,contentElementId:w.a.string,classParentString:w.a.string,className:w.a.string,openedClassName:w.a.string,triggerStyle:w.a.object,triggerClassName:w.a.string,triggerOpenedClassName:w.a.string,contentOuterClassName:w.a.string,contentInnerClassName:w.a.string,accordionPosition:w.a.oneOfType([w.a.string,w.a.number]),handleTriggerClick:w.a.func,onOpen:w.a.func,onClose:w.a.func,onOpening:w.a.func,onClosing:w.a.func,onTriggerOpening:w.a.func,onTriggerClosing:w.a.func,trigger:w.a.oneOfType([w.a.string,w.a.element]),triggerWhenOpen:w.a.oneOfType([w.a.string,w.a.element]),triggerDisabled:w.a.bool,lazyRender:w.a.bool,overflowWhenOpen:w.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:w.a.bool,triggerSibling:w.a.oneOfType([w.a.string,w.a.element,w.a.func]),tabIndex:w.a.number,contentContainerTagName:w.a.string,children:w.a.oneOfType([w.a.string,w.a.element])},O.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},m.default=O}]))},59165:(r,m,y)=>{"use strict";y.d(m,{_l:()=>S,gc:()=>JsonView});var v=y(87363);const isDate=r=>!!r&&r instanceof Date,isObject=r=>"object"==typeof r&&null!==r,isFunction=r=>!!r&&r instanceof Object&&"function"==typeof r;function quoteString(r,m){return void 0===m&&(m=!1),!r||m?`"${r}"`:r}function ExpandableObject(r){let{field:m,value:y,data:x,lastElement:C,openBracket:w,closeBracket:O,level:S,style:N,shouldExpandNode:k,clickToExpandNode:E,outerRef:j,beforeExpandChange:T}=r;const P=(0,v.useRef)(!1),[_,D]=(0,v.useState)((()=>k(S,y,m))),I=(0,v.useRef)(null);(0,v.useEffect)((()=>{P.current?D(k(S,y,m)):P.current=!0}),[k]);const R=(0,v.useId)();if(0===x.length)return function EmptyObject(r){let{field:m,openBracket:y,closeBracket:x,lastElement:C,style:w}=r;return(0,v.createElement)("div",{className:w.basicChildStyle,role:"treeitem","aria-selected":void 0},(m||""===m)&&(0,v.createElement)("span",{className:w.label},quoteString(m,w.quotesForFieldNames),":"),(0,v.createElement)("span",{className:w.punctuation},y),(0,v.createElement)("span",{className:w.punctuation},x),!C&&(0,v.createElement)("span",{className:w.punctuation},","))}({field:m,openBracket:w,closeBracket:O,lastElement:C,style:N});const A=_?N.collapseIcon:N.expandIcon,M=_?N.ariaLables.collapseJson:N.ariaLables.expandJson,F=S+1,W=x.length-1,setExpandWithCallback=r=>{_===r||T&&!T({level:S,value:y,field:m,newExpandValue:r})||D(r)},onKeyDown=r=>{if("ArrowRight"===r.key||"ArrowLeft"===r.key)r.preventDefault(),setExpandWithCallback("ArrowRight"===r.key);else if("ArrowUp"===r.key||"ArrowDown"===r.key){r.preventDefault();const m="ArrowUp"===r.key?-1:1;if(!j.current)return;const y=j.current.querySelectorAll("[role=button]");let v=-1;for(let r=0;r<y.length;r++)if(0===y[r].tabIndex){v=r;break}if(v<0)return;const x=(v+m+y.length)%y.length;y[v].tabIndex=-1,y[x].tabIndex=0,y[x].focus()}},onClick=()=>{var r;setExpandWithCallback(!_);const m=I.current;if(!m)return;const y=null===(r=j.current)||void 0===r?void 0:r.querySelector('[role=button][tabindex="0"]');y&&(y.tabIndex=-1),m.tabIndex=0,m.focus()};return(0,v.createElement)("div",{className:N.basicChildStyle,role:"treeitem","aria-expanded":_,"aria-selected":void 0},(0,v.createElement)("span",{className:A,onClick,onKeyDown,role:"button","aria-label":M,"aria-expanded":_,"aria-controls":_?R:void 0,ref:I,tabIndex:0===S?0:-1}),(m||""===m)&&(E?(0,v.createElement)("span",{className:N.clickableLabel,onClick,onKeyDown},quoteString(m,N.quotesForFieldNames),":"):(0,v.createElement)("span",{className:N.label},quoteString(m,N.quotesForFieldNames),":")),(0,v.createElement)("span",{className:N.punctuation},w),_?(0,v.createElement)("ul",{id:R,role:"group",className:N.childFieldsContainer},x.map(((r,m)=>(0,v.createElement)(DataRender,{key:r[0]||m,field:r[0],value:r[1],style:N,lastElement:m===W,level:F,shouldExpandNode:k,clickToExpandNode:E,beforeExpandChange:T,outerRef:j})))):(0,v.createElement)("span",{className:N.collapsedContent,onClick,onKeyDown}),(0,v.createElement)("span",{className:N.punctuation},O),!C&&(0,v.createElement)("span",{className:N.punctuation},","))}function JsonObject(r){let{field:m,value:y,style:v,lastElement:x,shouldExpandNode:C,clickToExpandNode:w,level:O,outerRef:S,beforeExpandChange:N}=r;return ExpandableObject({field:m,value:y,lastElement:x||!1,level:O,openBracket:"{",closeBracket:"}",style:v,shouldExpandNode:C,clickToExpandNode:w,data:Object.keys(y).map((r=>[r,y[r]])),outerRef:S,beforeExpandChange:N})}function JsonArray(r){let{field:m,value:y,style:v,lastElement:x,level:C,shouldExpandNode:w,clickToExpandNode:O,outerRef:S,beforeExpandChange:N}=r;return ExpandableObject({field:m,value:y,lastElement:x||!1,level:C,openBracket:"[",closeBracket:"]",style:v,shouldExpandNode:w,clickToExpandNode:O,data:y.map((r=>[void 0,r])),outerRef:S,beforeExpandChange:N})}function JsonPrimitiveValue(r){let m,{field:y,value:x,style:C,lastElement:w}=r,O=C.otherValue;var S;return null===x?(m="null",O=C.nullValue):void 0===x?(m="undefined",O=C.undefinedValue):"string"==typeof(S=x)||S instanceof String?(m=function quoteStringValue(r,m,y){return y?JSON.stringify(r):m?`"${r}"`:r}(x,!C.noQuotesForStringValues,C.stringifyStringValues),O=C.stringValue):(r=>"boolean"==typeof r||r instanceof Boolean)(x)?(m=x?"true":"false",O=C.booleanValue):(r=>"number"==typeof r||r instanceof Number)(x)?(m=x.toString(),O=C.numberValue):(r=>"bigint"==typeof r||r instanceof BigInt)(x)?(m=`${x.toString()}n`,O=C.numberValue):m=isDate(x)?x.toISOString():isFunction(x)?"function() { }":x.toString(),(0,v.createElement)("div",{className:C.basicChildStyle,role:"treeitem","aria-selected":void 0},(y||""===y)&&(0,v.createElement)("span",{className:C.label},quoteString(y,C.quotesForFieldNames),":"),(0,v.createElement)("span",{className:O},m),!w&&(0,v.createElement)("span",{className:C.punctuation},","))}function DataRender(r){const m=r.value;return y=m,Array.isArray(y)?(0,v.createElement)(JsonArray,Object.assign({},r)):!isObject(m)||isDate(m)||isFunction(m)?(0,v.createElement)(JsonPrimitiveValue,Object.assign({},r)):(0,v.createElement)(JsonObject,Object.assign({},r));var y}var x="_2bkNM",C="_1BXBN";const w={collapseJson:"collapse JSON",expandJson:"expand JSON"},O={container:"_2IvMF _GzYRV",basicChildStyle:x,childFieldsContainer:C,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:w,stringifyStringValues:!1},S={container:"_11RoI _GzYRV",basicChildStyle:x,childFieldsContainer:C,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:w,stringifyStringValues:!1},allExpanded=()=>!0,JsonView=r=>{let{data:m,style:y=O,shouldExpandNode:x=allExpanded,clickToExpandNode:C=!1,beforeExpandChange:w,compactTopLevel:S,...N}=r;const k=(0,v.useRef)(null);return(0,v.createElement)("div",Object.assign({"aria-label":"JSON view"},N,{className:y.container,ref:k,role:"tree"}),S&&isObject(m)?Object.entries(m).map((r=>{let[m,S]=r;return(0,v.createElement)(DataRender,{key:m,field:m,value:S,style:{...O,...y},lastElement:!0,level:1,shouldExpandNode:x,clickToExpandNode:C,beforeExpandChange:w,outerRef:k})})):(0,v.createElement)(DataRender,{value:m,style:{...O,...y},lastElement:!0,level:0,shouldExpandNode:x,clickToExpandNode:C,outerRef:k,beforeExpandChange:w}))}},52654:(r,m,y)=>{"use strict";y.r(m),y.d(m,{default:()=>w});y(87363);var v=y(28317),x=y(9420),C=y(47514);const w=(0,x.Pi)((function AsyncRender(r){var m=r.optionSnapshot,y=r.onClick,x=r.showDiffOnly,w=r.allOpen,O=function use(r){if("fulfilled"===r.status)return r.value;throw"rejected"===r.status?r.reason:("pending"===r.status||(r.status="pending",r.then((function(m){r.status="fulfilled",r.value=m}),(function(m){r.status="rejected",r.reason=m}))),r)}(m.promise);return O?(0,C.jsx)(v.default,{onClick:y,articles:O.articleSnapshot,price:O.price,title:m.title,allOpen:w,showDiffOnly:x,configStepKey:m.key}):(0,C.jsx)(C.Fragment,{})}))},28317:(r,m,y)=>{"use strict";y.r(m),y.d(m,{default:()=>P});var v=y(80248),x=y(34988),C=y(87363),w=y(9420),O=y(93476),S=y(57446),N=y.n(S),k=y(76189),E=y(47514);function ownKeys(r,m){var y=Object.keys(r);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(r);m&&(v=v.filter((function(m){return Object.getOwnPropertyDescriptor(r,m).enumerable}))),y.push.apply(y,v)}return y}function _objectSpread(r){for(var m=1;m<arguments.length;m++){var y=null!=arguments[m]?arguments[m]:{};m%2?ownKeys(Object(y),!0).forEach((function(m){(0,v.Z)(r,m,y[m])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(y)):ownKeys(Object(y)).forEach((function(m){Object.defineProperty(r,m,Object.getOwnPropertyDescriptor(y,m))}))}return r}var j=function getPartlistArticles(r,m){for(var y in r.partlistArticles){var v=r.partlistArticles[y];if(v.hasPartlistArticle)m.push(T(v,!0)),m=j(v,m);else{for(var x=!1,C=0;C<m.length;C++)if(v.articleCodex===m[C].articleCodex&&v.retailArticleNr===m[C].retailArticleNr&&v.retailPrefix===m[C].retailPrefix&&v.catalogCodex===m[C].catalogCodex&&JSON.stringify(v.VariantValues)==JSON.stringify(m[C].VariantValues)){x=!0,m[C].quantity+=v.quantity;break}x||m.push(T(v))}}return m},T=function getPartlsitArticleObj(r,m){var y,v,x,C,w,O,S;return{name:(m?"Hülse: ":"")+r.posNr+" "+r.name,price:m?"---":r.price,retailArticleNr:null!==(y=r.retailArticleNr)&&void 0!==y?y:"",retailPrefix:null!==(v=r.retailPrefix)&&void 0!==v?v:"",quantity:r.quantity,ruleDesc:null!==(x=r.ruleDesc)&&void 0!==x?x:"",articleCodex:r.articleCodex,typeNr:null!==(C=r.typeNr)&&void 0!==C?C:"",catalogCodex:null!==(w=r.catalogCodex)&&void 0!==w?w:"",codex:r.articleCodex,rule:r.ruleDesc,decision:r.partlistDecisionNo?null!==(O=null===(S=r.partListParentArticle)||void 0===S||null===(S=S.catalogArticle.partlistDecisions)||void 0===S?void 0:S["D"+r.partlistDecisionNo])&&void 0!==O?O:r.CatalogData.loadedDecisions.find((function(m){return m.decisionNo===r.partlistDecisionNo})):void 0,partlistRule:r.partlistRule}};const P=(0,w.Pi)((function PartlistTable(r){var m=r.onClick,y=r.articles,v=r.price,w=r.title,S=r.allOpen,T=r.configStepKey,P=r.showDiffOnly,_=(0,C.useState)(),D=(0,x.Z)(_,2),I=D[0],R=D[1],A=(0,k.NP)();return(0,C.useEffect)((function(){var r,m=A.settingsState.partlistArticlesInOverview[T];if((void 0===I||!m||m.totalCount===m.items.length)&&(void 0===I||P)){var v=[];for(var x in y)v=j(y[x],v);P&&m&&m.totalCount===m.items.length&&(v=v.map((function(r){return _objectSpread(_objectSpread({},r),{},{visible:m.items.filter((function(m){return m.articles.find((function(m){return m.plaCodex==r.articleCodex&&r.retailArticleNr==m.retailArticleNr}))})).length!==m.items.length})})));var C=_objectSpread({},A.settingsState.partlistArticlesInOverview);null!==(r=C[T])&&void 0!==r&&r.items&&!C[T].items.find((function(r){return r.opv===w}))&&(C[T].items.push({opv:w,articles:v.map((function(r){return{plaCodex:r.articleCodex,retailArticleNr:r.retailArticleNr,quantity:r.quantity}}))}),A.settingsState.setPartlistArticlesInOverview(C)),R(v)}}),[A.settingsState.partlistArticlesInOverview]),(0,E.jsx)(N(),{trigger:(0,E.jsx)("div",{style:{cursor:"pointer"},children:"Stücklistenartikel: "+(null!=I?I:[]).length+" preis: "+v+" -- "+w}),open:""==w||S,easing:"ease",transitionTime:100,children:(0,E.jsxs)("table",{className:O.Kz,children:[(0,E.jsx)("thead",{children:(0,E.jsxs)("tr",{className:O.$Q,children:[(0,E.jsx)("th",{children:"Name"}),(0,E.jsx)("th",{children:"Artikle Nr."}),(0,E.jsx)("th",{children:"Type Nr."}),(0,E.jsx)("th",{children:"CatalogCodex"}),(0,E.jsx)("th",{children:"Preis"}),(0,E.jsx)("th",{children:"Nr"}),(0,E.jsx)("th",{children:"Prefix"}),(0,E.jsx)("th",{children:"Menge"}),(0,E.jsx)("th",{children:"Rule"}),(0,E.jsx)("th",{children:"decision"})]})}),(0,E.jsx)("tbody",{children:(null!=I?I:[]).filter((function(r){return!P||r.visible||void 0===r.visible})).map((function(r){var y,v,x;return(0,E.jsxs)("tr",{className:O.$Q,children:[(0,E.jsxs)("th",{children:[" ",r.name]}),(0,E.jsxs)("th",{children:[r.articleCodex," "]}),(0,E.jsxs)("th",{children:[r.typeNr," "]}),(0,E.jsxs)("th",{children:[r.catalogCodex," "]}),(0,E.jsxs)("th",{children:[" ",null!==(y=r.price)&&void 0!==y?y:0," "]}),(0,E.jsxs)("th",{children:[" ",r.retailArticleNr," "]}),(0,E.jsxs)("th",{children:[r.retailPrefix," "]}),(0,E.jsxs)("th",{children:[r.quantity," "]}),(0,E.jsx)("th",{children:r.rule}),r.decision&&(0,E.jsx)("th",{onClick:function onClick(){return m({decision:r.decision,rule:r.partlistRule})},children:(null===(v=r.decision)||void 0===v?void 0:v.Number)||(null===(x=r.decision)||void 0===x?void 0:x.decisionNo)})]},r.articleCodex+r.retailArticleNr)}))})]})})}))},97078:(r,m,y)=>{"use strict";y.r(m),y.d(m,{default:()=>A});var v=y(80248),x=y(34988),C=y(72874),w=y(87363),O=y(51203),S=y(93476),N=y(36115),k=y(76189),E=y(9420),j=y(65515),T=y.n(j),P=y(13222),_=y(47943),D=y(52654),I=y(47514),R=["onMouseDown"];function ownKeys(r,m){var y=Object.keys(r);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(r);m&&(v=v.filter((function(m){return Object.getOwnPropertyDescriptor(r,m).enumerable}))),y.push.apply(y,v)}return y}function _objectSpread(r){for(var m=1;m<arguments.length;m++){var y=null!=arguments[m]?arguments[m]:{};m%2?ownKeys(Object(y),!0).forEach((function(m){(0,v.Z)(r,m,y[m])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(y)):ownKeys(Object(y)).forEach((function(m){Object.defineProperty(r,m,Object.getOwnPropertyDescriptor(y,m))}))}return r}const A=(0,E.Pi)((function PartList(r){var m=r.onMouseDown,y=(0,C.Z)(r,R),v=(0,k.NP)(),E=(0,w.useState)(),j=(0,x.Z)(E,2),A=j[0],M=j[1],F=(0,w.useState)(),W=(0,x.Z)(F,2),V=W[0],B=W[1],L=(0,w.useState)(!1),z=(0,x.Z)(L,2),H=z[0],Z=z[1],K=(0,w.useState)(!1),U=(0,x.Z)(K,2),q=U[0],J=U[1],G=(0,w.useState)(!0),Q=(0,x.Z)(G,2),X=Q[0],$=Q[1],Y=function onClick(r){var m,y,v=r.decision;(v.decisionNo||v.Number)==((null==A||null===(m=A.decision)||void 0===m?void 0:m.Number)||(null==A||null===(y=A.decision)||void 0===y?void 0:y.decisionNo))?M(void 0):M(r)};(0,w.useEffect)((function(){H?setTimeout((function(){return ee()}),400):B([{snapshots:[{promise:new Promise((function(r){var m,y,x;r({articleSnapshot:null!==(m=v.divaWebPlanner.getDivaArticles())&&void 0!==m?m:{},price:null!==(y=null===(x=v.divaWebPlanner.actSet())||void 0===x?void 0:x.getSetPrice())&&void 0!==y?y:0})})),title:"",key:v.settingsState.configChanged.toString()}]}])}),[v.settingsState.configChanged,v.tabGroupState.curConfigStep]);var ee=function updateVariants(){for(var r=[],m={},y=v.settingsState.itemPaletteArr.filter((function(r){return r[1].visible})).map((function(r){return{items:r[1].groups.flatMap((function(r){return r.items.flatMap((function(r){return r}))})),palette:r[1]}})),x=0;x<y.length;x++){for(var C=y[x].items,w=y[x].palette,O=[],S=0;S<C.length;S++){var N=C[S];N.pricePreviewPromise&&(N.text||N.name)&&O.push({promise:N.pricePreviewPromise.promise,title:N.text||N.name,key:w.configStepKey})}m[w.configStepKey]={items:[],totalCount:C.length},r.push({snapshots:O,palette:w})}v.settingsState.setPartlistArticlesInOverview(m),B(r)};return(0,w.useEffect)((function(){var r=v.divaWebPlanner.actSet();r&&(r.logTotalStateForVariants=H)}),[H]),null!=V&&V.length?(0,I.jsxs)("div",_objectSpread(_objectSpread({},y),{},{className:T()(y.className,S.fm,v.uiState.configSettingsIsExpanded?O.NF:void 0),style:{zIndex:800},children:[(0,I.jsxs)("a",{className:S.Fs,onMouseDown:m,children:["Stücklisten Übersicht",(0,I.jsxs)("div",{className:S.US,children:[(0,I.jsx)(_.default,{state:H,onChange:function onChange(r){return Z(r)},on:"alle",off:"einzeln",width:100}),H&&(0,I.jsx)(_.default,{state:q,onChange:function onChange(r){return J(r)},on:"offen",off:"zu",width:100}),H&&(0,I.jsx)(_.default,{state:X,onChange:function onChange(r){return $(r)},on:"schnittm.",off:"alle",width:100})]})]}),V.map((function(r,m){var y;return(0,I.jsxs)("div",{className:S.EM,children:[!(null===(y=r.palette)||void 0===y||!y.name)&&(0,I.jsx)("div",{children:r.palette.name}),r.snapshots.map((function(r){return(0,I.jsx)(w.Suspense,{children:(0,I.jsx)(D.default,{onClick:Y,optionSnapshot:r,allOpen:q,showDiffOnly:X},r.key)})}))]},m)})),A&&(0,I.jsx)("div",{className:N.EC,style:{right:0,zIndex:100},children:(0,I.jsx)(P.default,{decision:A.decision,matchingOptions:A.rule})})]})):(0,I.jsx)(I.Fragment,{})}))},47943:(r,m,y)=>{"use strict";y.r(m),y.d(m,{default:()=>F});var v=y(65515),x=y.n(v),C=(y(87363),y(68692)),w=y(93379),O=y.n(w),S=y(7795),N=y.n(S),k=y(90569),E=y.n(k),j=y(3565),T=y.n(j),P=y(19216),_=y.n(P),D=y(44589),I=y.n(D),R=y(75581),A={};A.styleTagTransform=I(),A.setAttributes=T(),A.insert=E().bind(null,"head"),A.domAPI=N(),A.insertStyleElement=_();O()(R.ZP,A);R.ZP&&R.ZP.locals&&R.ZP.locals;var M=y(47514);const F=function Toggle(r){var m,y=r.onChange,v=r.val,w=r.state,O=r.on,S=r.off,N=r.alwaysActiveColor,k=r.height,E=void 0===k?40:k,j=r.width,T=void 0===j?80:j,P=r.handleDiameter,_=void 0===P?32:P,D=r.toggleTextClassName,I=void 0===D?R.f6:D,A=null===(m=getComputedStyle(document.documentElement).getPropertyValue("--primaryColor"))||void 0===m?void 0:m.replace(/ /g,"");return(0,M.jsx)(C.Z,{className:"no-swiping",checkedIcon:O?(0,M.jsx)("div",{className:x()(I),id:"yes",children:O}):(0,M.jsx)(M.Fragment,{}),uncheckedIcon:S?(0,M.jsx)("div",{className:x()(I),id:"no",children:S}):(0,M.jsx)(M.Fragment,{}),onChange:function onChange(){return y(null!=v?v:!w)},checked:w,onColor:A,offColor:N?A:"#CACACA",height:E,width:T,handleDiameter:_})}},98793:(r,m,y)=>{"use strict";y.d(m,{$Q:()=>S,EM:()=>j,Fs:()=>k,Kz:()=>O,US:()=>E,ZP:()=>T,fm:()=>N});var v=y(8081),x=y.n(v),C=y(23645),w=y.n(C)()(x());w.push([r.id,".index-module--LmG2a {\n position: relative;\n width: 100%;\n height: -moz-fit-content;\n height: fit-content;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--LmG2a thead {\n font-weight: bold !important;\n}\n.index-module--LmG2a thead {\n border-bottom: 1px solid;\n /* min-width: 20px; */\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--A0hQw {\n text-align: left;\n height: 20px;\n}\n.index-module--A0hQw th:nth-child(1) {\n width: 40%;\n border-bottom: 1px solid;\n}\n.index-module--A0hQw th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--A0hQw th:last-child {\n font-size: 12px;\n}\n.index-module--PcNw4 {\n overflow: auto;\n left: 50px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n z-index: 1700;\n}\n.index-module--Gh5Gk {\n height: 46px;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n cursor: ns-resize;\n padding-bottom: 20px;\n}\n.index-module--Biof7 {\n font-size: 16px;\n padding-left: 20px;\n display: flex;\n gap: 16px;\n background-color: grey;\n}\n\n.index-module--DLRJp {\n display: flex;\n flex-direction: column;\n padding-top: 20px;\n background: #fff;\n}\n",""]);var O="index-module--LmG2a",S="index-module--A0hQw",N="index-module--PcNw4",k="index-module--Gh5Gk",E="index-module--Biof7",j="index-module--DLRJp";const T=w},89965:(r,m,y)=>{"use strict";y.d(m,{NF:()=>S,ZP:()=>k,ec:()=>O,pb:()=>N});var v=y(8081),x=y.n(v),C=y(23645),w=y.n(C)()(x());w.push([r.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var O="index-module--NA4Nc",S="index-module--zxgl3",N="index-module--WGNyK";const k=w},75581:(r,m,y)=>{"use strict";y.d(m,{ZP:()=>S,f6:()=>O});var v=y(8081),x=y.n(v),C=y(23645),w=y.n(C)()(x());w.push([r.id,".index-module--lgscn {\n display: flex;\n font-weight: 300;\n line-height: 40px;\n gap: 24px;\n}\n\n.index-module--D7_Ss {\n padding-left: 16px;\n color: white;\n line-height: 40px;\n font-weight: 300;\n}\n\n.index-module--D7_Ss#yes {\n padding-left: 16px;\n}\n\n.index-module--D7_Ss#no {\n padding-left: 4px;\n}\n",""]);var O="index-module--D7_Ss";const S=w},93476:(r,m,y)=>{"use strict";y.d(m,{$Q:()=>_.$Q,EM:()=>_.EM,Fs:()=>_.Fs,Kz:()=>_.Kz,US:()=>_.US,fm:()=>_.fm});var v=y(93379),x=y.n(v),C=y(7795),w=y.n(C),O=y(90569),S=y.n(O),N=y(3565),k=y.n(N),E=y(19216),j=y.n(E),T=y(44589),P=y.n(T),_=y(98793),D={};D.styleTagTransform=P(),D.setAttributes=k(),D.insert=S().bind(null,"head"),D.domAPI=w(),D.insertStyleElement=j();x()(_.ZP,D),_.ZP&&_.ZP.locals&&_.ZP.locals},51203:(r,m,y)=>{"use strict";y.d(m,{NF:()=>_.NF,ec:()=>_.ec,pb:()=>_.pb});var v=y(93379),x=y.n(v),C=y(7795),w=y.n(C),O=y(90569),S=y.n(O),N=y(3565),k=y.n(N),E=y(19216),j=y.n(E),T=y(44589),P=y.n(T),_=y(89965),D={};D.styleTagTransform=P(),D.setAttributes=k(),D.insert=S().bind(null,"head"),D.domAPI=w(),D.insertStyleElement=j();x()(_.ZP,D),_.ZP&&_.ZP.locals&&_.ZP.locals},68692:(r,m,y)=>{"use strict";y.d(m,{Z:()=>w});var v=y(87363);function s(){return s=Object.assign?Object.assign.bind():function(r){for(var m=1;m<arguments.length;m++){var y=arguments[m];for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(r[v]=y[v])}return r},s.apply(this,arguments)}var x=v.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},v.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),C=v.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},v.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function h(r){if(7===r.length)return r;for(var m="#",y=1;y<4;y+=1)m+=r[y]+r[y];return m}function e(r,m,y,v,x){return function(r,m,y,v,x){var C=(r-y)/(m-y);if(0===C)return v;if(1===C)return x;for(var w="#",O=1;O<6;O+=2){var S=parseInt(v.substr(O,2),16),N=parseInt(x.substr(O,2),16),k=Math.round((1-C)*S+C*N).toString(16);1===k.length&&(k="0"+k),w+=k}return w}(r,m,y,h(v),h(x))}var w=function(r){function n(m){r.call(this,m);var y=m.height,v=m.width,x=m.checked;this.t=m.handleDiameter||y-2,this.i=Math.max(v-y,v-(y+this.t)/2),this.o=Math.max(0,(y-this.t)/2),this.state={h:x?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.k=this.k.bind(this),this.m=this.m.bind(this),this.M=this.M.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.D=this.D.bind(this),this.O=this.O.bind(this),this.S=this.S.bind(this),this.W=this.W.bind(this)}return r&&(n.__proto__=r),(n.prototype=Object.create(r&&r.prototype)).constructor=n,n.prototype.componentDidMount=function(){this.I=!0},n.prototype.componentDidUpdate=function(r){r.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},n.prototype.componentWillUnmount=function(){this.I=!1},n.prototype.H=function(r){this.R.focus(),this.setState({j:r,B:!0,L:Date.now()})},n.prototype.N=function(r){var m=this.state,y=m.j,v=m.h,x=(this.props.checked?this.i:this.o)+r-y;m.U||r===y||this.setState({U:!0});var C=Math.min(this.i,Math.max(this.o,x));C!==v&&this.setState({h:C})},n.prototype.A=function(r){var m=this.state,y=m.h,v=m.U,x=m.L,C=this.props.checked,w=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var O=Date.now()-x;(!v||O<250||C&&y<=w||!C&&y>=w)&&this.X(r),this.I&&this.setState({U:!1,B:!1}),this.l=Date.now()},n.prototype.p=function(r){r.preventDefault(),"number"==typeof r.button&&0!==r.button||(this.H(r.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.k))},n.prototype.v=function(r){r.preventDefault(),this.N(r.clientX)},n.prototype.k=function(r){this.A(r),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.k)},n.prototype.m=function(r){this.F=null,this.H(r.touches[0].clientX)},n.prototype.M=function(r){this.N(r.touches[0].clientX)},n.prototype.T=function(r){r.preventDefault(),this.A(r)},n.prototype.C=function(r){Date.now()-this.l>50&&(this.X(r),Date.now()-this.u>50&&this.I&&this.setState({B:!1}))},n.prototype.D=function(){this.u=Date.now()},n.prototype.O=function(){this.setState({B:!0})},n.prototype.S=function(){this.setState({B:!1})},n.prototype.W=function(r){this.R=r},n.prototype.$=function(r){r.preventDefault(),this.R.focus(),this.X(r),this.I&&this.setState({B:!1})},n.prototype.X=function(r){var m=this.props;(0,m.onChange)(!m.checked,r,m.id)},n.prototype.render=function(){var r=this.props,m=r.checked,y=r.disabled,x=r.className,C=r.offColor,w=r.onColor,O=r.offHandleColor,S=r.onHandleColor,N=r.checkedIcon,k=r.uncheckedIcon,E=r.checkedHandleIcon,j=r.uncheckedHandleIcon,T=r.boxShadow,P=r.activeBoxShadow,_=r.height,D=r.width,I=r.borderRadius,R=function(r,m){var y={};for(var v in r)Object.prototype.hasOwnProperty.call(r,v)&&-1===m.indexOf(v)&&(y[v]=r[v]);return y}(r,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),A=this.state,M=A.h,F=A.U,W=A.B,V={position:"relative",display:"inline-block",textAlign:"left",opacity:y?.5:1,direction:"ltr",borderRadius:_/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},B={height:_,width:D,margin:Math.max(0,(this.t-_)/2),position:"relative",background:e(M,this.i,this.o,C,w),borderRadius:"number"==typeof I?I:_/2,cursor:y?"default":"pointer",WebkitTransition:F?null:"background 0.25s",MozTransition:F?null:"background 0.25s",transition:F?null:"background 0.25s"},L={height:_,width:Math.min(1.5*_,D-(this.t+_)/2+1),position:"relative",opacity:(M-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:F?null:"opacity 0.25s",MozTransition:F?null:"opacity 0.25s",transition:F?null:"opacity 0.25s"},z={height:_,width:Math.min(1.5*_,D-(this.t+_)/2+1),position:"absolute",opacity:1-(M-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:F?null:"opacity 0.25s",MozTransition:F?null:"opacity 0.25s",transition:F?null:"opacity 0.25s"},H={height:this.t,width:this.t,background:e(M,this.i,this.o,O,S),display:"inline-block",cursor:y?"default":"pointer",borderRadius:"number"==typeof I?I-1:"50%",position:"absolute",transform:"translateX("+M+"px)",top:Math.max(0,(_-this.t)/2),outline:0,boxShadow:W?P:T,border:0,WebkitTransition:F?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:F?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:F?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},Z={height:this.t,width:this.t,opacity:Math.max(2*(1-(M-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:F?null:"opacity 0.25s",MozTransition:F?null:"opacity 0.25s",transition:F?null:"opacity 0.25s"},K={height:this.t,width:this.t,opacity:Math.max(2*((M-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:F?null:"opacity 0.25s",MozTransition:F?null:"opacity 0.25s",transition:F?null:"opacity 0.25s"};return v.createElement("div",{className:x,style:V},v.createElement("div",{className:"react-switch-bg",style:B,onClick:y?null:this.$,onMouseDown:function(r){return r.preventDefault()}},N&&v.createElement("div",{style:L},N),k&&v.createElement("div",{style:z},k)),v.createElement("div",{className:"react-switch-handle",style:H,onClick:function(r){return r.preventDefault()},onMouseDown:y?null:this.p,onTouchStart:y?null:this.m,onTouchMove:y?null:this.M,onTouchEnd:y?null:this.T,onTouchCancel:y?null:this.S},j&&v.createElement("div",{style:Z},j),E&&v.createElement("div",{style:K},E)),v.createElement("input",s({},{type:"checkbox",role:"switch","aria-checked":m,checked:m,disabled:y,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},R,{ref:this.W,onFocus:this.O,onBlur:this.S,onKeyUp:this.D,onChange:this.C})))},n}(v.Component);w.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:x,checkedIcon:C,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56}}}]);
|