PageSourceSearch

https://womiz.com/v3/_next/static/chunks/4740-247160ce67b8b271eff2.js

js womiz.com collected 2026-10-08 18:07:08 UTC 12,859 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4740],{29309:function(e,t,r){"use strict";r.d(t,{Z:function(){return U}});var n=r(10219),i=r(92809),o=r(67294),a=r(85893);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s=function(e){return(0,a.jsx)("svg",c(c({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9999 3.66669C14.5541 3.66669 14.1378 3.88949 13.8905 4.26042L10.953 8.66669H4.99992C3.76224 8.66669 2.57526 9.15835 1.70009 10.0335C0.824917 10.9087 0.333252 12.0957 0.333252 13.3334V31.6667C0.333252 32.9044 0.824917 34.0913 1.70009 34.9665C2.57526 35.8417 3.76224 36.3334 4.99992 36.3334H34.9999C36.2376 36.3334 37.4246 35.8417 38.2998 34.9665C39.1749 34.0913 39.6666 32.9044 39.6666 31.6667V13.3334C39.6666 12.0957 39.1749 10.9087 38.2998 10.0335C37.4246 9.15835 36.2376 8.66669 34.9999 8.66669H29.0468L26.1093 4.26042C25.862 3.88949 25.4457 3.66669 24.9999 3.66669H14.9999ZM12.776 10.7396L15.7135 6.33335H24.2863L27.2239 10.7396C27.4711 11.1106 27.8874 11.3334 28.3333 11.3334H34.9999C35.5304 11.3334 36.0391 11.5441 36.4141 11.9191C36.7892 12.2942 36.9999 12.8029 36.9999 13.3334V31.6667C36.9999 32.1971 36.7892 32.7058 36.4141 33.0809C36.0391 33.456 35.5304 33.6667 34.9999 33.6667H4.99992C4.46949 33.6667 3.96078 33.456 3.58571 33.0809C3.21063 32.7058 2.99992 32.1971 2.99992 31.6667V13.3334C2.99992 12.8029 3.21063 12.2942 3.58571 11.9191C3.96078 11.5441 4.46949 11.3334 4.99992 11.3334H11.6666C12.1124 11.3334 12.5287 11.1106 12.776 10.7396ZM14.6666 21.6667C14.6666 18.7212 17.0544 16.3334 19.9999 16.3334C22.9454 16.3334 25.3333 18.7212 25.3333 21.6667C25.3333 24.6122 22.9454 27 19.9999 27C17.0544 27 14.6666 24.6122 14.6666 21.6667ZM19.9999 13.6667C15.5816 13.6667 11.9999 17.2484 11.9999 21.6667C11.9999 26.085 15.5816 29.6667 19.9999 29.6667C24.4182 29.6667 27.9999 26.085 27.9999 21.6667C27.9999 17.2484 24.4182 13.6667 19.9999 13.6667Z",fill:"currentColor"})}))},u=r(94184),d=r.n(u);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=function(e){return(0,a.jsx)("svg",p(p({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22"},e),{},{children:(0,a.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,a.jsx)("g",{children:(0,a.jsxs)("g",{transform:"translate(-1232 -687) translate(1232 687)",children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"11",fill:"#E6E6E6"}),(0,a.jsx)("path",{fill:"#989898",fillRule:"nonzero",stroke:"#989898",strokeWidth:".5",d:"M14.236 6.8c.266-.267.698-.267.964 0 .242.242.267.624.055.902h0l-.055.062L11.964 11l3.236 3.236c.24.24.264.613.072.88l-.072.084c-.242.242-.624.267-.902.055h0l-.062-.055L11 11.964 7.764 15.2c-.24.24-.613.264-.88.072L6.8 15.2c-.242-.242-.267-.624-.055-.902h0l.055-.062L10.036 11 6.8 7.764c-.24-.24-.264-.613-.072-.88L6.8 6.8c.242-.242.624-.267.894-.061h0l.07.06L11 10.037z"})]})})})}))},v=r(57124),m=r(15285),b=r(62384),j=r.n(b),h=r(85026),O=r(77948),y=r(93248),w=r(51097),C=["file","id","imgUrl"];function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?x(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var P=function(e){var t=e.percentage,r=e.localFile,n=e.className;return(0,a.jsxs)("div",{className:d()(j().uploadImageWithOverlay,n),children:[t&&(0,a.jsx)("div",{className:j().overlay,style:{width:"".concat(100-t,"%")}}),(0,a.jsx)("img",{src:r,alt:"overlay",height:96,width:96})]})},_=function(e){var t=e.imgFile,r=e.updateImage,n=void 0===r?y.Z:r,i=e.id,l=e.imgUrl,c=e.uploading,s=e.upload,u=e.removeImage,d=e.isUploading,f=void 0===d?y.Z:d;return(0,o.useEffect)((function(){l||(f({id:i,isUploading:!0}),s(t,(function(e){var t=e.file;n(i,t),f({id:i,isUploading:!1})}),(function(){u(i),f({id:i,isUploading:!1},"remove")})))}),[]),c?(0,a.jsx)(P,Z({},e)):null},k=function(e){var t=e.file,r=e.id,i=e.imgUrl,o=(0,n.Z)(e,C),l=(0,O.Z)({isLocalUpload:!0});return t?(0,a.jsx)(_,Z(Z({},l),{},{imgFile:t,id:r},o)):(0,a.jsx)(h.Z,{src:(0,w.Z)(i,96,96),alt:"imageUpload",height:96,width:96})},S=function(e){var t=e.images,r=e.removeImage,n=e.isUploading;return(null===t||void 0===t?void 0:t.length)>0&&(0,a.jsx)(v.Z,{tag:"ul",justify:"flexStart",className:j().imagesWrapper,children:null===t||void 0===t?void 0:t.map((function(t,i){var o=t.id,l=t.imgUrl;return(0,a.jsxs)(v.Z,{className:j().imagesContent,tag:"li",noFlex:!0,fullWidth:!1,children:[(0,a.jsx)(g,{className:j().imagesContentClose,onClick:function(){r(o,l),n({id:o,isUploading:!1},"remove")}}),(0,a.jsx)(k,Z(Z({},t),e))]},i)}))})},U=function(e){var t=e.accept,r=void 0===t?"image/jpg, image/png, image/jpeg":t,n=e.name,l=e.images,c=void 0===l?[]:l,u=e.label,f=void 0===u?"Add Photos (Optional)":u,p=e.onChange,g=void 0===p?y.Z:p,b=e.isUploading,h=void 0===b?y.Z:b,O=e.updateImage,w=void 0===O?y.Z:O,C=e.removeImage,x=void 0===C?y.Z:C,Z=e.isMax,P=void 0!==Z&&Z,_=e.maxImages,k=void 0===_?4:_,U=e.required,D=void 0!==U&&U,E=(0,o.createRef)(),I=c.length;return(0,a.jsxs)(v.Z,{spacing:"mb24 m-mb32",noFlex:!0,children:[(0,a.jsxs)(v.Z,{spacing:"mb8",direction:"row",justify:"spaceBetween",align:"center",children:[(0,a.jsxs)(m.Z,{color:"theme-primary-black-30",block:!0,className:"pos-relative",children:[f,D&&(0,a.jsx)("div",{className:j().required,children:"*"})]}),0!==I&&(0,a.jsxs)(m.Z,{color:"theme-primary-black-30",children:[" ",I,"/",k]})]}),(0,a.jsxs)(v.Z,{justify:"flexStart",align:"flexStart",children:[(0,a.jsxs)(v.Z,{direction:"column",className:d()("flex-1 mr8",(0,i.Z)({},j().maxImages,!!P)),fullWidth:!1,children:[(0,a.jsx)("label",{htmlFor:n,children:(0,a.jsx)(v.Z,{justify:"center",align:"center",className:j().imageUploadBox,children:(0,a.jsx)(s,{color:P?"var(--black-60)":"var(--theme-primary-black-30)"})})}),(0,a.jsx)("input",{ref:E,type:"file",multiple:!0,id:n,name:n,onChange:function(){var e=E.current.files,t=Array.from(e);g(t),E.current.value=""},disabled:P,accept:r,style:{opacity:0,position:"absolute",pointerEvents:"none"}})]}),(0,a.jsx)(S,{images:c,isUploading:h,updateImage:w,removeImage:x})]})]})}},44148:function(e,t,r){"use strict";var n=r(92809),i=r(85893);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.Z=function(e){return(0,i.jsx)("svg",a(a({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"#1A181E"},e),{},{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.99408 6.91107C4.31951 6.58563 4.84715 6.58563 5.17259 6.91107L10.4167 12.1551L15.6607 6.91107C1
15.9862 6.58563 16.5138 6.58563 16.8393 6.91107C17.1647 7.23651 17.1647 7.76414 16.8393 8.08958L11.0059 13.9229C10.6805 14.2484 10.1528 14.2484 9.82741 13.9229L3.99408 8.08958C3.66864 7.76414 3.66864 7.23651 3.99408 6.91107Z",fill:"currentColor"})}))}},77948:function(e,t,r){"use strict";var n=r(67294),i=(r(17433),r(57646)),o=r(89307),a=r(36850);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isLocalUpload,r=void 0!==t&&t,l=(0,n.useState)(null),c=l[0],s=l[1],u=(0,n.useState)(null),d=u[0],f=u[1],p=(0,n.useState)(!1),g=p[0],v=p[1],m=(0,i.Z)(),b=m.enqueueSnackbar,j=(0,a.t)(),h=j.buyerDynamic,O=(0,o.Z)((0,n.useCallback)((function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};v(!1);var n={onUploadProgress:function(e){var t=e.loaded,r=e.total,n=Math.floor(100*t/r);s(n>=99?100:n)},timeout:72e5};return s(null),h.products.uploadBuyerAttachment(e,n).then((function(e){var r=e.data;t(r)})).catch((function(e){var t,n;v(!0),""!==r&&r(),b((null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.file)||void 0===n?void 0:n[0])||"Error uploading image. Try again later","error")}))}),[b])),y=O.call,w=O.loading,C=O.loaded,x=(0,n.useCallback)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";s(1);var i=new FormData;if(i.append("file",e),r){var o=new FileReader;o.onload=function(e){f(e.target.result),y(i,t,n)},o.readAsDataURL(e)}else y(i,t,n)}),[r,y]);return{upload:x,uploading:w,uploaded:C,percentage:c,localFile:d,hasErrors:g}}},17935:function(e,t,r){"use strict";var n=r(92809),i=r(83789),o=r(67294),a=r(67526);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s=0;t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s+=1;var t=e.map((function(e){return{imgUrl:e,id:s}})),r=(0,o.useState)(t),n=r[0],l=r[1],u=(0,o.useState)(!1),d=u[0],f=(u[1],(0,o.useState)(new Set)),p=f[0],g=f[1],v=(0,o.useState)([]),m=v[0],b=v[1],j=(0,o.useCallback)((function(e){s+=1,Array.isArray(e)?l((function(t){return[].concat((0,i.Z)(t),(0,i.Z)(e.map((function(e){return{file:e,id:s+=1}}))))})):l([].concat((0,i.Z)(n),[{files:e,id:s}]))}),[n]),h=(0,o.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.map((function(e,t){return{imgUrl:e,id:t}}));l(t)}),[]),O=(0,o.useCallback)((function(e,t){l((0,i.Z)(n.filter((function(t){return t.id!==e}))));var r=(0,a.yn)(n,"id",e),o=(0,a.sj)(n,r);if(l(o),t){var c=new Set(p);c.delete(t),g(c)}}),[n,p]),y=(0,o.useCallback)((function(e,t){l((function(r){var o=(0,i.Z)(r),l=(0,a.yn)(n,"id",e);return o[l]=c(c({},o[l]),{},{imgUrl:t,file:null}),o}))}),[n]),w=(0,o.useCallback)((function(e,t){if("remove"!==t)b((function(t){var r=(0,i.Z)(t),n=r.findIndex((function(t){return t.id===e.id}));return n>-1?(r[n]=e,(0,i.Z)(r)):[].concat((0,i.Z)(r),[e])}));else{var r=e.id;b((0,i.Z)(m.filter((function(e){return e.id!==r}))));var n=(0,a.yn)(m,"id",r),o=(0,a.sj)(m,n);b(o)}}),[m]);return{images:n,loading:d,addImage:j,addImages:h,setImages:l,removeImage:O,updateImage:y,selectedImages:p,setSelectedImages:g,imageUploadingArray:m,setImageUploadingArray:b,isUploading:w}}},82107:function(e,t,r){"use strict";var n=r(80318);t.Z=function(e,t,r){var i=(0,n.Z)(e,2),o=i[0],a=i[1];(0,r.changeValue)(t,o,(function(){return a}))}},62384:function(e){e.exports={reviewModal:"ReviewFlow_reviewModal__R-Cig",imagesContentClose:"ReviewFlow_imagesContentClose__OM-_P",imageUploadBox:"ReviewFlow_imageUploadBox__1ZKO1",imagesWrapper:"ReviewFlow_imagesWrapper__1PYCx",imagesContent:"ReviewFlow_imagesContent__3Xrfh",uploadImageWithOverlay:"ReviewFlow_uploadImageWithOverlay__1u2gs",overlay:"ReviewFlow_overlay__2ErLt",outerBox:"ReviewFlow_outerBox__1knsk",buttonStyle:"ReviewFlow_buttonStyle__vtO3k",required:"ReviewFlow_required__uyAXW"}}}]);

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.