{"version":3,"sources":["components/functional/GlobalVariables.js","components/reducers/SKUReducer.js","components/reducers/ModelReducer.js","components/reducers/LanguageReducer.js","components/functional/HuemenARPlayer.js","components/svgComponents/ARErrorIcon.js","components/ARErrorPopup.js","components/ARPlayer.js","components/MainApp.js","App.js","reportWebVitals.js","index.js"],"names":["MainRequestURL","initialSKUState","loading","is_sku_loaded","error","sku","skuReducer","state","action","type","skuPayload","initialModelState","is_model_loaded","model","modelReducer","modelPayload","initialLanguageState","is_language_loaded","uiMessages","languageReducer","uiMessagesPayload","HuemenARPlayer","ModelViewerElement","window","customElements","define","ARIcon","props","width","height","viewBox","fill","xmlns","opacity","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","ARErrorPopup","closeButton","useRef","useState","color","setColor","background","setBackground","popupStyles","popupContainer","position","left","right","top","bottom","margin","borderRadius","border","iconContainer","paddingTop","textAlign","title","maxWidth","marginLeft","marginRight","fontSize","fontWeight","marginBottom","text","maxHeight","lineHeight","webKitTransform","transform","padding","boxShadow","transition","closeButtonContainer","display","flexDirection","justifyContent","style","ARErrorIcon","onPointerOver","onPointerLeave","onClick","visibility","ref","className","ARPlayer","initialSKU","useContext","InitialSKUDataContext","modelData","ModelContext","uiMessageData","UIMessagesContext","find","o","language_code","languageCode","errorpopupvisibility","setErrorpopupvisibility","useEffect","today","Date","modelViewer","getFullYear","getMonth","slice","getDate","getHours","getMinutes","getSeconds","document","getElementById","addEventListener","activateAR","event","detail","status","shadowRoot","querySelectorAll","src","glb_file_3D","ios-src","usdz_file","alt","name","poster","camera-orbit","model_camera_orbit","settings","max-camera-orbit","model_max_camera_orbit","min-camera-orbit","model_min_camera_orbit","exposure","model_exposure","shadow-intensity","model_shadow","shadow_intensity","shadow-softness","shadow_softness","id","reveal","ar","ar-modes","ar-scale","data-js-focus-visible","camera-controls","interaction-prompt","marginTop","ar_error_massage_title","ar_error_massage_content","brand","primary_color","React","createContext","AnonymousUserContext","MainApp","customUrlSlug","useParams","anonymousUser","setAnonymousUser","skuID","setSkuID","setBackURL","setLanguageCode","InitialDataloaded","setInitialDataLoaded","useReducer","skuData","skuDispatch","modelDispatch","uiMessageDispatch","axios","get","then","response","data","user","back_url","language","catch","console","log","message","Provider","value","App","path","exact","component","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode"],"mappings":"kPAWaA,EAAiB,wCCVjBC,EAAkB,CAC7BC,SAAS,EACTC,eAAe,EACfC,MAAO,GACPC,IAAK,IAGMC,EAAa,SAACC,EAAOC,GAChC,OAAQA,EAAOC,MACb,IAAK,kBACH,MAAO,CACLP,SAAS,EACTC,eAAe,EACfC,MAAO,GACPC,IAAKG,EAAOE,YAGhB,IAAK,iBACH,MAAO,CACLR,SAAS,EACTC,eAAe,EACfC,MAAO,sDACPC,IAAK,IAGT,QACE,OAAOE,IC1BAI,EAAoB,CAC/BT,SAAS,EACTU,iBAAiB,EACjBR,MAAO,GACPS,MAAO,IAGIC,EAAe,SAACP,EAAOC,GAClC,OAAQA,EAAOC,MACb,IAAK,oBACH,MAAO,CACLP,SAAS,EACTU,iBAAiB,EACjBR,MAAO,GACPS,MAAOL,EAAOO,cAGlB,IAAK,mBACH,MAAO,CACLb,SAAS,EACTU,iBAAiB,EACjBR,MAAO,sDACPS,MAAO,IAGX,QACE,OAAON,IC1BAS,EAAuB,CAClCd,SAAS,EACTe,oBAAoB,EACpBb,MAAO,GACPc,WAAY,IAGDC,EAAkB,SAACZ,EAAOC,GACrC,OAAQA,EAAOC,MACb,IAAK,yBACH,MAAO,CACLP,SAAS,EACTe,oBAAoB,EACpBb,MAAO,GACPc,WAAYV,EAAOY,mBAGvB,IAAK,wBACH,MAAO,CACLlB,SAAS,EACTe,oBAAoB,EACpBb,MAAO,sDACPc,WAAY,IAGhB,QACE,OAAOX,I,qBCzBPc,E,kDACJ,aAAe,wC,gBADYC,GAK7BC,OAAOC,eAAeC,OAAO,mBAAoBJ,GAClCA,I,OCyIAK,MA/If,SAAgB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AInEI,OAAM,SAAClL,GACNuK,EAAY,CAAElK,KAAM,qBACpB8K,QAAQC,IAAIpL,EAAMqL,cAGvB,CAACf,EAAQvK,gBAGV,mCACE,cAACuF,EAAsBgG,SAAvB,CAAgCC,MAAOjB,EAAvC,SACE,cAAC9E,EAAa8F,SAAd,CAAuBC,MAAOhG,EAA9B,SACE,cAACG,EAAkB4F,SAAnB,CAA4BC,MAAO9F,EAAnC,SACE,cAACgE,EAAqB6B,SAAtB,CAA+BC,MAAO1B,EAAtC,SACGM,GACD5E,EAAU/E,iBACViF,EAAc5E,mBACZ,cAAC,EAAD,CAAUiF,aAAcA,IAExB,cCxID0F,MAZf,WACE,OACE,mCACE,cAAC,IAAD,UACE,cAAC,IAAD,UACE,cAAC,IAAD,CAAOC,KAAK,kBAAkBC,OAAK,EAACC,UAAWjC,WCI1CkC,EAZS,SAAAC,GAClBA,GAAeA,aAAuBC,UACxC,6BAAqBlB,MAAK,YAAkD,IAA/CmB,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOF,GACPG,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAQN,OCDdO,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEF1F,SAASC,eAAe,SAM1B+E,M","file":"static/js/main.d3d9dce8.chunk.js","sourcesContent":["// This is the dome ID which needs to exist in the webpage in order the widget to inject the content\r\n// The width and the heigth needs to be set from the client, regaring their styling preferences\r\nexport const WebArPlayerInput = \"webarplayercontainer\";\r\nexport const WebArPlayerParent = \"webarplayercontainer\";\r\n//Main path for all requests to the backend\r\n//export const MainFowardURL = \"http://192.168.178.27:3030\";\r\n//export const MainRequestURL = \"http://192.168.178.27:8000/api/arplayer\";\r\n// DEVELOPMENT ENVIRONMENT //\r\n//export const MainRequestURL = \"https://api.huemenar.de/api/arplayer\";\r\n//export const MainFowardURL = \"http://ar.huemenar.de.s3-website.eu-central-1.amazonaws.com\";\r\n// PRODUCTION ENVIRONMENT //\r\nexport const MainRequestURL = \"https://api.huemenar.com/api/arplayer\";\r\nexport const MainFowardURL = \"http://ar.huemenar.com\";\r\n","// Initial state of the SKU Reducer\r\nexport const initialSKUState = {\r\n loading: true,\r\n is_sku_loaded: false,\r\n error: \"\",\r\n sku: {},\r\n};\r\n//SKU Reducer\r\nexport const skuReducer = (state, action) => {\r\n switch (action.type) {\r\n case \"GET_SKU_SUCCESS\":\r\n return {\r\n loading: false,\r\n is_sku_loaded: true,\r\n error: \"\",\r\n sku: action.skuPayload,\r\n };\r\n\r\n case \"GET_SKU_FAILED\":\r\n return {\r\n loading: false,\r\n is_sku_loaded: false,\r\n error: \"Something went wrong! The model cannot be displayed\",\r\n sku: {},\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","// Initial state of the Model Reducer\r\nexport const initialModelState = {\r\n loading: true,\r\n is_model_loaded: false,\r\n error: \"\",\r\n model: {},\r\n};\r\n//Model Reducer\r\nexport const modelReducer = (state, action) => {\r\n switch (action.type) {\r\n case \"GET_MODEL_SUCCESS\":\r\n return {\r\n loading: false,\r\n is_model_loaded: true,\r\n error: \"\",\r\n model: action.modelPayload,\r\n };\r\n\r\n case \"GET_MODEL_FAILED\":\r\n return {\r\n loading: false,\r\n is_model_loaded: false,\r\n error: \"Something went wrong! The model cannot be displayed\",\r\n model: {},\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","// Initial state of the SKU Reducer\r\nexport const initialLanguageState = {\r\n loading: true,\r\n is_language_loaded: false,\r\n error: \"\",\r\n uiMessages: {},\r\n};\r\n//SKU Reducer\r\nexport const languageReducer = (state, action) => {\r\n switch (action.type) {\r\n case \"GET_UIMESSAGES_SUCCESS\":\r\n return {\r\n loading: false,\r\n is_language_loaded: true,\r\n error: \"\",\r\n uiMessages: action.uiMessagesPayload,\r\n };\r\n\r\n case \"GET_UIMESSAGES_FAILED\":\r\n return {\r\n loading: false,\r\n is_language_loaded: false,\r\n error: \"Something went wrong! The model cannot be displayed\",\r\n uiMessages: {},\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","import { ModelViewerElement } from \"@google/model-viewer/dist/model-viewer\";\r\n\r\nclass HuemenARPlayer extends ModelViewerElement {\r\n constructor() {\r\n super();\r\n }\r\n}\r\nwindow.customElements.define(\"huemen-ar-player\", HuemenARPlayer);\r\nexport default HuemenARPlayer;\r\n","import React from \"react\";\r\n\r\nfunction ARIcon(props) {\r\n return (\r\n \r\n );\r\n}\r\n\r\nexport default ARIcon;\r\n","import React, { useState, useRef, useEffect } from \"react\";\r\nimport ARErrorIcon from \"./svgComponents/ARErrorIcon\";\r\n\r\nimport useClientSize from \"./functional/customHooks/useClientSize\";\r\n\r\nfunction ARErrorPopup(props) {\r\n // Create a ref to the AR Button button\r\n const closeButton = useRef();\r\n const [color, setColor] = useState(\"white\");\r\n const [background, setBackground] = useState(props.color);\r\n const [width, setWidth] = useState(\"300\");\r\n\r\n const popupStyles = {\r\n popupContainer: {\r\n background: \"white\",\r\n width: \"300px\",\r\n height: \"400px\",\r\n position: \"absolute\",\r\n left: \"0px\",\r\n right: \"0px\",\r\n top: \"0px\",\r\n bottom: \"0px\",\r\n margin: \"auto\",\r\n borderRadius: \"12px\",\r\n border: \"none\",\r\n },\r\n iconContainer: {\r\n paddingTop: \"26px\",\r\n background: \"white\",\r\n textAlign: \"center\",\r\n width: \"85px\",\r\n height: \"122px\",\r\n margin: \"auto\",\r\n borderRadius: \"12px\",\r\n border: \"none\",\r\n },\r\n title: {\r\n paddingTop: \"8px\",\r\n maxWidth: \"85%\",\r\n background: \"white\",\r\n marginLeft: \"20px\",\r\n marginRight: \"20px\",\r\n textAlign: \"center\",\r\n fontSize: \"16px\",\r\n fontWeight: \"bold\",\r\n marginBottom: \"16px\",\r\n },\r\n text: {\r\n maxWidth: \"85%\",\r\n maxHeight: \"140px\",\r\n background: \"white\",\r\n marginLeft: \"20px\",\r\n marginRight: \"20px\",\r\n textAlign: \"center\",\r\n fontSize: \"14px\",\r\n lineHeight: \"16.41px\",\r\n //overflowX: \"hidden\",\r\n //overflowY: \"auto\",\r\n },\r\n closeButton: {\r\n position: \"absolute\",\r\n bottom: \"20px\",\r\n left: \"50%\",\r\n webKitTransform: \"translateX(-50%)\",\r\n transform: \"translateX(-50%)\",\r\n padding: \"2px\",\r\n background: props.color,\r\n width: \"260px\",\r\n height: \"48px\",\r\n borderRadius: \"24px\",\r\n border: \"none\",\r\n boxShadow: \"0px 4px 0px rgba(145, 145, 145, 0.25)\",\r\n transition: \"all 0.3s ease\",\r\n },\r\n closeButtonContainer: {\r\n width: \"256px\",\r\n height: \"44px\",\r\n background: background,\r\n borderRadius: \"22px\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n justifyContent: \"center\",\r\n fontSize: \"20px\",\r\n fontWeight: \"bold\",\r\n color: color,\r\n transition: \"all 0.3s ease\",\r\n },\r\n };\r\n\r\n const onCloseButtonHover = () => {\r\n setBackground(\"white\");\r\n setColor(props.color);\r\n };\r\n const onCloseButtonHoverOut = () => {\r\n setBackground(props.color);\r\n setColor(\"white\");\r\n };\r\n const onCloseButtonClicked = () => {\r\n props.visibility(false);\r\n };\r\n return (\r\n
\r\n Previewing the model in Augmented Reality...\r\n
\r\n {uiMessages && errorpopupvisibility ? (\r\n