PageSourceSearch

https://www.kataloska-prodaja.ba/assets/593.chunk.0ebbaa7334519865fbdd.js

js kataloska-prodaja.ba collected 2026-10-03 00:26:14 UTC 11,186 bytes, 3 lines download raw bytes

1/*! For license information please see 593.chunk.0ebbaa7334519865fbdd.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunknitro5_app=globalThis.webpackChunknitro5_app||[]).push([[593],{20497(e,t,n){function r(e){return e?e.map((e,t)=>({text:e,value:t.toString()})):[]}function a(e,t){return t[parseInt(e)]||""}n.d(t,{K:()=>r,q:()=>a})},82974(e,t,n){n.d(t,{default:()=>S});var r=n(26166),a=n(95082),o=n(63696),l=n(10774),i=n(30561),c=n(59095),s=n(39879),u=n(13149),m=n(39372),d=n(42914),p=n(29874),f=n(91511),g=n(25194),h=n(54866),v=n(61841),y=n(18291),b=n(58463),C=n(97760),x=n(36806),E=n(67173),I=n(62995),w=n(7410),T=n(2182),k=n(20497);const S=(0,l.I4)(function(e){var t;const{currentBlockId:n,block:l,categoryTexts:s,fileSizeLimit:u,maxFiles:p,allowedFileTypes:f}=e,g=(0,a.Jn)(l.sendButtonText),h=(0,a.Jn)(l.attachmentButton),v=(0,a.Jn)(l.sendSuccessMessage),y=(0,a.Jn)(l.fileSizeErrorMessage),C=(0,a.Jn)(l.fileTypeErrorMessage),S=(0,a.Jn)(l.attachmentInformation),re=(0,a.Jn)(l.orderNumberLabel),ae=(0,a.Jn)(l.maxFilesErrorMessage),oe=(0,o.useMemo)(()=>(0,k.K)(s),[s]),le=null===(t=oe[0])||void 0===t?void 0:t.value,ie=(0,o.useRef)(null),{submitState:ce,pushSubmit:se,closeFeedbackMessage:ue}=(0,c.j8)(),[me,de]=(0,o.useState)(""),[pe,fe]=(0,o.useState)(""),[ge,he]=(0,o.useState)(""),[ve,ye]=(0,o.useState)(""),[be,Ce]=(0,o.useState)([]),[xe,Ee]=(0,o.useState)(le),{TooltipWrapper:Ie,TooltipWrapperProps:we,showTooltip:Te}=(0,x.A)(),ke=(0,o.useRef)(null),{getReCaptchaToken:Se,resetReCaptcha:Ae,componentRef:Ye,captchaProps:Fe}=(0,E.Ay)({formRef:ke});function je(e){Te({content:e||(0,i.TlY)("/Errors/Unknown"),tooltipTheme:"error",showCloseIcon:!0,closeAfterSec:5})}return o.createElement(A,null,o.createElement(d.x,{appearance:d.bA.Narrow},o.createElement(Y,null,o.createElement(a.Cx,{for:l.title,component:F}),o.createElement(a.Cx,{for:l.description,component:j}),o.createElement(B,null,o.createElement(R,{onSubmit:function(e){return(0,r.__awaiter)(this,void 0,void 0,function*(){ue();se((()=>(0,r.__awaiter)(this,void 0,void 0,function*(){try{const e=yield(0,I.S_)(),t=yield Se(),r="/ReturnClaimContactFormSubmit/Send",a={contentBlockId:n,customerEmail:me,phoneNumber:pe,orderNumber:ge,message:ve,categoryText:(0,k.q)(xe,s)};return yield(0,w.T)(r,a,be,Object.assign(Object.assign({},e),t)),(0,i.Tus)("Return claim contact form submitted successfully"),de(""),fe(""),he(""),ye(""),Ce([]),Ee(le),ie.current&&(ie.current.value=""),Promise.resolve(v)}catch(e){const t="string"==typeof e&&e.length>0?e:(0,i.TlY)("/Errors/Unknown");return Promise.reject(t)}finally{Ae()}}))())})},ref:ke},o.createElement(M,null,o.createElement(z,null,o.createElement(D,{required:!0,value:me,placeholder:(0,i.TlY)("/Account/MyDetail
2s/YourEmail"),onChange:e=>de(e.currentTarget.value),preferFramed:!0,autoComplete:"email"}),o.createElement(N,{required:!0,value:ge,placeholder:re,onChange:e=>he(e.currentTarget.value),preferFramed:!0}),o.createElement(_,{value:pe,placeholder:(0,i.TlY)("/Account/MyDetails/MobileNumber"),onChange:e=>fe(e.currentTarget.value),preferFramed:!0,autoComplete:"tel"}),o.createElement(X,{"aria-label":(0,i.TlY)("/Shared/Select"),id:"contact-form-category-select",preferFramed:!0,options:oe,value:xe,onChangeOption:Ee}),o.createElement(a.Cx,{for:l.messageHeader,component:P}),o.createElement(U,{value:ve,onChange:e=>ye(e.currentTarget.value),lockedSize:!0})),o.createElement(O,null,o.createElement(a.Cx,{for:l.attachmentHeader,component:P}),!!S&&o.createElement(a.Cx,{for:l.attachmentInformation,component:W}),o.createElement(Ie,Object.assign({},we(),{css:ne}),o.createElement(J,null,be.length>0&&o.createElement(V,null,be.map((e,t)=>o.createElement(L,{key:t},o.createElement($,null,e.name),o.createElement(q,{onClick:()=>function(e){Ce(t=>t.filter((t,n)=>n!==e)),ue(),ie.current&&(ie.current.value="")}(t),"aria-label":(0,i.TlY)("/Shared/Close")},o.createElement(b.bm,null))))),be.length<p&&o.createElement(H,{as:m.Sx.Secondary,onClick:function(e){var t;e.preventDefault(),be.length>=p?je(ae):null===(t=ie.current)||void 0===t||t.click()},"aria-label":h},o.createElement(a.Cx,{for:l.attachmentButton})),o.createElement(K,{type:"file",accept:f,multiple:!0,ref:ie,onChange:function(e){const t=Array.from(e.target.files||[]);if(0===t.length)return;if(be.length+t.length>p)return je(ae),void(e.target.value="");const n=f.toLowerCase().split(","),r=t.filter(e=>{var t;const r=e.name||"",a=r.includes(".")?"."+(null===(t=r.split(".").pop())||void 0===t?void 0:t.toLowerCase()):"";return!n.includes(a)});if(r.length>0)return je(C),void(e.target.value="");if((0,T.p)(be)+(0,T.p)(t)>u)return je(y),void(e.target.value="");Ce(e=>[...e,...t]),e.target.value=""}}))),o.createElement(G,null,o.createElement(Q,null,o.createElement(Z,{state:ce,as:m.Sx.Primary,type:"submit","aria-label":g,feedbackDirection:"right"},o.createElement(a.Cx,{for:l.sendButtonText}))),o.createElement(ee,null,o.createElement(a.Cx,{for:l.privacyPolicyText}))))),o.createElement(te,Object.assign({},Fe,{ref:Ye})))))))}),A=(0,l.I4)(d.x,{backgroundColor:e=>e.siteTheme.contactFormBlock.backgroundColor,padding:{xy:s.as},margin:{y:({isCompact:e})=>e?s.Y:s.as},minHeight:"100%",height:"100%"}),Y=l.I4.div({margin:{right:({isCompact:e})=>e?0:2*s.wm}}),F=(0,l.I4)(u.H2,{marginTop:0}),j=l.I4.span({marginBottom:s.Y}),B=l.I4.div({display:"flex",flexDirection:({isCompact:e})=>e?"column":"row",marginTop:({isCompact:e})=>e?0:s.as}),R=(0,l.I4)(p.A,{textAlign:"left",margin:{top:({isCompact:e})=>e?s.as:s.EX}}),M=l.I4.div({display:"flex",flex:{basis:"0%",grow:1,shrink:1},textAlign:"left",flexWrap:"wrap"}),O=l.I4.div({flex:{basis:({isCompact:e})=>e?"100%":"0%",grow:1,shrink:1}}),z=(0,l.I4)(O,{flex:{basis:({isCompact:e})=>e?"100%":"0%",grow:1,shrink:1},marginRight:({isCompact:e})=>e?0:s.wm}),D=(0,l.I4)(f.A,C.rU,{width:"100%",margin:{bottom:s.Y}}),N=(0,l.I4)(h.Ay,C.rU,{width:"100%",margin:{bottom:s.Y}}),_=(0,l.I4)(g.A,C.rU,{width:"100%",margin:{bottom:s.Y}}),X=(0,l.I4)(y.Ay,{width:"100%",margin:{bottom:s.as}}),P=l.I4.span({fontWeight:"bold",display:"flex"}),U=(0,l.I4)(v.Ay,{width:"100%",height:150,margin:{top:s.EX,bottom:s.as}}),W=l.I4.span({fontSize:s.Ni,marginTop:s.EX,display:"block"}),J=l.I4.div({display:"flex",flexDirection:"column",gap:s.EX+s.nU,width:"inherit"}),V=l.I4.div({display:"flex",flexWrap:"wrap",gap:s.Y-s.nU}),L=l.I4.div({display:"flex",alignItems:"center",backgroundColor:s.Cj,fontSize:s.Ni,padding:{y:s.nU,x:s.EX},border:{xy:{style:"solid",width:1,color:s.Oh}}}),$=l.I4.span({fontSize:s.Ni}),q=(0,l.I4)(m.pH,{marginLeft:s.Y-s.nU}),H=(0,l.I4)(m.Ay,m.Xy),K=l.I4.input({display:"none"}),G=l.I4.div({display:"flex",flexDirection:"column",marginTop:s.as}),Q=l.I4.div({width:({isCompact:e})=>e?"100%":"fit-content"}),Z=(0,l.I4)((0,c.V4)(m.Ay),{flex:{basis:"auto",grow:({isCompact:e})=>e?1:0,shrink:0}}),ee=l.I4.div((0,s.X6)({property:"opacity",duration:300}),{flexDirection:"column",flex:{basis:({isCompact:e})=>e?"100%":"auto",grow:({isCompact:e})=>e?0:1,shrink:({isCompact:e})=>e?0:1},display:"flex",justifyContent:"center",marginTop:({isCompact:e})=>e?s.as:s.Y,fontSize:s.Ni}),te=(0,l.I4)(E.Nk,{width:"auto",display:"flex",alignItems:"center",justifyContent:"center",margin:{top:s.Y}}),ne=(0,l.I4)({marginTop:s.EX,width:"100%"})}
2,61841(e,t,n){n.d(t,{Ay:()=>d,cL:()=>I,pV:()=>b});var r=n(26166),a=n(63696),o=n(10774),l=n(30561),i=n(39879),c=n(85506),s=n(76569),u=n(60593);const m=(0,o.I4)(e=>{var t,{onFocus:n,onBlur:o,onValidBlur:l,onChange:m,placeholder:d,children:y,uncontrolled:b,customInvalidMessage:C,setWarning:x,lockedSize:E=!1}=e,I=(0,r.__rest)(e,["onFocus","onBlur","onValidBlur","onChange","placeholder","children","uncontrolled","customInvalidMessage","setWarning","lockedSize"]);const w=(0,a.useRef)(null),T=(0,a.useRef)(null),k=I.value=I.value||"",[S,A]=(0,a.useState)(!1),[Y,F]=(0,a.useState)(!1),[j,B]=(0,a.useState)(!1),[R,M]=(0,a.useState)(""),[O,z]=(0,a.useState)(f(k)),D=(0,a.useRef)(!1),N=(0,c.A)().inputs.TextArea.component;(0,a.useEffect)(()=>{U.current||z(f(I.value||k)),Boolean(C)?(w.current.setCustomValidity(C),B(!0)):(w.current.setCustomValidity(""),B(!1),F(e=>!e))},[C,I.value,k]);const _=(0,a.useCallback)(e=>{A(!0),x&&M(x(e.currentTarget)),null==n||n(e)},[x,n]),X=(0,a.useCallback)(e=>{if(M(""),A(!1),null==o||o(e),!D.current)return;const t=p(e.currentTarget,C);B(t),t||null==l||l(e)},[C,o,l]),P=(0,a.useCallback)(e=>{const t=e.currentTarget;D.current=!0,U.current=!1,x&&M(x(t));const n=f(t.value),r=n&&!O;B(e=>!(!e||r)&&p(t,C)),z(n),m&&m(e)},[x,O,m,C]),U=(0,a.useRef)(!1),W=(0,a.useCallback)(()=>{U.current||(U.current=!0,z(!0))},[]),J=(0,a.useCallback)(e=>{e.preventDefault();const t=p(e.currentTarget,C);B(t)},[C]);b&&(I.defaultValue=k,delete I.value),(0,u.N)(()=>{if(b){const e=k===w.current.value,t=k||"",n=""===t&&e;!w.current||S&&!n||(w.current.value=t)}},[S,b,k]);const V=d||y,{disabled:L,readOnly:$}=I,q=!(L||$),H=11/(0,i.ju)().fontSize,K=(0,a.useMemo)(()=>O?{width:`calc(100% / ${H})`,whiteSpace:"nowrap",transform:`translate3d(0, -7px, 0) scale(${H})`}:void 0,[O,H]);return a.createElement(g,{ref:T},!!V&&a.createElement(h,null,a.createElement(v,{css:K},`${V}${I.required?"*":""}`)),a.createElement(s.A,{message:j?null===(t=w.current)||void 0===t?void 0:t.validationMessage:R,visible:!!(j||R.length>0)&&q},a.createElement(N,Object.assign({},I,{ref:w,filled:O,editable:q,focused:S,invalid:j,onAnimationStart:W,onAnimationIteration:W,onFocus:_,onBlur:X,onChange:P,onInvalid:J,css:!!E&&{resize:"none"}}))))},(0,i.X6)({property:"background"}),{display:"inline-flex",marginBottom:0,color:({siteTheme:e})=>e.inputs.TextArea.color}),d=m;function p(e,t){return!!t||!e.validity.valid}function f(e){return!!e&&/[\S]/.test(e)}const g=o.I4.label({position:"relative",flex:{grow:1,shrink:0},maxWidth:"100%",fontSize:()=>(0,l.un6)()?"16px":void 0}),h=o.I4.div((0,i.O8)(),{position:"absolute",pointerEvents:"none",width:"100%",height:"100%",overflow:"hidden"}),v=o.I4.div((0,i.X6)({property:["transform","color","background-color"],duration:200}),{color:({siteTheme:e})=>e.inputs.TextArea.placeholderColor,transformOrigin:"top left",position:"relative"}),y=(0,o.I4)({width:"100%",padding:{xy:0},border:{xy:{width:0}},borderRadius:0,color:"inherit",backgroundColor:"transparent",":focus":{outlineWidth:0},cursor:"text"}),b=o.I4.textarea(y,(0,i.O8)(),(0,i.kY)({property:["color","border-color","background"]})),C=i.Y,x=i.as,E=(0,o.I4)({flexGrow:1,margin:{top:x,left:C}}),I=(0,o.I4)(m,E,{width:"100%"})},7410(e,t,n){n.d(t,{T:()=>a});var r=n(26166);function a(e,t,n,a){return(0,r.__awaiter)(this,void 0,void 0,function*(){const r=function(e){if(!e)return new FormData;const t=new FormData;return function e(t,n,r){Object.keys(n).forEach(a=>{const o=n[a],l=r?`${r}.${a}`:a;null!=o&&(o instanceof File?t.append(l,o):"object"==typeof o?e(t,o,l):t.append(l,String(o)))})}(t,e),t}(t),o=(Array.isArray(n)?n:[n]).filter(e=>e instanceof File),l=Array.isArray(n)?"attachments":"attachment";o.forEach(e=>r.append(l,e));const i=yield fetch(e,{method:"POST",body:r,headers:a});if(!i.ok){if(500===i.status)return Promise.reject("");const e=yield i.text();return Promise.reject(e)}return 204===i.status?null:yield i.json()})}}}]);
3//# sourceMappingURL=593.chunk.0ebbaa7334519865fbdd.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.