1"use strict";(self.webpackChunkgoodnessme_app=self.webpackChunkgoodnessme_app||[]).push([[8920],{15815:function(e,t,n){n.d(t,{o:function(){return l}});var r=n(67294),o=n(34999),i=n(26679),a=n(92794),s=n(85893),d=function(e){var t,n=e.button,r=e.url,d=e.width,l=e.size,p=e.center,u=e.fontSize,c=e.buttonStyles,m=e.linkStyles,f=e.linkScrollsToTop,v=void 0!==f&&f,h=(0,a.V)().urlResolver;if(!n)return null;if(!n||!(null!=n&&n.text)||"hidden"===(null==n?void 0:n.type))return null;var b=null!=n&&n.link||null!=n&&n.external?h((null==n?void 0:n.link)||(null==n?void 0:n.external)):"";return(0,s.jsx)(i.x,{to:v?"#gatsby-focus-wrapper":(null==b?void 0:b.url)||r,title:(null==n||null===(t=n.link)||void 0===t?void 0:t.title)||(null==n?void 0:n.text),styles:Object.assign({w:d,display:p?"block":"inline-block",textAlign:p?"center":"auto"},m),children:(0,s.jsx)(o.zx,Object.assign({variant:null==n?void 0:n.type,width:d,size:l,fontSize:u},c,{children:null==n?void 0:n.text}))})},l=(0,r.memo)(d)},7172:function(e,t,n){n.d(t,{f:function(){return h}});var r=n(67294),o=n(9232);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s=new Map,d=new WeakMap,l=0,p=void 0;function u(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(d.has(n)||(l+=1,d.set(n,l.toString())),d.get(n)):"0":e[t]);var n})).toString()}function c(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=p),void 0===window.IntersectionObserver&&void 0!==r){var o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=function(e){var t=u(e),n=s.get(t);if(!n){var r,o=new Map,i=new IntersectionObserver((function(t){t.forEach((function(t){var n,i=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach((function(e){e(i,t)}))}))}),e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},s.set(t,n)}return n}(n),a=i.id,d=i.observer,l=i.elements,c=l.get(e)||[];return l.has(e)||l.set(e,c),c.push(t),d.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(l.delete(e),d.unobserve(e)),0===l.size&&(d.disconnect(),s.delete(a))}}var m=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function f(e){return"function"!=typeof e.children}var v=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),f(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var s=o.prototype;return s.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},s.componentWillUnmount=function(){this.unobserve(),this.node=null},s.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,o=e.trackVisibility,i=e.delay,a=e.fallbackInView;this._unobserveCb=c(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:o,delay:i},a)}},s.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},s.render=function(){if(!f(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var o=this.props,a=o.children,s=o.as,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(o,m);return r.createElement(s||"div",i({ref:this.handleNode},d),a)},o}(r.Component);v.displayName="InView",v.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};var h=function(e){var t=e.analytics,n=(0,o.z)(),i=n.trackPromoImpression,a=n.trackPromoClick,s=function(e){var t=void 0===e?{}:e,n=t.threshold,o=t.delay,i=t.trackVisibility,a=t.rootMargin,s=t.root,d=t.triggerOnce,l=t.skip,p=t.initialInView,u=t.fallbackInView,m=r.useRef(),f=r.useState({inView:!!p}),v=f[0],h=f[1],b=r.useCallback((function(e){void 0!==m.current&&(m.current(),m.current=void 0),l||e&&(m.current=c(e,(function(e,t){h({inView:e,entry:t}),t.isIntersecting&&d&&m.current&&(m.current(),m.current=void 0)}),{root:s,rootMargin:a,threshold:n,trackVisibility:i,delay:o},u))}),[Array.isArray(n)?n.toString():n,s,a,d,l,i,u,o]);(0,r.useEffect)((function(){m.current||!v.entry||d||l||h({inView:!!p})}));var g=[b,v.inView,v.entry];return g.ref=g[0],g.inView=g[1],g.entry=g[2],g}(),d=s[0],l=s[1];(0,r.useEffect)((function(){l&&t&&i(t)}),[l,t,i]);var p=(0,r.useCallback)((function(){t&&a(t)}),[t,a]);return{innerRef:d,inView:l,handleTrackingClick:p}}},25986:function(e,t,n){n.r(t),n.d(t,{Head:function(){return k.F},default:function(){return j}});var r=n(63366),o=n(15861),i=n(64687),a=n.n(i),s=n(67294),d=n(74780),l=n(57660),p=n(49693),u=n(78538),c=n(15219),m=n(81913),f=n(23343),v=n(72576),h=n(18205),b=n(43766),g=n(26679),w=n(85893),x=function(){var e,t,n,r,i,p,x,C,k=(0,f.l)().helpers,S=k.isBrowser,j=k.decodeShopifyId,L=(0,s.useMemo)((function(){var e,t,n;return S?null===(e=location)||void 0===e||null===(t=e.pathname)||void 0===t||null===(n=t.split("/review/write/"))||void 0===n?void 0:n[1]:null}
1),[S]),V=(0,u.j)().getProducts,W=(0,s.useState)(null),I=W[0],z=W[1],O=(0,s.useMemo)((function(){return j(null==I?void 0:I.id,"Product")}),[null==I?void 0:I.id,j]),_=(0,m.H)({sanityProduct:I}),E=_.brandCollection,M=_.brandCollectionUrl,A=(0,v.A)().waitForGlobal,F=(0,s.useState)(!1),R=F[0],D=F[1],H=(0,h.qt)(),P=H.store,q=H.settings.routes,N=(0,s.useMemo)((function(){return(0,o.Z)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!L){e.next=15;break}return e.t0=z,e.next=4,V({firstVariants:1,firstImages:1,handles:[L]});case 4:if(e.t2=t=e.sent,e.t1=null===e.t2,e.t1){e.next=8;break}e.t1=void 0===t;case 8:if(!e.t1){e.next=12;break}e.t3=void 0,e.next=13;break;case 12:e.t3=t[0];case 13:e.t4=e.t3,(0,e.t0)(e.t4);case 15:case"end":return e.stop()}}),e)})))}),[V,L]);return(0,s.useEffect)((function(){N()}),[]),(0,s.useEffect)((function(){S&&A("StampedFn",(function(){D(!0)}))}),[S,A]),(0,s.useEffect)((function(){var e,t,n,r,o;R&&I&&(null===(e=window)||void 0===e||e.StampedFn.init({apiKey:null==P?void 0:P.stampedApiKey,storeUrl:null==P?void 0:P.shopifyShopDomain}),n=null===(t=window)||void 0===t?void 0:t.document,r="stamped:reviews:loaded",o=function(){var e,t;null===(e=window)||void 0===e||null===(t=e.StampedFn)||void 0===t||t.toggleForm("review")},n.addEventListener?n.addEventListener(r,o):n.attachEvent("on"+r,(function(){o.call(n)})))}),[R,I,P]),(0,w.jsx)(d.xu,{as:"section",pt:["80px","107px"],pb:[10,18],bg:"brand.lightSand",children:(0,w.jsxs)(d.W2,{variant:"example",children:[(0,w.jsx)(d.X6,{as:"h1",size:["3xl","h2"],mb:[8,6],textAlign:"left",children:"Write your review"}),I&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(d.kC,{flexDirection:["column","row"],children:[(0,w.jsx)(d.oM,{ratio:1,w:["100%","323px"],mb:[6,0],children:(0,w.jsx)(l.Ee,{src:null==I||null===(e=I.images)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.src,alt:null==I||null===(n=I.images)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.alt})}),(0,w.jsxs)(d.kC,{flexDir:"column",justifyContent:"center",ml:[0,12],children:[(null==E?void 0:E.handle)&&(0,w.jsx)(g.x,{to:M,children:(0,w.jsxs)(d.kC,{role:"group",alignItems:"center",cursor:"pointer",children:[(0,w.jsx)(d.xv,{variant:"md",fontWeight:700,lineHeight:1.5,children:null==E?void 0:E.title}),(0,w.jsx)(b.mr,{ml:1,w:4,_groupHover:{transform:"translateX(8px)"},transition:"100ms ease-out"})]})}),(0,w.jsx)(d.X6,{size:["xl","h4"],fontSize:["24px","30px"],mt:1,mb:[4,6],textAlign:"left",children:null==I?void 0:I.title})]})]}),(0,w.jsx)(y,{children:(0,w.jsx)("div",{id:"stamped-main-widget",className:"stamped-main-widget","data-product-type":null==I?void 0:I.productType,"data-widget-style":"standard","data-product-id":O,"data-name":S?null===(i=window)||void 0===i?void 0:i.encodeURIComponent(null==I?void 0:I.title):"","data-url":""+(null==P?void 0:P.shopifyShopDomain)+(null==q?void 0:q.PRODUCT)+"/"+(null==I?void 0:I.handle),"data-image-url":null==I||null===(p=I.images)||void 0===p||null===(x=p[0])||void 0===x?void 0:x.src,"data-description":S?null===(C=window)||void 0===C?void 0:C.encodeURIComponent(null==I?void 0:I.description):"","data-product-sku":null==I?void 0:I.handle,"data-animation":!1})}),(0,w.jsx)(c.J,{id:I.id,title:"You May Also Love",bgColor:"transparent"})]})]})})},y=function(e){var t=e.children,n=(0,p.Fg)().components,r={"#stamped-main-widget":{m:0},"*":{fontFamily:"body",color:"brand.avocado"},".fa-star-checked:before, .stamped-fa-star-checked:before, .fa-star:before, .stamped-fa-star:before":{fontSize:0,content:"url(\"data:image/svg+xml,%3Csvg width='100%' height='100%' viewBox='0 0 15 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.34625 0.811203C8.08131 0.3546 7.42192 0.354598 7.15697 0.811203L5.29106 4.02685C5.16018 4.25241 4.93396 4.40634 4.6761 4.44528L1.17926 4.97344C0.59194 5.06214 0.385924 5.80369 0.843322 6.18264L3.44832 8.34085C3.68946 8.54063 3.80284 8.85576 3.74426 9.16337L3.06284 12.7419C2.95511 13.3076 3.54897 13.7471 4.05851 13.4788L7.35123 11.7451C7.60184 11.6131 7.90138 11.6131 8.152 11.7451L11.4447 13.4788C11.9543 13.7471 12.5481 13.3076 12.4404 12.7419L11.759 9.16337C11.7004 8.85576 11.8138 8.54063 12.0549 8.34085L14.6599 6.18264C15.1173 5.80369 14.9113 5.06214 14.324 4.97344L10.8271 4.44528C10.5693 4.40634 10.343 4.25241 10.2122 4.02685L8.34625 0.811203Z' fill='%23FC9173'/%3E%3C/svg%3E%0A\") !important",mx:"1px"},".fa-star-o:before, .stamped-fa-star-o:before":{content:"url(\"data:image/svg+xml,%3Csvg width='100%' height='100%' viewB
1ox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.21429 1.58367C6.67795 0.784609 7.83187 0.784612 8.29554 1.58367L9.71546 4.03073C9.84635 4.25629 10.0726 4.41021 10.3304 4.44916L12.6883 4.80529C13.7161 4.96053 14.0766 6.25823 13.2762 6.92139L11.5582 8.34473C11.3171 8.54451 11.2037 8.85963 11.2623 9.16725L11.7435 11.6945C11.932 12.6844 10.8928 13.4536 10.0011 12.9841L7.6553 11.749C7.40468 11.617 7.10514 11.617 6.85453 11.749L4.50875 12.9841C3.61706 13.4536 2.57781 12.6844 2.76632 11.6945L3.24756 9.16725C3.30614 8.85963 3.19276 8.54451 2.95162 8.34473L1.23363 6.92139C0.43318 6.25823 0.793708 4.96052 1.82152 4.80529L4.1794 4.44916C4.43725 4.41021 4.66348 4.25629 4.79436 4.03073L6.21429 1.58367ZM7.40357 2.10124C7.33733 1.98709 7.17249 1.98709 7.10625 2.10124L5.68632 4.5483C5.39838 5.04453 4.90069 5.38316 4.33341 5.46884L1.97553 5.82497C1.8287 5.84715 1.77719 6.03253 1.89154 6.12727L3.60954 7.55061C4.14004 7.99012 4.38948 8.6834 4.26061 9.36015L3.77937 11.8874C3.75244 12.0288 3.9009 12.1387 4.02829 12.0716L6.37406 10.8365C6.92542 10.5462 7.58441 10.5462 8.13576 10.8365L10.4815 12.0716C10.6089 12.1387 10.7574 12.0288 10.7305 11.8874L10.2492 9.36015C10.1203 8.6834 10.3698 7.99013 10.9003 7.55061L12.6183 6.12727C12.7326 6.03253 12.6811 5.84715 12.5343 5.82497L10.1764 5.46884C9.60913 5.38316 9.11144 5.04453 8.8235 4.5483L7.40357 2.10124Z' fill='%23FC9173'/%3E%3C/svg%3E%0A\")",mx:"1px"},".stamped-summary":{border:"unset"},".stamped-review>.stamped-review-content, .stamped-header-right":{border:"unset"},".stamped-summary-text-1, .stamped-summary-recommend-percent":{bg:"unset !important",color:"brand.avocado",fontFamily:"heading",fontSize:"47px !important",p:"0 !important",lineHeight:"1 !important"},".stamped-summary-recommend":{display:"flex",flexDir:"column",alignItems:"flex-start"},".stamped-summary-recommend-label, .stamped-summary-text":{fontSize:"14px"},".stamped-summary-recommend-label":{mt:2},".stamped-header-left":{w:["full","full","30%"],textAlign:"unset"},".stamped-header-right":{minH:"unset",w:["full","full","67%"]},".fa-star, .fa-star-o, .fa-star-half-o, .stamped-fa-star, .stamped-fa-star-o, .stamped-fa-star-half-o":{width:"24px",height:"24px"},".stamped-review-content, .stamped-review-reply":{bgColor:"brand.offWhite",pl:"10% !important",pb:"14 !important",pt:["7 !important","14 !important"],pr:["10 !important","14 !important"],".fa-star, .fa-star-o, .fa-star-half-o, .stamped-fa-star, .stamped-fa-star-o, .stamped-fa-star-half-o":{width:"15px",height:"15px"}},".stamped-review-reply":{border:"unset !important",bgColor:"brand.offWhite !important",w:"full",pt:"0 !important",mt:"0 !important"},"#stamped-main-widget div.stamped-review-product, .stamped-review-recommend[data-is-recommend=true]":{display:"none !important"},".stamped-review":{bgColor:"brand.lightSand",borderColor:"brand.avocado",display:"flex",alignItems:"center",mb:"40px","@media(max-width: 600px)":{flexDirection:"column"}},"#stamped-questions-tab .stamped-review":{bgColor:"brand.offWhite",flexWrap:"wrap"},"#stamped-questions-tab .stamped-review-header":{display:"flex",alignItems:"center"},".stamped-review-header-title, .stamped-review-content-body *":{fontFamily:"heading",fontSize:["4xl","5xl"],lineHeight:["41.6px","46.8px"],mt:[4,2],mb:[2,4]},".stamped-review .author":{fontFamily:"heading",fontSize:"20px"},".stamped-review-content-body":{fontSize:"md"},".stamped-review-avatar":{textShadow:"unset",mt:[0,"-10px"]},".stamped-review-avatar-content":{fontFamily:"heading",color:"brand.avocado",fontSize:"calc(1.2rem)"},".stamped-review-header .review-location":{fontSize:"15px"},".created":{position:"absolute",top:["unset",6],bottom:[6,"unset"],right:["unset",7],left:[7,"unset"],fontSize:"xs",color:"brand.avocado !important"},".stamped-review-footer .stamped-review-vote":{position:"absolute",bottom:6,right:7},".stamped-rating-holder":{fontSize:"xs"},".stamped-review-header":{width:["full","24%"],minW:"30%",display:["flex","block"],alignItems:"center",flexWrap:"wrap",flexDirection:"row"},".stamped-summary-keywords-list":{maxW:"full",maxH:"unset",overflow:"unset"},".stamped-container[data-widget-show-upload=true] .stamped-file-uploader":{display:"none !important"},"ul.stamped-summary-keywords-list li, .stamped-summary-actions-newquestion, .stamped-summary-actions-newreview, .stamped-summary-actions-clear, #stamped-button-submit, .stamped-button-primary":{boxShadow:"unset !important",lineHeight:"none",borderRadius:"base",fontWeight:"normal",border:"1.5px",bgColor:"brand.offWhite",borderColor:"brand.avocado",color:"brand.avocado",py:2,minW:[25,49],maxW:"full",fontSize:["md","xl"],textAlign:"center",_active:{bgColor:["brand.offWhite","brand.avocado"],borderColor:["brand.avocado","transparent"],
1color:["brand.avocado","brand.offWhite"]},_hover:{bgColor:["brand.offWhite","brand.avocado"],borderColor:["brand.avocado","transparent"],color:["brand.avocado","brand.offWhite"]}},".stamped-summary-actions-clear":{bgColor:["brand.offWhite","brand.avocado"],borderColor:["brand.avocado","transparent"],color:["brand.avocado","brand.offWhite"],_before:{display:"none"}},"ul.stamped-summary-keywords-list li.selected":{bgColor:"brand.avocado !important",borderColor:"brand.avocado !important",color:"brand.offWhite !important"},".stamped-main-widget-loading .stamped-reviews>span:first-of-type":{bgColor:"brand.peachy",p:6,borderRadius:"4px"},".stamped-container ul.stamped-tabs":{height:"unset"},".stamped-container ul.stamped-tabs li":{width:"33% !important",fontSize:"2xl",textAlign:"center",color:"brand.avocado !important",fontWeight:400,pt:2,pr:4,pb:5,pl:2,lineHeight:1,borderColor:"gray.200 !important",borderBottom:"2px",m:0,_after:{display:"none"},"&.active":{borderColor:"brand.avocado !important"}},".stamped-reviews-search-text input.stamped-reviews-search-input, .stamped-questions-search-text input.stamped-questions-search-input":{border:"1px !important",borderColor:"brand.apricot !important",bg:"brand.offWhite",fontSize:"md",borderRadius:"base",clear:"unset",_focus:{borderColor:"brand.avocado"},_disabled:{background:"brand.disabledLight",borderColor:"brand.disabledDark",color:"brand.disabledDark"},_placeholder:{color:"brand.avocado",lineHeight:"1 !important",py:"4 !important",pr:"4 !important"}},"input.stamped-form-input-text, input.stamped-form-input-email":Object.assign({},n.Input.baseStyle.field,{bgColor:"brand.offWhite"}),textarea:Object.assign({},n.Textarea.baseStyle,{bgColor:"brand.offWhite"}),".stamped-form-review-recommend label":{display:"flex",alignItems:"center",input:{mr:2}},"#stamped-button-submit":Object.assign({},n.Button.variants.solid),"input.stamped-form-input":{height:"unset"},label:{mb:2,"&:last-of-type":{mb:6}},".stamped-form-custom-option-scale label":{float:"unset",width:"20px",m:"0 !important"},".stamped-form-custom-option-scale label:first-of-type":{mt:"-10px"},".stamped-form-review-rating input":{bg:"inherit"},".stamped-form-custom-option-scale":{display:"flex",border:"unset"},"#stamped-sort-select, #stamped-sort-select-3":{fontSize:"md",borderColor:"brand.avocado !important",border:"1px !important",mt:0},".stamped-reviews-filter-label, .stamped-icon-comment, .stamped-questions span.stamped-review-header-byline":{display:"none !important"},".stamped-questions-search-icon":{display:"none !important"}};return(0,w.jsx)(d.xu,{sx:r,children:t})},C=(0,s.memo)(x),k=n(66027),S=["data"],j=function(e){var t=e.data,n=(0,r.Z)(e,S);return(0,w.jsx)(C,Object.assign({},n,t))}}}]); 2//# sourceMappingURL=component---src-pages-review-write-tsx-1424602fc4a8f799bb0a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.