PageSourceSearch

https://ketochow.xyz/_next/static/immutable/chunks/0hn-_j9k41laj.js

js ketochow.xyz collected 2026-09-28 08:10:59 UTC 41,722 bytes, 8 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,791289,e=>{"use strict";var t=e.i(391398),r=e.i(191788),a=e.i(691567),s=e.i(579533),l=e.i(779832),n=e.i(584602),i=e.i(786613);let o=function(){let e=(0,r.useId)();return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"71",height:"56",viewBox:"0 0 71 56",fill:"none",children:[(0,t.jsx)("g",{clipPath:`url(#${e})`,children:(0,t.jsx)("path",{d:"M55.054 0.0953655C51.5978 0.0953655 55.9802 0.0763036 44.6299 0.000171392C43.8801 -0.00479626 39.2994 0.0998731 35.5 0.0998731C31.7657 0.383062 27.6367 0.173241 24.0525 0.361279C20.7423 0.534938 17.4206 0.572744 14.119 0.279575C5.31821 -0.501879 -0.0389645 4.11258 0.00944912 12.5391C0.0778588 24.4418 0.234526 13.0596 0.295547 24.9623C0.310846 27.9527 0.0813648 29.1775 0.00542162 32.1693C-0.171093 39.1207 3.96235 45.1378 12.4392 44.9227C23.7403 44.6358 19.5369 44.9157 30.846 45.0354C32.1388 45.0491 33.6135 45.2925 34.6841 45.9479C40.274 49.3701 52.0758 55.5462 52.4723 56H53.4221V44.8463C58.9877 44.8463 55.3026 44.8814 57.3386 44.8814C64.7125 44.8814 67.2497 43.7568 70.449 37.2524C70.5763 36.9937 70.8138 31.1773 71 30.9471V9.70816C71 8.55978 70.7117 7.4212 70.1235 6.43374C66.8517 0.940742 61.3959 0.0953655 55.054 0.0953655ZM48.3619 8.88777C49.1461 8.8776 49.9306 8.87275 50.7146 8.88765C50.9864 8.89285 51.1277 8.80921 51.2088 8.54049C51.4374 7.78275 51.6872 7.03114 51.9422 6.28171C51.9785 6.17497 52.0903 6.09387 52.1672 6.00087C52.2447 6.09329 52.3579 6.1737 52.3943 6.2801C52.6509 7.02871 52.9047 7.77871 53.1306 8.5368C53.2119 8.80967 53.3494 8.89227 53.6209 8.88731C54.3928 8.87321 55.1653 8.87806 55.9374 8.8865C56.0751 8.888 56.2122 8.94207 56.3496 8.97187V9.18848C55.5946 9.71991 54.8339 10.2438 54.0924 10.7935C54.0093 10.8552 53.9828 11.0788 54.0194 11.2007C54.2437 11.947 54.4996 12.6837 54.7296 13.4284C54.7704 13.5607 54.7393 13.7151 54.7415 13.8592C54.6021 13.8174 54.4405 13.8074 54.3274 13.7283C53.7053 13.2938 53.0887 12.8508 52.4841 12.3926C52.2504 12.2154 52.0733 12.2251 51.8432 12.3997C51.2292 12.8654 50.6025 13.3148 49.9707 13.7561C49.8693 13.8269 49.7152 13.823 49.5856 13.8536C49.5874 13.729 49.5604 13.5955 49.5958 13.4812C49.8192 12.7598 50.0434 12.0378 50.2953 11.326C50.3999 11.0303 50.3682 10.8469 50.093 10.6606C49.455 10.2287 48.8371 9.76704 48.2199 9.30551C48.1286 9.23712 48.0858 9.10427 48.0206 9.00121C48.1343 8.96171 48.2477 8.88927 48.3619 8.88777ZM38.1261 8.88777C38.9103 8.8776 39.6948 8.87275 40.4789 8.88765C40.7505 8.89285 40.8919 8.80921 40.9729 8.54049C41.2015 7.78275 41.4514 7.03114 41.7064 6.28171C41.7427 6.17497 41.8545 6.09387 41.9313 6.00087C42.009 6.09329 42.122 6.1737 42.1585 6.2801C42.4151 7.02871 42.6689 7.77871 42.8948 8.5368C42.976 8.8
10967 43.1135 8.89227 43.385 8.88731C44.157 8.87321 44.9295 8.87806 45.7016 8.8865C45.8393 8.888 45.9764 8.94207 46.1138 8.97187V9.18848C45.3587 9.71991 44.598 10.2438 43.8566 10.7935C43.7735 10.8552 43.7469 11.0788 43.7836 11.2007C44.0078 11.947 44.2637 12.6837 44.4937 13.4284C44.5346 13.5607 44.5035 13.7151 44.5056 13.8592C44.3664 13.8174 44.2047 13.8074 44.0916 13.7283C43.4695 13.2938 42.8528 12.8508 42.2482 12.3926C42.0145 12.2154 41.8375 12.2251 41.6073 12.3997C40.9933 12.8654 40.3667 13.3148 39.7348 13.7561C39.6334 13.8269 39.4795 13.823 39.3498 13.8536C39.3516 13.729 39.3246 13.5955 39.36 13.4812C39.5834 12.7598 39.8076 12.0378 40.0595 11.326C40.1641 11.0303 40.1323 10.8469 39.8572 10.6606C39.2191 10.2287 38.6012 9.76704 37.9841 9.30551C37.8927 9.23712 37.8499 9.10427 37.7847 9.00121C37.8985 8.96171 38.0118 8.88927 38.1261 8.88777ZM27.8902 8.88777C28.6744 8.8776 29.459 8.87275 30.243 8.88765C30.5147 8.89285 30.656 8.80921 30.7371 8.54049C30.9657 7.78275 31.2155 7.03114 31.4706 6.28171C31.5069 6.17497 31.6187 6.09387 31.6955 6.00087C31.7731 6.09329 31.8862 6.1737 31.9227 6.2801C32.1792 7.02871 32.433 7.77871 32.6589 8.5368C32.7402 8.80967 32.8777 8.89227 33.1493 8.88731C33.9211 8.87321 34.6936 8.87806 35.4657 8.8865C35.6034 8.888 35.7406 8.94207 35.878 8.97187V9.18848C35.1229 9.71991 34.3623 10.2438 33.6208 10.7935C33.5376 10.8552 33.5111 11.0788 33.5477 11.2007C33.772 11.947 34.0279 12.6837 34.2579 13.4284C34.2987 13.5607 34.2677 13.7151 34.2698 13.8592C34.1305 13.8174 33.9688 13.8074 33.8557 13.7283C33.2336 13.2938 32.617 12.8508 32.0124 12.3926C31.7787 12.2154 31.6016 12.2251 31.3715 12.3997C30.7575 12.8654 30.1308 13.3148 29.499 13.7561C29.3976 13.8269 29.2436 13.823 29.1139 13.8536C29.1158 13.729 29.0888 13.5955 29.1241 13.4812C29.3475 12.7598 29.5717 12.0378 29.8237 11.326C29.9283 11.0303 29.8965 10.8469 29.6213 10.6606C28.9834 10.2287 28.3654 9.76704 27.7482 9.30551C27.6569 9.23712 27.6141 9.10427 27.5489 9.00121C27.6627 8.96171 27.776 8.88927 27.8902 8.88777ZM17.6544 8.88777C18.4386 8.8776 19.2231 8.87275 20.0071 8.88765C20.2789 8.89285 20.4202 8.80921 20.5013 8.54049C20.7299 7.78275 20.9797 7.03114 21.2347 6.28171C21.271 6.17497 21.3828 6.09387 21.4596 6.00087C21.5373 6.09329 21.6504 6.1737 21.6868 6.2801C21.9434 7.02871 22.1972 7.77871 22.4231 8.5368C22.5044 8.80967 22.6419 8.89227 22.9134 8.88731C23.6854 8.87321 24.4578 8.87806 25.2299 8.8865C25.3676 8.888 25.5047 8.94207 25.6421 8.97187V9.18848C24.8871 9.71991 24.1264 10.2438 23.385 10.7935C23.3018 10.8552 23.2753 11.0788 23.3119 11.2007C23.5361 11.947 23.7921 12.6837 24.0221 13.4284C24.063 13.5607 24.0318 13.7151 24.034 13.8592C23.8947 13.8174 23.733 13.8074 23.6199 13.7283C22.9978 13.2938 22.3812 12.8508 21.7765 12.3926C21.5429 12.2154 21.3658 12.2251 21.1356 12.3997C20.5217 12.8654 19.895 13.3148 19.2632 13.7561C19.1618 13.8269 19.0078 13.823 18.8781 13.8536C18.8799 13.729 18.853 13.5955 18.8883 13.4812C19.1117 12.7598 19.3359 12.0378 19.5878 11.326C19.6924 11.0303 19.6607 10.8469 19.3855 10.6606C18.7475 10.2287 18.1295 9.76704 17.5124 9.30551C17.421 9.23712 17.3783 9.10427 17.313 9.00121C17.4268 8.96171 17.5402 8.88927 17.6544 8.88777ZM7.41859 8.88777C8.20277 8.8776 8.98732 8.87275 9.77132 8.88765C10.043 8.89285 10.1844 8.80921 10.2654 8.54049C10.494 7.78275 10.7439 7.03114 10.9989 6.28171C11.0352 6.17497 11.147 6.09387 11.2238 6.00087C11.3015 6.09329 11.4145 6.1737 11.451 6.2801C11.7076 7.02871 11.9614 7.77871 12.1872 8.5368C12.2686 8.80967 12.406 8.89227 12.6775 8.88731C13.4495 8.87321 14.222 8.87806 14.9941 8.8865C15.1318 8.888 15.2689 8.94207 15.4063 8.97187V9.18848C14.6513 9.71991 13.8906 10.2438 13.1491 10.7935C13.066 10.8552 13.0395 11.0788 13.0761 11.2007C13.3003 11.947 13.5562 12.6837 13.7863 13.4284C13.8271 13.5607 13.796 13.7151 13.7981 13.8592C13.6589 13.8174 13.4972 13.8074 13.3841 13.7283C12.762 13.2938 12.1453 12.8508 11.5407 12.3926C11.307 12.2154 11.13 12.2251 10.8998 12.3997C10.2859 12.8654 9.65916 13.3148 9.02733 13.7561C8.92592 13.8269 8.77195 13.823 8.64226 13.8536C8.64411 13.729 8.61711 13.5955 8.65249 13.4812C8.87588 12.7598 9.10006 12.0378 9.352 11.326C9.4566 11.0303 9.42484 10.8469 9.14964 10.6606C8.51167 10.2287 7.89369 9.76704 7.27656 9.30551C7.1852 9.23712 7.14243 9.10427 7.07721 9.00121C7.19096 8.96171 7.30431 8.88927 7.41859 8.88777Z
1M32.0918 19.6652C33.1309 19.644 35.1102 20.4599 35.0832 20.7354C34.9029 22.5717 33.2183 22.2625 31.9624 22.2974C27.8742 22.4106 23.7805 22.3484 19.6939 22.4934C16.8275 22.595 13.5655 22.8107 10.6945 22.8421C7.37542 22.8785 6.99527 22.6107 6.57003 20.19C14.551 19.9734 26.8554 19.7714 32.0918 19.6652ZM49.0498 34.8019C44.9616 34.9152 23.7805 34.8529 19.6939 34.9979C16.8275 35.0994 13.5655 35.3152 10.6945 35.3466C7.37542 35.3829 6.99527 35.1151 6.57003 32.6945C14.551 32.4779 43.9428 32.2759 49.1792 32.1697C50.2183 32.1485 52.1976 32.9644 52.1705 33.2399C51.9903 35.0762 50.3056 34.7671 49.0498 34.8019ZM63.1663 28.5497C59.0781 28.663 23.7805 28.6007 19.6939 28.7457C16.8275 28.8472 13.5655 29.0629 10.6945 29.0943C7.37542 29.1307 6.99527 28.8629 6.57003 26.4423C14.551 26.2256 58.0593 26.0236 63.2957 25.9173C64.3348 25.8963 66.3141 26.7122 66.2871 26.9876C66.1068 28.824 64.4221 28.5149 63.1663 28.5497Z",fill:"#0D0D0D"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:e,children:(0,t.jsx)("rect",{width:"71",height:"56",fill:"white"})})})]})};var d=e.i(333286),c=e.i(105986),C=e.i(203828);function u({ratingRef:e,rating:r,setRating:a,handleRadioChange:l,ratingError:n}){return(0,t.jsxs)("form",{onChange:e=>{a(e.target.value)},children:[(0,t.jsxs)("div",{className:"flex justify-between","aria-hidden":"true",children:[(0,t.jsx)(s.default,{averageRating:r,height:"30",width:"30",color:"#0D0D0D",setRating:a}),(0,t.jsxs)("div",{className:"flex items-center",ref:e,children:[r&&(0,t.jsx)("button",{className:"text-kc_link_blue hover:text-kc_link_hover_blue hover:underline",type:"button",onClick:()=>a(null),children:"Clear"}),!r&&n&&(0,t.jsx)("button",{className:"text-kc_red pointer-events-none",children:"Required"})]})]}),(0,t.jsxs)("div",{className:"sr-only",children:[(0,t.jsxs)("label",{className:"flex items-center",children:[(0,t.jsx)("input",{type:"radio",name:"option",value:"5",checked:"5"===r,onChange:l,className:"appearance-none rounded-full h-2 w-2 outline outline-offset-2 outline-2 outline-kc_black bg-kc_offwhite checked:outline-kc_black checked:bg-kc_black transition duration-200 mt-1 cursor-pointer mr-2"}),"5 Stars"]}),(0,t.jsxs)("label",{className:"flex items-center",children:[(0,t.jsx)("input",{type:"radio",name:"option",value:"4",checked:"4"===r,onChange:l,className:"appearance-none rounded-full h-2 w-2 outline outline-offset-2 outline-2 outline-kc_black bg-kc_offwhite checked:outline-kc_black checked:bg-kc_black transition duration-200 mt-1 cursor-pointer mr-2"}),"4 Stars"]}),(0,t.jsxs)("label",{className:"flex items-center",children:[(0,t.jsx)("input",{type:"radio",name:"option",value:"3",checked:"3"===r,onChange:l,className:"appearance-none rounded-full h-2 w-2 outline outline-offset-2 outline-2 outline-kc_black bg-kc_offwhite checked:outline-kc_black checked:bg-kc_black transition duration-200 mt-1 cursor-pointer mr-2"}),"3 Stars"]}),(0,t.jsxs)("label",{className:"flex items-center",children:[(0,t.jsx)("input",{type:"radio",name:"option",value:"2",checked:"2"===r,onChange:l,className:"appearance-none rounded-full h-2 w-2 outline outline-offset-2 outline-2 outline-kc_black bg-kc_offwhite checked:outline-kc_black checked:bg-kc_black transition duration-200 mt-1 cursor-pointer mr-2"}),"2 Stars"]}),(0,t.jsxs)("label",{className:"flex items-center",children:[(0,t.jsx)("input",{type:"radio",name:"option",value:"1",checked:"1"===r,onChange:l,className:"appearance-none rounded-full h-2 w-2 outline outline-offset-2 outline-2 outline-kc_black bg-kc_offwhite checked:outline-kc_black checked:bg-kc_black transition duration-200 mt-1 cursor-pointer mr-2"}),"1 Star"]})]})]})}u.propTypes={ratingRef:a.default.object,rating:a.default.string,setRating:a.default.func.isRequired,handleRadioChange:a.default.func.isRequired,ratingError:a.default.bool};var m=e.i(41158);function x({className:e}){return(0,t.jsxs)("svg",{className:e,width:"82",height:"67",viewBox:"0 0 82 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_649_7771)",children:[(0,t.jsx)("path",{d:"M45.7383 19.5074C43.2359 19.5074 40.6774 20.1881 38.1377 21.5215C32.638 24.4215 31.0694 30.268 31.4428 34.7718C31.8537 39.8071 34.6082 43.882 38.4458 45.1594C40.1079 45.7096 41.8726 45.9893 43.7027 45.9893C50.8177 45.9893 58.549 41.5974 58.8
1665 33.4663C59.0159 29.7551 57.634 26.1092 55.0849 23.461C52.6199 20.9061 49.3051 19.498 45.7383 19.498V19.5074ZM46.784 23.4797C47.3069 23.4144 47.7645 23.517 48.2313 23.7594C48.362 23.8247 48.2687 24.0485 48.1286 24.0018C47.7084 23.8526 47.2322 23.7967 46.784 23.806C46.5693 23.806 46.5786 23.5076 46.784 23.4797ZM41.3777 24.897C41.9286 24.2163 42.9557 23.834 43.7961 23.7594C44.0575 23.7314 44.1042 24.151 43.8615 24.207C43.4226 24.3096 42.9838 24.4681 42.5729 24.6546C42.2274 24.8224 41.9006 25.0555 41.5458 25.1861C41.3684 25.2513 41.2844 25.0182 41.3777 24.897ZM33.7865 31.5361C33.6931 31.8439 33.1609 31.8998 33.1049 31.5361C32.6567 28.7201 34.8323 25.298 37.1106 23.7967C37.4934 23.5449 38.0443 24.0578 37.7549 24.4494C36.9238 25.5684 35.9061 26.5754 35.2058 27.7876C34.4961 28.9998 34.16 30.212 33.7772 31.5361H33.7865ZM39.2021 40.3666C37.2506 39.4807 35.9341 36.9911 35.9808 34.893C35.9808 34.7625 36.1769 34.7345 36.2049 34.865C36.6811 36.7952 37.6615 38.9119 39.4262 39.9843C39.6783 40.1335 39.4543 40.4878 39.2021 40.3666ZM42.6476 41.7653C42.2181 41.8119 41.8446 41.7746 41.4431 41.644C41.2283 41.5694 41.247 41.1871 41.4991 41.2244C41.8819 41.2711 42.2648 41.3084 42.6476 41.3363C42.9277 41.355 42.9184 41.7373 42.6476 41.7653ZM44.6645 37.6065C44.0109 37.6065 43.3759 37.5039 42.7783 37.3081C41.3217 36.8232 40.2853 35.3126 40.1265 33.457C39.9958 31.8159 40.5654 29.6899 42.5916 28.6175C43.4973 28.142 44.4124 27.8995 45.3181 27.8995C46.6253 27.8995 47.8485 28.4124 48.7542 29.3542C49.6879 30.3239 50.1921 31.648 50.1361 33.0094C50.0241 35.9933 47.2322 37.6065 44.6551 37.6065H44.6645ZM53.8057 32.422C53.5723 31.4802 53.2641 30.3426 53.3388 29.3728C53.3482 29.2516 53.4882 29.2236 53.5536 29.3169C54.1605 30.1281 54.1698 31.387 54.2632 32.3567C54.2912 32.6178 53.871 32.6737 53.8057 32.422Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M20.3048 13.8563C19.6231 13.8563 17.5036 13.8563 17.5036 13.8563C14.5063 13.5113 16.7099 13.6046 14.0581 13.6605C11.4157 13.7071 9.61356 13.8004 8.86657 13.9589C8.11959 14.1081 7.31658 14.9566 7.07381 15.5068C6.83104 16.057 6.72833 18.1457 7.07381 19.1994C7.41929 20.253 7.56869 21.1389 8.56778 21.689C9.56687 22.2392 11.1169 22.4909 14.3102 22.5376C17.5036 22.5842 17.4195 22.8266 18.4653 22.752C19.5111 22.6868 20.865 23.4514 21.7147 21.9688C22.5644 20.4861 22.6111 20.4395 22.7605 19.19C22.9099 17.9405 23.7129 17.092 23.0593 15.7959C22.4057 14.4997 20.9864 13.847 20.2954 13.847L20.3048 13.8563ZM14.4503 20.8964L13.2831 21.1948C13.2831 21.1948 13.6006 20.5141 13.7967 20.3836C13.9928 20.253 15.44 18.7797 15.44 18.7797C15.44 18.7797 16.1964 18.4627 16.4765 18.1177C16.7566 17.7727 19.0256 16.3647 19.0256 16.3647L20.3701 15.8798H21.2012V16.5512L19.8192 17.5023C19.8192 17.5023 18.6427 18.099 18.512 18.2576C18.3813 18.4161 17.2421 19.0968 17.1114 19.2739C16.9807 19.4418 16.1217 19.9173 15.9069 20.0386C15.6921 20.1691 14.4503 20.8871 14.4503 20.8871V20.8964ZM21.2852 19.3206C21.1545 19.6656 19.8192 20.598 19.8192 20.598C19.8192 20.598 18.8948 20.9804 18.428 21.1948C17.9611 21.4093 17.1114 21.4093 17.1114 21.4093C17.1114 21.4093 17.3635 20.9431 17.5129 20.7659C17.6623 20.598 18.9042 19.7029 19.1563 19.619C19.4084 19.535 20.7903 18.8543 20.7903 18.8543L21.64 18.2669C21.64 18.2669 21.4252 18.9849 21.2945 19.3206H21.2852Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M6.44555 46.7538C6.42687 48.1058 7.52867 49.0476 9.21872 49.1129C11.0022 49.1875 12.188 48.0965 12.3094 46.2875C12.4121 44.6837 11.7211 43.5647 10.6006 43.5274C8.43439 43.4622 6.47356 44.9727 6.44555 46.7538Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M56.2373 51.7419C56.2653 51.5554 56.3027 51.3689 56.34 51.1824C56.9469 48.3384 58.5343 45.8767 61.0647 43.8625C64.3701 41.2143 68.3851 40.3658 73.2779 41.2237C73.2499 37.8668 73.2499 33.6614 73.2499 29.5306C73.2499 22.8262 73.2499 16.4947 73.1378 14.5739C72.9137 10.8067 71.8773 6.75051 65.0891 6.75051C64.7249 6.75051 64.3421 6.75983 63.9686 6.7878C57.7219 7.20741 53.5762 6.99295 49.4771 6.99295C43.8093 6.99295 37.6094 6.98362 31.6242 6.96497C30.1209 6.96497 32.7913 6.96497 31.3254 6.95565C30.9425 5.64087 29.2431 0.344485 26.7408 0.102045C25.3775 -0.0378249 12.9776 -0.280265 11.0354 1.37952C9.62548 2.59172 8.31826 5.81804 7.860
173 7.03957C2.87461 7.32863 0.325524 10.3871 0.0827542 16.3735C-0.0386307 19.4227 -0.0292934 29.2881 0.129441 37.8761C0.250826 44.478 0.465584 50.3338 0.773715 51.7791C0.988472 52.7769 1.57672 53.7 2.43575 54.5299C4.65803 56.6746 8.75711 58.1385 13.2577 58.1385C13.5005 58.1385 13.7432 58.1385 13.986 58.1292C15.3026 58.0826 18.6546 58.0639 24.5558 58.0639C28.991 58.0639 30.2049 58.0733 35.8353 58.0919C42.0446 58.1012 45.3313 58.1199 51.2418 58.1199C53.156 58.1199 54.7807 58.1199 56.1626 58.1199C56.1626 58.1106 56.1626 58.1012 56.1626 58.0919C55.9292 55.8913 55.9011 53.7653 56.2373 51.7605V51.7419ZM9.61614 6.41482C9.61614 6.41482 9.61614 6.40549 9.61614 6.39617C9.70018 6.20968 9.78421 6.00454 9.86825 5.80872C9.87758 5.78074 9.89626 5.74345 9.9056 5.71547C10.083 5.32384 10.2791 4.91355 10.4845 4.52192C10.5032 4.48462 10.5219 4.44732 10.5499 4.4007C10.6526 4.21421 10.746 4.03704 10.8487 3.85987C10.8673 3.8319 10.886 3.80392 10.9047 3.77595C10.9981 3.61743 11.0914 3.46824 11.1848 3.32837C11.2035 3.30039 11.2222 3.27242 11.2408 3.24445C11.3435 3.09525 11.4463 2.95538 11.549 2.83416C11.5676 2.80619 11.5956 2.77821 11.6143 2.75956C11.717 2.63834 11.8291 2.52645 11.9318 2.4332C12.4547 1.98562 14.8357 1.68723 17.5715 1.51939C17.8143 1.53804 18.0477 1.55669 18.2812 1.58466C18.4492 1.52871 18.6173 1.50074 18.7947 1.46344C21.7826 1.3329 24.9106 1.34222 26.4326 1.46344C26.6754 1.53804 26.9088 1.62196 27.1236 1.72453C27.1236 1.72453 27.1236 1.72453 27.1329 1.73385C27.1796 1.77115 27.2263 1.80845 27.273 1.84575C27.3103 1.87372 27.3383 1.91102 27.3757 1.94832C27.4224 1.99494 27.4691 2.04157 27.5064 2.08819C27.5438 2.12549 27.5718 2.17211 27.6091 2.21874C27.6558 2.27468 27.6932 2.33063 27.7398 2.38658C27.7772 2.4332 27.8145 2.48915 27.8426 2.53577C27.8892 2.60105 27.9266 2.65699 27.9733 2.72227C28.0106 2.77821 28.048 2.83416 28.0853 2.89011C28.1227 2.95538 28.1694 3.02065 28.2067 3.09525C28.2441 3.16052 28.2814 3.21647 28.3188 3.28174C28.3561 3.35634 28.4028 3.42161 28.4401 3.49621C28.4775 3.56148 28.5148 3.63608 28.5522 3.70135C28.5895 3.77595 28.6269 3.85055 28.6642 3.92514C28.7016 3.99974 28.7389 4.07434 28.7763 4.14893C28.8136 4.22353 28.8416 4.29813 28.879 4.37273C28.9163 4.45665 28.9537 4.53124 28.991 4.61517C29.0191 4.68044 29.0564 4.75503 29.0844 4.82031C29.1218 4.90423 29.1591 4.99748 29.1965 5.0814C29.2245 5.14667 29.2431 5.20262 29.2712 5.26789C29.3085 5.37046 29.3552 5.46371 29.3925 5.56628C29.4019 5.60358 29.4206 5.63155 29.4299 5.66885C29.4486 5.7248 29.2898 5.77142 29.2338 5.66885C27.7305 3.37499 28.16 3.27242 27.5438 3.2258L26.7127 2.89943L25.6576 2.74092L25.004 2.68497C23.1085 2.21874 21.9694 2.66632 19.6537 2.53577C18.2718 2.46118 15.6854 2.44253 13.9393 2.79686H13.9206L13.5471 2.88078L13.0336 3.0766C13.0336 3.0766 13.0336 3.0766 13.0336 3.06728C13.0056 3.0766 12.9776 3.09525 12.9496 3.1139L12.8935 3.13255L12.8749 3.1512C12.6321 3.27242 12.408 3.42161 12.2212 3.60811C11.2408 4.62449 10.6059 5.85534 9.74686 6.94632C9.61614 6.94632 9.49475 6.94632 9.37337 6.94632C9.44807 6.75983 9.52277 6.57334 9.6068 6.3682L9.61614 6.41482ZM28.02 5.58493C28.076 5.77142 27.8892 5.98589 27.6932 5.92061C27.2076 5.74345 26.9742 5.30519 26.7501 4.86693C26.5167 4.42867 26.2926 3.98109 25.9938 3.58013C26.0965 3.58013 26.2085 3.58013 26.3299 3.58013C26.6941 3.85055 27.1329 4.15826 27.2823 4.37273C27.5531 4.76436 27.9079 5.1187 28.0386 5.58493H28.02ZM24.117 5.86467C24.1823 6.11643 23.8835 6.27495 23.6968 6.10711C22.9778 5.44506 23.0152 4.18623 23.1366 3.29107C23.1646 3.10458 23.4634 3.02065 23.4914 3.24445C23.5567 3.69203 23.5847 4.13961 23.6968 4.57787C23.8088 5.01612 23.9956 5.42641 24.117 5.85534V5.86467ZM20.2607 5.94859C20.0739 6.20968 
119.7004 6.10711 19.6724 5.79007C19.6351 5.37979 19.7845 4.96018 19.8031 4.54989C19.8218 4.13028 19.8405 3.71068 19.8778 3.29107C19.9058 2.96471 20.3447 2.96471 20.382 3.29107C20.4661 4.07434 20.7462 5.24924 20.2607 5.94859ZM16.4697 3.29107C16.451 3.82257 16.3016 4.34475 16.2083 4.86693C16.1429 5.24924 16.1242 5.7248 15.8908 6.05116C15.7881 6.20035 15.564 6.219 15.4613 6.05116C15.2185 5.64087 15.4146 5.10005 15.5267 4.68044C15.6667 4.17691 15.8161 3.65473 16.0215 3.17917C16.1149 2.96471 16.4697 3.0766 16.4604 3.30039L16.4697 3.29107ZM13.6032 3.44959C13.6032 3.76662 13.5378 4.07434 13.4351 4.38205C13.2857 4.84828 13.155 5.35181 12.8375 5.7248C12.6508 5.94859 12.3426 5.75277 12.3146 5.51033C12.2773 5.10005 12.4734 4.75503 12.6414 4.4007C12.7721 4.13028 13.3791 3.49621 13.5938 3.44959H13.6032ZM14.3408 46.259C14.1354 49.3361 12.1185 51.1824 9.09325 51.0518C6.2267 50.9399 4.3499 49.3361 4.38725 47.0422C4.44327 44.0211 7.74868 41.4475 11.4276 41.5687C13.3324 41.6339 14.5089 43.5362 14.3315 46.2496L14.3408 46.259ZM22.8284 23.9824C21.4652 24.3181 20.8302 24.3554 19.467 24.3554H16.7872C15.6387 24.3554 8.1782 24.3088 6.34808 22.7143C4.96616 21.5114 4.4246 18.3783 4.61135 16.0378C4.77008 14.0797 5.41435 12.6437 6.43212 12.0096C6.71224 11.8324 7.44989 11.3755 12.3053 11.3755C17.1607 11.3755 21.9227 11.8977 23.5194 12.3826C25.088 12.8488 25.5829 15.525 25.5362 17.8655C25.4802 20.3924 24.7332 23.4975 22.8191 23.9824H22.8284ZM15.2652 9.35208C13.0429 9.51992 10.8393 10.0235 8.61705 10.0701C8.04747 10.0794 7.48724 10.0887 6.91766 10.1167C5.09689 10.7508 3.57491 11.8511 2.91196 14.1543C2.23033 16.5134 2.30503 18.9751 2.03425 21.4088C1.81016 23.3577 1.5954 25.3158 1.38998 27.2647C1.36196 22.4718 1.38998 18.3317 1.46468 16.4388C1.51136 15.2732 1.65142 14.2475 1.87552 13.343C2.00624 13.0167 2.1463 12.681 2.32371 12.3639C2.26768 12.3173 2.24901 12.2427 2.24901 12.1588C3.25744 9.65979 5.24628 8.47556 8.37428 8.40097C10.3725 8.35434 14.1261 8.33569 20.1953 8.33569C24.7986 8.33569 26.0311 8.34502 31.6148 8.36367C35.4898 8.36367 39.4582 8.38232 43.3051 8.38232C45.2193 8.44759 47.1428 8.52219 49.0569 8.55948C49.0382 8.50354 49.0382 8.43826 49.0382 8.38232C49.1783 8.38232 49.3277 8.38232 49.4677 8.38232C53.8189 8.38232 50.7376 8.38232 53.7162 8.35434C53.7162 8.38232 53.7256 8.41029 53.7162 8.44759C54.6313 8.42894 61.9517 8.39164 62.8668 8.33569C63.315 8.33569 63.6604 8.33569 63.9126 8.32637C65.4999 8.57813 66.9005 9.10031 68.0677 9.77169C68.4785 10.0887 68.6092 9.86493 68.9547 10.2286C69.0574 10.2006 69.1694 10.2286 69.2535 10.3125C69.2348 10.2845 69.2161 10.2566 69.2068 10.2193C69.1975 10.2006 69.1975 10.182 69.1881 10.1633C69.9631 10.816 70.8222 12.1122 71.2143 12.8768C71.2703 13.054 71.3264 13.2404 71.3544 13.4269C71.4384 13.5668 71.5131 13.7067 71.5878 13.8466C71.6625 14.117 71.7092 14.3874 71.7279 14.6578C71.7932 15.8327 71.8213 18.77 71.8306 22.4439C71.2143 19.3481 71.1116 15.3851 69.2161 12.9234C67.6195 10.844 64.8089 10.1353 62.1758 9.93021C61.6249 9.88358 54.4819 9.83696 53.987 9.74371C52.5771 9.97683 52.7451 9.75304 51.3352 9.92088C49.337 10.154 49.9813 10.0514 49.4024 10.0701C43.053 10.2379 45.6955 9.84628 39.3461 9.82763C33.6784 9.81831 32.091 9.79966 26.4233 9.48262C22.7257 9.78101 18.9161 9.08166 15.2185 9.3614L15.2652 9.35208ZM45.2286 49.1962C42.3714 49.0657 38.5058 48.7486 37.0118 48.2451C32.119 46.6133 28.6175 41.4941 28.104 35.1906C27.6465 29.6052 29.6073 22.3413 36.4796 18.714C39.5889 17.0729 42.7449 16.243 45.8355 16.243C50.2894 16.243 54.4352 18.0053 57.5072 21.1944C60.6725 24.486 62.3906 29.0177 62.2132 33.6427C61.8397 43.1259 53.4921 48.5249 45.2379 49.2056L45.2286 49.1962Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M67.8539 66.5869H67.8819C68.1527 66.6242 68.4235 66.6615 68.685 66.6895C69.2732 66.7641 69.8801 66.848 70.4964 66.876C73.5217 67.0252 75.94 65.9808 78.0876 64.2371C80.0671 62.624 80.8982 60.6192 81.5424 58.4745C82.5322 55.1736 81.7945 52.4042 80.1325 49.6254C78.5825 47.0425 76.1175 45.2988 73.1855 44.702C69.2078 43.8908 65.9958 44.5248 63.3534 46.6415C61.4299 48.1801 60.216 50.0637 59.7492 52.2363C59.7212 52.3762 59.6931 52.5161 59.6651 52.6652C59.4037 54.1945 59.4224 55.817 59.6091 57.5047C60.216 63.0995 63.3253 65.785 67.8539 66.5962
1V66.5869ZM61.4672 57.2157C61.2805 55.7797 61.2992 54.3903 61.5139 53.0849C61.6913 52.0498 62.0741 51.0894 62.6437 50.2129L62.6717 50.2502C62.6717 50.2502 63.2693 49.411 63.5775 49.0473C63.8856 48.7209 64.2124 48.4132 64.5859 48.1148C64.9127 47.8817 64.9687 47.8631 64.9314 47.9097C66.8455 46.8001 69.46 46.2126 72.2705 46.4644C73.9699 46.6136 75.6973 47.5274 77.0138 48.7769C77.3687 49.1965 77.6955 49.5881 77.6955 49.5881L77.7421 49.5508C78.0316 49.8958 78.293 50.2595 78.5171 50.6325C79.759 52.7025 80.3473 53.663 79.8057 56.1433C79.7403 56.4324 79.4602 58.2134 79.3762 58.5025C78.9 60.0783 77.7888 61.6076 76.6964 62.7358C76.7337 62.7825 76.0708 63.342 76.0708 63.342C74.5394 64.2837 72.3825 65.1043 70.5337 65.0204C70.0109 64.9924 69.4786 64.9271 68.9651 64.8619C68.7223 64.8339 68.4795 64.7966 68.2368 64.7686C64.4552 64.0879 61.9808 61.3372 61.4579 57.2436L61.4672 57.2157Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M76.265 56.7401L76.2276 55.043C76.1342 55.0337 76.0315 55.0151 75.9288 55.0151C74.136 54.9685 72.9596 54.9591 71.8111 54.9591C71.8111 54.1759 71.8297 53.29 71.8577 52.1711C71.8671 51.6209 71.8858 51.0614 71.9044 50.502L70.2144 50.5393C70.1957 50.9682 70.1864 51.3971 70.1677 51.8167C70.1397 53.0942 70.121 54.0733 70.1117 54.9498C69.3273 54.9498 68.4403 54.9312 67.3198 54.9032C66.7689 54.8939 66.2087 54.8752 65.6484 54.8566L65.6858 56.5443C66.1153 56.563 66.5448 56.5723 66.965 56.5909C68.2442 56.6189 69.2153 56.6376 70.093 56.6469C70.093 57.7472 70.0743 58.9034 70.0276 60.5912C70.0276 60.7591 70.0276 60.9269 69.9996 61.0947L71.699 61.0574C71.7083 60.9642 71.727 60.8616 71.727 60.7591C71.7737 58.9687 71.783 57.7938 71.783 56.6469C72.8848 56.6469 74.0427 56.6655 75.7327 56.7122C75.9008 56.7122 76.0689 56.7122 76.2369 56.7401H76.265Z",fill:"currentColor"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_649_7771",children:(0,t.jsx)("rect",{width:"82.0002",height:"66.8949",fill:"white"})})})]})}function h({allowedFileTypes:e,onFilesChange:a}){let[s,l]=(0,r.useState)([]),[n,i]=(0,r.useState)(!1),[o,d]=(0,r.useState)(""),c=(0,r.useRef)(null),C=(0,r.useCallback)(e=>{l(e),a&&a(e)},[a]),u=e.join(","),m=(0,r.useCallback)(t=>{let r=[],a=!1;for(let s=0;s<t.length;s++){let l=t[s];if(!e.includes(l.type)){a=!0,d(`Invalid file type: "${l.name}". Only JPG, PNG are allowed.`);break}r.push(l)}return!a&&(d(""),C([...s,...r]),!0)},[e,C,s]);return(0,t.jsxs)(t.Fragment,{children:[s&&s.length>0&&(0,t.jsx)("div",{className:"w-full mt-2 mb-4 flex flex-col gap-2",children:s.map((e,r)=>(0,t.jsx)(p,{file:e,onRemove:()=>{C(s.filter((e,t)=>t!==r))}},e.name+r))}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center w-full",children:[(0,t.jsxs)("div",{onClick:()=>{c.current.click()},onDragOver:e=>{e.preventDefault(),i(!0)},onDragLeave:()=>{i(!1)},onDrop:e=>{e.preventDefault(),i(!1),e.dataTransfer.files&&e.dataTransfer.files.length>0&&m(e.dataTransfer.files)},className:`
2			flex flex-col items-center justify-center
3			w-full h-48 border-[1.5px] border-dashed cursor-pointer
4			transition-all duration-300 ease-in-out
5			${n?"border-blue-500 bg-blue-50":"border-kc_dkneutral bg-transparent hover:border-gray-400 hover:bg-gray-100"}
6			${o?"border-red-500 bg-red-50":""}
7			p-4 text-center
8		`,children:[(0,t.jsx)(x,{className:`mb-3 ${n?"text-blue-600":"text-kc_dkneutral"}`}),(0,t.jsxs)("p",{className:`mb-2 text-sm ${n?"text-blue-700":"text-gray-600"}`,children:[(0,t.jsx)("span",{className:"font-semibold",children:"Click to upload"})," or drag and drop"]}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:"JPG, PNG"})]}),(0,t.jsx)("input",{type:"file",ref:c,onChange:e=>{e.target.files&&e.target.files.length>0&&m(e.target.files)},multiple:!0,accept:u,className:"hidden"}),o&&(0,t.jsx)("p",{className:"mt-2 text-red-600 text-sm text-center",children:o})]})]})}function p({file:e,onRemove:a}){let[s,l]=(0,r.useState)(null),n=e.type.startsWith("image/"),i=e.type.startsWith("video/");return(0,r.useEffect)(()=>{let t,r;if(n)(t=new FileReader).onload=e=>l(e.target.result),t.readAsDataURL(e);else if(i){let t=URL.createObjectURL(e);(r=document.createElement("video")).src=t,r.currentTime=.1,r.muted=!0,r.playsInl
8ine=!0,r.addEventListener("loadeddata",()=>{let e=document.createElement("canvas");e.width=r.videoWidth,e.height=r.videoHeight,e.getContext("2d").drawImage(r,0,0,e.width,e.height),l(e.toDataURL("image/png")),URL.revokeObjectURL(t)})}return()=>{t&&1===t.readyState&&t.abort(),r&&(r.src="")}},[e,n,i]),(0,t.jsxs)("div",{className:"flex items-center gap-2 bg-gray-100 rounded px-2 py-1 text-xs",children:[(0,t.jsx)("button",{type:"button",className:"text-red-500 hover:text-red-700 font-bold px-1","aria-label":`Remove ${e.name}`,onClick:e=>{e.stopPropagation(),a()},children:"x"}),n||i?s?(0,t.jsx)("img",{src:s,alt:e.name,className:"w-10 h-10 object-cover rounded"}):(0,t.jsx)("span",{className:"w-10 h-10 flex items-center justify-center bg-gray-200 rounded",children:"..."}):(0,t.jsx)("span",{className:"w-10 h-10 flex items-center justify-center bg-gray-200 rounded",children:"📄"}),(0,t.jsx)("span",{className:"truncate max-w-[120px]",children:e.name}),(0,t.jsxs)("span",{className:"text-gray-400",children:["(",(e.size/1024).toFixed(1)," KB)"]})]})}x.propTypes={className:a.default.string},h.propTypes={allowedFileTypes:a.default.arrayOf(a.default.string).isRequired,onFilesChange:a.default.func},p.propTypes={file:a.default.shape({type:a.default.string.isRequired,name:a.default.string.isRequired,size:a.default.number.isRequired}).isRequired,onRemove:a.default.func.isRequired};var f=e.i(44934);function b({handleClose:e,productTitle:a=!1}){let{user:s}=(0,d.useUser)(),l=(0,C.useRouter)(),n=(()=>{let[e,t]=l.asPath.split("?"),r=new URLSearchParams(t||"");return r.set("writeReview","1"),`${e}?${r.toString()}`})(),[o,c]=(0,r.useState)(null),[x,p]=(0,r.useState)(s?s.email:""),[g,v]=(0,r.useState)(s?s.displayName:""),[j,w]=(0,r.useState)(null),[k,y]=(0,r.useState)(null),[N,R]=(0,r.useState)(null),[_,S]=(0,r.useState)(null),[T,L]=(0,r.useState)([]),[M,Z]=(0,r.useState)(!1),O=(0,r.useRef)(null),F=(0,r.useRef)(null),P=(0,r.useRef)(null),$=(0,r.useRef)(null),E=(0,r.useRef)(null),D=(0,r.useRef)(null),[H,U]=(0,r.useState)(!1),[q,W]=(0,r.useState)(!1),V=e=>{c(e.match(/\d+/g).join(""))};async function I(){if(!o||!x||!g||!j||!k||!N)return alert("All fields are required."),{statusCode:400,body:JSON.stringify({error:"All fields are required."})};try{let t;W(!0);let r=((t=new FormData).append("id",o),t.append("email",x),t.append("name",g),t.append("rating",j),t.append("title",k),t.append("body",N),T.forEach((e,r)=>{t.append(`file_${r}`,e)}),t),a=await fetch("/api/submitReviewWithImages",{method:"POST",body:r});if(200!==a.status){let e=await a.json();return 413===a.status?alert("The uploaded files are too large. Please try with smaller files or fewer files."):500===a.status&&e.error&&e.error.includes("payload")?alert("The uploaded files are too large for the server to process. Please try with smaller files."):alert(`Error submitting review: ${e.error||a.statusText}`),{statusCode:a.status,error:e.error||a.statusText}}200===a.status&&await a.json()&&(U(!0),W(!1),setTimeout(()=>{e(),U(!1),W(!1)},3e4))}catch(e){return console.error(e),W(!1),e.message.includes("Failed to fetch")||e.message.includes("Network")?alert("Network error occurred. This might be due to large file uploads. Please try again."):alert(`Error submitting review: ${e.message}`),{statusCode:500,error:e.message}}}return(0,r.useEffect)(()=>{s&&void 0!==s.id&&void 0!==s.numberOfOrders&&e();async function e(){try{let e=await fetch("/api/shopifyGetUserOrders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:s.id,numberOfOrders:s.numberOfOrders})});if(!e.ok)throw Error("Network response was not ok");let t=await e.text();S(JSON.parse(t))}catch(e){return console.error(e),{statusCode:500,body:JSON.stringify({msg:e.message})}}}},[s]),(0,r.useEffect)(()=>{if(a&&_){let e=_.find(e=>e.title===a);e&&V(e.id)}},[a,_]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"font-guyotHeadline text-3xl font-black text-center w-[320px] 375px:w-[375px] mb-10 mx-auto",children:"Submit Review"}),s?(0,t.jsx)("div",{className:"px-4",children:H?(0,t.jsx)("div",{className:"text-center font-medium mb-8",children:(0,t.jsxs)("p",{children:["Your review has been submitted.",(0,t.jsx)("br",{}),"Thank you!"]})}):(0,t.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"font-extrabold border-b border-kc_black/20 pb-2 mb-[11px]",hidden:!!(a&&_.some(e=>e.title===a)),children:"Select the product you want to review"}),(0,t.jsxs)("select",{name:"product",hidden:!!(a&&_.some(e=>e.title===a)),onChange:e=>{V(e.target.value)},value:(()=>
8{if(a&&_){let e=_.find(e=>e.title===a);if(e)return e.id}let e=_&&o?_.find(e=>e.id.match(/\d+/g).join("")===o):null;return e?e.id:"DEFAULT"})(),className:"w-full max-w-full pl-[15px] py-[13px] text-kc_black font-medium font-sans border-2 border-kc_black/20 bg-transparent text-sm mb-4 truncate",ref:P,children:[(0,t.jsx)("option",{disabled:!0,value:"DEFAULT",children:"Select Product..."}),_.map(e=>(0,t.jsx)("option",{value:e.id,title:e.title,children:e.title.length>50?`${e.title.substring(0,50)}...`:e.title},e.id))]})]}),(0,t.jsx)("div",{className:"font-extrabold border-b border-kc_black/20 pb-2 mb-[11px]",children:"How would you rate it?"}),(0,t.jsx)(u,{ratingRef:$,rating:j,setRating:w,handleRadioChange:e=>{w(e.target.value),Z(!1)},ratingError:M}),(0,t.jsx)("div",{className:"font-extrabold border-b border-kc_black/20 pb-2 mb-[11px] mt-10",children:"Tell us about your experience"}),(0,t.jsx)("input",{name:"email",hidden:!0,required:!0,type:"text",placeholder:"Email",className:"pl-[15px] py-[13px] text-kc_black font-medium font-sans border-2 border-kc_black/20 bg-transparent text-sm",onChange:e=>{p(e.target.value)},value:x,ref:F,autoComplete:"email"}),(0,t.jsx)("input",{name:"name",required:!0,type:"text",placeholder:"Name",className:`pl-[15px] py-[13px] text-kc_black font-medium font-sans border-2 border-kc_black/20 bg-transparent text-sm ${g?"!border-kc_black/20":""}`,onChange:e=>{v(e.target.value)},value:g,ref:O,autoComplete:"name"}),(0,t.jsx)("input",{name:"title",type:"text",placeholder:"Title: What's most important to you?",className:`pl-[15px] py-[13px] text-kc_black font-medium font-sans border-2 border-kc_black/20 bg-transparent text-sm ${k?"!border-kc_black/20":""}`,onChange:e=>{y(e.target.value)},ref:E}),(0,t.jsx)("textarea",{name:"body",placeholder:"What did you like about this product?",className:`h-[150px] px-[15px] py-[11px] align-text-top text-kc_black font-medium font-sans border-2 border-kc_black/20 bg-transparent w-full text-sm ${N?"!border-kc_black/20":""}`,onChange:e=>{R(e.target.value)},ref:D}),(0,t.jsxs)("div",{className:"font-extrabold border-b border-kc_black/20 pb-2 mb-[11px] mt-6",children:["Share a video or photo"," ",(0,t.jsx)("span",{className:"text-kc_dkgray font-semibold",children:"(Optional)"})]}),(0,t.jsx)(h,{allowedFileTypes:["image/jpeg","image/png"],onFilesChange:L}),q?(0,t.jsx)(i.default,{className:"mt-4 mb-8 mx-auto",clickHandler:()=>W(!1)}):(0,t.jsx)(f.default,{className:"mt-4 mb-6 mx-auto",onClick:e=>{let t;e.stopPropagation(),t=[],[O,F,P,$,E,D].forEach(e=>{e.current&&(e.current.classList.remove("border-kc_red"),e!==$&&e.current.classList.add("border-kc_black/20"))}),Z(!1),g&&""!==g||t.push(O),x&&""!==x||t.push(F),o&&"DEFAULT"!==o||t.push(P),j||t.push($),k||t.push(E),N||t.push(D),t.length>0?t.forEach(e=>{e.current&&(e!==$?e.current.classList.remove("border-kc_black/20"):Z(!0),e.current.classList.add("border-kc_red"))}):I()},children:"Submit Review"})]})}):(0,t.jsxs)("p",{className:"px-6 py-8 text-kc_black font-medium font-sans",children:["Sorry, you have to be"," ",(0,t.jsx)(m.default,{href:`/api/auth/shopify/login?redirect=${encodeURIComponent(n)}`,className:"underline",children:"logged in"})," ","to submit a review."]})]})}b.propTypes={isOpen:a.default.bool,setIsOpen:a.default.func,handleClose:a.default.func,productTitle:a.default.string};var g=e.i(371516),v=e.i(244123);function j({reviewsObject:e,noHeader:a=!1,productTitle:u,productId:m}){let x=e.reviews||[],h=e.reviewsCounts||null,p=e.reviewsBadge.match(/data-average-rating=['"](.*?)['"]/),w=p?p[1]:null,k=e.reviews.filter(e=>!e.hidden),y=e.reviewsCounts?Object.values(e.reviewsCounts).reduce((e,t)=>e+t,0):null,{user:N}=(0,d.useUser)(),{status:R}=(0,c.useSession)(),_=(0,C.useRouter)(),S=(0,r.useRef)(null),T=(0,r.useRef)(1),[L,M]=(0,r.useState)(k),[Z,O]=(0,r.useState)(!1),[F,P]=(0,r.useState)(!1),[$,E]=(0,r.useState)(!1),D=(0,r.useCallback)(async e=>{0===T.current&&M([]);let t=T.current+1,r={productId:m,page:t};void 0!==e&&(r.rating=e),fetch("/api/getJudgemeReviewsByPageNumber",{method:"POST",body:JSON.stringify(r)}).then(e=>e.json()).then(e=>{e?.reviews&&e?.reviews.length===0&&P(!0),e?.reviews&&e?.reviews.length>0&&(M(t=>{let r=new Set(t.map(e=>e.id));return[...t,...e.reviews.filter(e=>!r.has(e.id))]}),O(!1),T.current=t)})},[m]),[H,U]=(0,r.useState)(),q=e=>{U(e)},W=(()=>{let[e,t]=_.asPath.split("?"),r=new URLSearchParams(t||"");return r.set("writeReview","1"),`${e}?${r.toString()}`})(),V=()=>{U(null),M(x),P(!1)};async function I(e){q({modalType:"more-reviews",starRating:e}),T.current=0,O(!0),D(e)}return(0,r.useEffect)(()=>
8{if(!H||"more-reviews"!==H.modalType||Z||!S.current)return;let e=new window.IntersectionObserver(e=>{e[0].isIntersecting&&D(H?.starRating)},{threshold:.1}),t=S.current;return e.observe(t),()=>{t&&e.unobserve(t),e.disconnect()}},[H,Z,D]),_?.query?.writeReview&&!$&&(q({modalType:"write-review"}),E(!0)),(0,t.jsxs)(t.Fragment,{children:[(e=>{if(!e)return(0,t.jsx)(t.Fragment,{});switch(e.modalType){case"more-reviews":return(0,t.jsx)(n.default,{isOpen:H&&"more-reviews"===H.modalType,handleClose:V,title:`${e?.starRating?e.starRating+" Star ":""}Reviews`,maxWidth:"max-w-[375px] md:max-w-[698px]",innerContainerClassName:"max-h-[calc(100vh-200px)] overflow-hidden overflow-y-auto",children:(0,t.jsx)("div",{className:"px-5 py-7 lg:p-0",children:(0,t.jsxs)("div",{className:"grid gap-5",children:[L.map((e,r)=>(0,t.jsx)(l.default,{review:e,viewingMore:0===r},e.id)),F?(0,t.jsxs)("div",{className:"text-center p-4",children:[0===L.length?"There are no ":"End of ",e?.starRating?e.starRating+" star ":"","reviews"]}):(0,t.jsx)(t.Fragment,{children:Z?(0,t.jsx)("div",{className:"flex justify-center pb-4 w-[610px]",children:(0,t.jsx)(i.default,{})}):(0,t.jsx)("div",{className:"flex justify-center py-4",ref:S,children:(0,t.jsx)(i.default,{})})})]})})});case"write-review":return(0,t.jsxs)(n.default,{isOpen:H&&"write-review"===H.modalType,handleClose:V,title:N||"unauthenticated"!==R?"Write a Review":"Login to Write a Review",maxWidth:"max-w-[375px] md:max-w-[698px]",innerContainerClassName:"max-h-[calc(100vh-200px)] overflow-hidden overflow-y-auto px-4",children:[N?(0,t.jsx)(b,{handleClose:V,productTitle:u}):"unauthenticated"===R?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex justify-center mb-4",children:(0,t.jsx)(o,{})}),(0,t.jsx)("div",{className:"text-lg font-bold text-center",children:"Oops–you're not logged in."}),(0,t.jsx)("div",{className:"text-center font-medium mb-6",children:"Tell us what you think once you’ve tried it!"}),(0,t.jsx)(f.default,{maxWidth:"290px",className:"mx-auto mb-5",href:`/api/auth/shopify/login?redirect=${encodeURIComponent(W)}`,prefetch:!1,children:"Login"})]}):(0,t.jsx)("div",{className:"flex justify-center py-10",children:(0,t.jsx)(i.default,{})}),(0,t.jsx)("div",{className:"text-center mb-10 lg:mb-0",children:(0,t.jsx)("button",{className:"font-extrabold underline decoration-2",onClick:()=>{V()},children:"Cancel"})})]});default:return(0,t.jsx)(t.Fragment,{})}})(H),(0,t.jsx)("div",{id:"reviews",className:"py-12 md:py-20 bg-kc_offwhite",children:(0,t.jsxs)("div",{className:"container px-7 lg:px-4 2lg:px-0 sm:max-w-[678px] lg:max-w-[1030px]",children:[!a&&(0,t.jsx)("h2",{className:"text-center font-guyotHeadline font-black text-3xl md:text-5xl mb-10 md:mb-14",children:"Customer Reviews"}),0===x.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex justify-center mb-4",children:(0,t.jsx)(o,{})}),(0,t.jsx)("div",{className:"text-lg font-bold text-center",children:"Nobody’s reviewed this product–yet."}),(0,t.jsx)("div",{className:"text-center font-medium mb-6",children:"Tell us what you think once you’ve tried it!"}),(0,t.jsx)(f.default,{maxWidth:"290px",className:"mx-auto mb-5",onClick:()=>{q({modalType:"write-review"})},children:"Write a Review"})]}):(0,t.jsxs)(t.Fragment,{children:[!a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"text-center text-[34px] leading-[34px] font-extrabold mb-2",children:[String(Number(w).toFixed(1)),"/5"]}),(0,t.jsx)(s.default,{className:"justify-center mb-3",averageRating:w,height:"25",width:"25",color:"#F2C00D"}),(0,t.jsxs)("p",{className:"text-center font-medium mb-15",children:[(0,t.jsx)(g.default,{number:y})," reviews"]})]}),(0,t.jsxs)("div",{className:"flex justify-between items-center pb-4 border-b border-kc_gray",children:[(0,t.jsx)("span",{className:"font-semibold text-2xl leading-6 inline-block",children:"Reviews"}),(0,t.jsx)("button",{className:"font-bold leading-[10px] mt-1",onClick:()=>{q({modalType:"write-review"})},children:"Write a Review"})]}),(0,t.jsx)(v.default,{reviewsCounts:h,numberOfReviews:y,onStarClick:I}),(0,t.jsx)("div",{className:"grid gap-[26px] mb-12",children:x.slice(0,6).map(e=>(0,t.jsx)(l.default,{review:e},e.id))}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("button",{className:"font-extrabold border-b-[2px] border-kc_black pb-[2px]",onClick:()=>q({modalType:"more-reviews"}),children:"See More"})})]})]})})]})}j.propTypes={noHeader:a.default.bool,productId:a.default.string,reviewsObject:a.default.shape({reviews:a.default.arrayOf(a.default.shape({id:a.default.number,rating:a.default.number,content:a.default.string,hidden:a.default.bool,pictures:a.default.arrayOf(a.default.string)})),reviewsCounts:a.default.object,reviewsBadge:a.default.string}),productTitle:a.default.string},e.s(["default",0,j],791289)}]);

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.