@crystaldesign/diva-support 25.9.0-beta.9 → 25.10.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 184.diva-support.umd.min.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkCrystaldesignDivaSupport=self.webpackChunkCrystaldesignDivaSupport||[]).push([[184],{5184:(n,e,i)=>{i.r(e),i.d(e,{default:()=>I});var t=i(4988),a=i(7363),o=i(8822),r=i(3379),s=i.n(r),l=i(7795),d=i.n(l),u=i(569),c=i.n(u),m=i(3565),p=i.n(m),x=i(9216),g=i.n(x),h=i(4589),v=i.n(h),f=i(8195),w={};w.styleTagTransform=v(),w.setAttributes=p(),w.insert=c().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=g();s()(f.ZP,w);f.ZP&&f.ZP.locals&&f.ZP.locals;var b=i(2182),C=i(7514);const I=function ArViewer(n){var e,i,r,s,l=n.url,d=n.qrCodeUrl,u=n.cameraArButton,c=n.viewerClassName,m=n.arViewerSettings,p=n.isCurrentlyVisible,x="",g=(0,o.Vr)(),h=g.actions,v=g.state,w=v.isFirefox,I=v.isMobile,N=(0,o.$G)().t,y=(0,a.useState)(0),S=(0,t.Z)(y,2),k=S[0],P=S[1],Z=(0,a.useState)(!I),z=(0,t.Z)(Z,2),A=z[0],j=z[1];return(0,a.useEffect)((function(){h.loadModelViewer()}),[]),u&&(x+="scene-viewer quick-look"),(0,C.jsxs)(C.Fragment,{children:[A&&!1!==p&&d&&(0,C.jsxs)("div",{className:f.GY,children:[(0,C.jsx)(b.ZP,{value:d,className:f.Vf}),(0,C.jsx)("div",{className:f.ze,children:N("pdp.ar.qrtext")}),(0,C.jsx)("div",{className:f.zJ,id:"arThumbnailImg",onClick:function onClick(){return j(!1)}})]}),(0,C.jsx)("model-viewer",{src:l,alt:"A AR Model of a Chair","environment-image":"default"===(null==m?void 0:m[k].environmentImage)?void 0:"neutral",shadowIntensity:null!==(e=null==m?void 0:m[k].shadowIntensity)&&void 0!==e?e:1,shadowSoftness:null!==(i=null==m?void 0:m[k].shadowSoftness)&&void 0!==i?i:1,exposure:null!==(r=null==m?void 0:m[k].exposure)&&void 0!==r?r:1,useEnvironmentasSkybox:null!==(s=null==m?void 0:m[k].useEnvironmentasSkybox)&&void 0!==s&&s,"camera-controls":!0,ar:!0,"ar-modes":w?"":x,style:{overscrollBehavior:"none",width:"100%",height:"100%",touchAction:"none"},class:c}),m&&(0,C.jsx)("select",{name:"arViewerSetting",id:"arViewerSettings",style:{position:"absolute",top:"0px"},onChange:function onChange(n){return function onArViewerSettingsChanged(n){P(parseInt(n.target.value))}(n)},children:m.map((function(n,e){return(0,C.jsx)("option",{value:e,children:n.name},e)}))})]})}},8195:(n,e,i)=>{i.d(e,{GY:()=>m,Vf:()=>p,ZP:()=>h,zJ:()=>x,ze:()=>g});var t=i(8081),a=i.n(t),o=i(3645),r=i.n(o),s=i(1667),l=i.n(s),d=new URL(i(140),i.b),u=r()(a()),c=l()(d);u.push([n.id,".index-module--PD1WN {\n position: absolute;\n bottom: 10px;\n right: 0px;\n left: 0px;\n margin-left: auto;\n margin-right: auto;\n width: 361px;\n height: 90px;\n margin-bottom: 10px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0.75rem 0.15rem;\n border-radius: 0.3rem;\n padding-left: 5px;\n padding-right: 5px;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--AWoJQ {\n width: 80px;\n height: 80px;\n}\n\n.index-module--sIl1Z {\n position: absolute;\n cursor: pointer;\n top: 7px;\n right: 7px;\n width: 12px;\n height: 12px;\n background-image: url("+c+");\n background-repeat: no-repeat;\n z-index: 1;\n}\n\n.index-module--NiigZ {\n width: 250px;\n height: 80px;\n word-wrap: break-word;\n font-family: var(--diva-typography-font-family);\n}\n",""]);var m="index-module--PD1WN",p="index-module--AWoJQ",x="index-module--sIl1Z",g="index-module--NiigZ";const h=u},140:n=>{n.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB2aWV3Qm94PSIwIDAgOCA4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNi45OTk5OCAxLjEzNDc3TDEgNy4xMzQ3NU02Ljk5OTk4IDcuMTM0NzdMMSAxLjEzNDc5IiBzdHJva2U9IiNCNkI2QjciIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg=="}}]);
@@ -0,0 +1 @@
1
+ /*! filename:184 */