PageSourceSearch

https://bandipurhill.com/static/js/4142.2a75d31a.chunk.js

js bandipurhill.com collected 2026-10-09 18:26:06 UTC 25,799 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbcc=self.webpackChunkbcc||[]).push([[4142,6907],{509:(e,i,a)=>{a.d(i,{Z:()=>o});a(7313);var t=a(5537),n=a(7853),s=a(6417);const o=()=>{const e=(0,t.v9)((e=>e.confirmDialog)),i=(0,t.I0)(),a=e.dialogOpen,o=e.dialogMessage,l=e.dialogItemLabel;return(0,s.jsx)(s.Fragment,{children:a&&(0,s.jsxs)("div",{className:"confirm-dialog",children:[(0,s.jsx)("div",{className:"overlay"}),(0,s.jsxs)("div",{className:"confirm-dialog-box",children:[(0,s.jsx)("div",{className:"confirm-dialog-box-title",children:"Confirm action"}),(0,s.jsxs)("div",{className:"confirm-dialog-box-body",children:[(0,s.jsx)("div",{className:"confirm-dialog-box-icon",children:"!"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"confirm-dialog-box-heading",children:"Are you sure?"}),(0,s.jsxs)("div",{className:"confirm-dialog-box-copy",children:["This will ",o||"continue"," the selected item. This action cannot be undone.",l&&(0,s.jsx)("div",{style:{marginTop:"0.8rem",padding:"0.6rem 0.9rem",borderRadius:"6px",background:"#f4f6fa",color:"#172130",fontSize:"1.2rem",fontWeight:600,wordBreak:"break-all"},children:l})]})]})]}),(0,s.jsxs)("div",{className:"confirm-dialog-box-buttons",children:[(0,s.jsx)("button",{type:"button",className:"confirm-dialog-success-btn",onClick:()=>{i((0,n.Hc)())},children:"Confirm"}),(0,s.jsx)("button",{type:"button",className:"confirm-dialog-cancel-btn",onClick:()=>i((0,n.sh)()),children:"Cancel"})]})]})]})})}},585:(e,i,a)=>{a.d(i,{Z:()=>o});var t=a(1309),n=a(259),s=(a(7313),a(6417));const o=e=>{let{handle:i,item:a,area:o="",showForLoggedIn:l=!1}=e;const d=localStorage.getItem("token")||localStorage.getItem("bcr-admin-access")||localStorage.getItem("bcr-admin"),r="true"===localStorage.getItem("pv"),c=Boolean(d&&(r||l));return(0,s.jsx)(s.Fragment,{children:c&&(0,s.jsx)("div",{className:"edit-icon icon",id:o,onClick:()=>{i({id:null===a||void 0===a?void 0:a.id,act:"edit",area:o})},children:(0,s.jsx)(n.G,{icon:t.IwR})})})}},3989:(e,i,a)=>{a.d(i,{Z:()=>o});var t=a(7313),n=a(2590),s=a(6417);const o=e=>{var i;let{src:a,alt:o="",loading:l="lazy",fetchPriority:d,sizes:r=n.jX.card,maxWidth:c,className:m,style:u,...p}=e;const g="string"===typeof a?null===(i=a.match(/\/uploads\/images\/([^?#]*)/i))||void 0===i?void 0:i[1]:void 0,v="string"===typeof a&&a.trim()&&(!g||g.trim())&&!a.split(/[/?#]/).some((e=>["undefined","null"].includes(e.toLowerCase()))),[h,x]=(0,t.useState)(""),[y,b]=(0,t.useState)(""),f=v&&y!==a?h===a?"loaded":"loading":"error",j=(e=>{if(!e)return!1;const i=e.toLowerCase();return i.endsWith(".pdf")||i.includes(".pdf")})(a);return v?(0,s.jsxs)(s.Fragment,{children:["loading"===f&&(0,s.jsx)("div",{className:"shimmer","aria-hidden":"true"}),j?(0,s.jsxs)("div",{onClick:()=>{window.open(a,"_blank")},className:"pdf-preview",style:{display:"error"===f?"none":"block",cursor:"pointer",position:"relative"},children:[(0,s.jsx)("iframe",{src:"".concat(a,"#page=1&view=FitH&toolbar=0&navpanes=0&scrollbar=0&statusbar=0&messages=0&zoom=page-fit"),title:o||"PDF Document",onLoad:()=>{x(a)},onError:()=>b(a),style:{width:"100%",height:"400px",border:"1px solid #ddd",borderRadius:"4px",pointerEvents:"none"}}),(0,s.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",padding:"8px 16px",borderRadius:"4px",fontSize:"14px",opacity:0,transition:"opacity 0.3s ease",pointerEvents:"none"},className:"pdf-hover-text",children:"Click to open full PDF"})]}):(0,s.jsx)("img",{src:a,...(0,n._M)(a,r,{maxWidth:c}),alt:o,loading:l,decoding:"async",fetchPriority:d,className:m,style:{...u,display:"error"===f?"none":"block"},onError:()=>b(a),...p,onLoad:()=>{x(a)}})]}):(0,s.jsx)("div",{className:"shimmer ".concat(m||""),style:u,"aria-hidden":"true"})}},9174:(e,i,a)=>{a.d(i,{Z:()=>s});var t=a(7313),n=a(6417);const s=e=>{let{customStyle:i,type:a,placeholder:s,onChange:o,onBlur:l,error:d,required:r,readOnly:c,defaultValue:m,label:u,name:p,disabled:g,id:v,rows:h,onMouseDown:x,showColon:y=!0}=e;const[b,f]=(0,t.useState)(!1);return(0,n.jsxs)("div",{style:null===i||void 0===i?void 0:i.main,className:"input",children:[u&&(0,n.jsxs)("label",{htmlFor:p,style:null===i||void 0===i?void 0:i.label,className:"input-label",children:[u,y?" :":""," ",r&&"*"]}),(0,n.jsxs)("div",{className:"input-container container-inline",children:["textarea"===a&&(0,n.jsx)("textarea",{name:p,id:null!==v&&void 0!==v?v:p,className:d?"input-input input-error":"color"!==a?"input-input":"input-input input-color ",rows:h,placeholder:s,onChange:o,required:!!r,readOnly:!!c,disabled:g,onBlur:l,onMouseDown:x,value:null!==m&&void 0!==m?m:"",style:null===i||void 0===i?void 0:i.input}),"textarea"!==a&&(0,n.jsx)("input",{name:p,id:null!==v&&void 0!==v?v:p,className:d?"input-input input-error":"color"!==a?"input-input":"input-input input-color ",placeholder:s,type:"password"===a?b?"text":"password":a,onChange:o,required:!!r,readOnly:!!c,disabled:g,onBlur:l,onMouseDown:x,value:null!==m&&void 0!==m?m:"",style:null===i||void 0===i?void 0:i.input}),"password"===a&&(0,n.jsx)("i",{className:b?"input-input--eye fa-regular fa-eye":"input-input--eye fa-regular fa-eye-slash",onClick:()=>f((e=>!e))})]}),(0,n.jsx)("div",{className:"input-error--text",children:d||""})]})}},1689:(e,i,a)=>{a.d(i,{Z:()=>o});a(7313);var t=a(1309),n=a(259),s=a(6417);const o=e=>{let{title:i,onClose:a,children:o,titleStyle:l,isSpecific:d,isConfirmation:r,backdropClick:c=!0,dontShowCloseBtn:m,paddingLess:u=!1,titleLess:p=!1,paymentMethod:g,modalWidth:v
1=!1}=e;return(0,s.jsx)("div",{className:"modal-background",onClick:c?e=>{"modal-title--cross fa-regular fa-xmark"!==e.target.className&&"modal-background"!==e.target.className&&"modal-title--cross"!==e.target.className||(e.stopPropagation(),a&&a())}:void 0,style:r?{zIndex:1006}:{},children:(0,s.jsxs)("div",{className:"modal","data-lenis-prevent":!0,style:g?{height:"auto",width:null!==v&&void 0!==v?v:""}:r?{zIndex:1006,width:null!==v&&void 0!==v?v:"60%"}:{width:null!==v&&void 0!==v?v:"60%"},children:[!p&&(0,s.jsxs)("div",{className:"modal-title ".concat(d?"specific":"generic"),style:l,children:[(0,s.jsx)("div",{className:"modal-title--main",children:i}),!0!==m&&a&&(0,s.jsx)("div",{className:"modal-title--cross",onClick:e=>{e.stopPropagation(),a&&a()},children:(0,s.jsx)(n.G,{icon:t.g82,style:{color:"white"}})})]}),(0,s.jsx)("div",{className:"modal-body",style:u?{padding:"0"}:{},children:o})]})})}},1548:(e,i,a)=>{a.d(i,{Z:()=>n});a(7313);var t=a(6417);const n=function(e){let{onImageChange:i,label:a,multiple:n,accept:s,id:o,RecommendedSize:l}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("label",{htmlFor:null!==o&&void 0!==o?o:"imageInput",className:"slider-img-add-btn",style:{position:"relative",padding:" 1.5rem 4.5rem 1.5rem 0rem",fontSize:"1.4rem",fontWeight:"500",cursor:"pointer"},children:[(0,t.jsxs)("div",{className:"recommendedsize-info",style:{position:"absolute",fontSize:".75rem",color:"orange",top:"0.25rem",left:"0.25rem"},children:["Recommended: ",l]}),a]}),(0,t.jsx)("input",{type:"file",className:"visually-hidden",id:null!==o&&void 0!==o?o:"imageInput",accept:null!==s&&void 0!==s?s:"image/png, image/jpeg, application/pdf",multiple:n,onChange:e=>{var a,t;n&&e.target.files?i(Array.from(e.target.files)):i(null!==(a=null===(t=e.target.files)||void 0===t?void 0:t[0])&&void 0!==a?a:null)},style:{fontSize:"1.4rem",cursor:"pointer"}})]})}},65:(e,i,a)=>{a.d(i,{Z:()=>l});var t=a(7313),n=a(5425),s=a.n(n),o=a(6417);const l=e=>{let{customStyle:i={main:{},label:{},input:{},error:{}},name:a,joditHeight:n,placeholder:l,onChange:d,error:r,required:c,readOnly:m,defaultValue:u,type:p,value:g}=e;const v=(0,t.useRef)(null),h=(0,t.useMemo)((()=>({readonly:!1,height:n||"",uploader:{insertImageAsBase64URI:!0}})),[]);return(0,o.jsxs)("div",{className:"textarea",style:i.main,children:[(0,o.jsxs)("label",{htmlFor:a,className:"textarea-label",style:i.label,children:[a&&"".concat(a," :"),c&&"*"]}),"normal"===p?(0,o.jsx)("textarea",{className:r?"textarea-input textarea-error":"textarea-input",name:a,placeholder:l,onChange:d,style:i.error&&0===Object.entries(i.error).length?i.input:i.error,required:!!c,readOnly:!!m,defaultValue:null!==u&&void 0!==u?u:"",value:g}):(0,o.jsx)(s(),{config:h,className:"",value:u||"",onChange:e=>d({target:{name:a,value:e}}),ref:v}),(0,o.jsx)("div",{className:"textarea-error--text",children:r})]})}},4319:(e,i,a)=>{a.d(i,{c:()=>n});var t=a(7313);const n=e=>{let{initialValues:i,validationRules:a={},onSubmit:n=(()=>{})}=e;const[s,o]=(0,t.useState)(i);(0,t.useEffect)((()=>{o(i)}),[JSON.stringify(i)]);const[l,d]=(0,t.useState)({}),r=(e,i)=>{const t=a[e]||(e=>{switch(e){case"firstName":case"lastName":case"fullName":return e=>e?void 0:"Full name is required!";case"phoneNumber":return e=>e?/^9\d{9}$/.test(e)?void 0:"Phone Number must be valid 10 digit!":"Phone Number is required!";case"price":return e=>e?isNaN(parseInt(e))?"Price must be number":parseInt(e)>=0?void 0:"Price cannot be negative":"Price is required!";case"password":case"currentPassword":case"newPassword":return e=>e?void 0:"Password is required!";case"confirmPassword":return function(e){return e?e===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).newPassword?void 0:"Password doesn't match!":"Confirm password is required!"};case"email":case"cemail":return e=>e?/^\S+@\S+\.\S+$/.test(e)?void 0:"Email must be valid":"Email is required!";case"detailAddress":return e=>e?void 0:"Address is required!";case"otp1":case"otp2":case"otp3":case"isAdmin":return()=>{};case"otp4":return e=>e?void 0:"OTP is required!";case"count":return e=>void 0!==e?void 0:"OTP is required!";default:return i=>i?void 0:"".concat(String(e)," is required!")}})(e);return t(i,s)},c=e=>void 0===r(e,s[e]);return{states:s,handleChange:e=>{const{name:i,value:a}=e.target;o((e=>({...e,[i]:a})));const t=r(i,a);d((e=>({...e,[i]:t})))},handleSubmit:e=>{e.preventDefault();Object.keys(s).every((e=>void 0===r(e,s[e])))&&n(s)},errors:l,validate:c,isFormValid:()=>{(()=>{const e={};
1Object.keys(s).forEach((i=>{const a=r(i,s[i]);a&&(e[i]=a)})),d(e)})();return!Object.keys(s).some((e=>!c(e)))},resetForm:()=>{o({...i})}}}},4142:(e,i,a)=>{a.r(i),a.d(i,{default:()=>w});var t=a(7313),n=a(8971),s=a(2135),o=a(2590),l=a(509),d=a(585),r=a(3989),c=a(1689),m=a(5537),u=a(7836),p=a(1548),g=a(9174),v=a(65),h=a(4319),x=a(259),y=a(1309),b=a(6417);const f=e=>{var i,a,s,l,d,r;let{handleAction:c,selectedItem:f,setHandleAction:j,setOpen:w,addSectionEndPoint:N,editEndPoint:k,price:C,bookingName:I,addSectionId:S,slider:_}=e;const[T]=(0,n.Cl)(),[Z]=(0,n.Wb)(),[P]=(0,n.jJ)(),[B,F]=(0,t.useState)(),[R,z]=(0,t.useState)(),[D,L]=(0,t.useState)(),[O,A]=(0,t.useState)(),E=(0,m.I0)(),{states:V,handleChange:H,errors:U,isFormValid:q}=(0,h.c)({initialValues:{name:(null===f||void 0===f?void 0:f.name)||"",title:(null===f||void 0===f?void 0:f.title)||"",path:(null===f||void 0===f?void 0:f.path)||"",description:(null===f||void 0===f?void 0:f.description)||"",images:(null===f||void 0===f?void 0:f.bookingImages.slice().sort(((e,i)=>e.position-i.position)))||"",sectionImages:"section"===c.area&&(null===f||void 0===f||null===(i=f.images)||void 0===i?void 0:i.filter((e=>!0===e.isSlider)))||"",featuredImage:"section"===c.area&&(null===f||void 0===f||null===(a=f.images)||void 0===a?void 0:a.filter((e=>!0===e.isFeatured)))||"",sliderimages:"section"===c.area&&(null===f||void 0===f||null===(s=f.images)||void 0===s?void 0:s.filter((e=>!0===e.isSlider)))||"",bookingType:(null===f||void 0===f?void 0:f.bookingType)||"",startTime:(null===f||void 0===f?void 0:f.startTime)||"",endTime:(null===f||void 0===f?void 0:f.endTime)||"",capacity:(null===f||void 0===f?void 0:f.capacity)||"",menuCount:(null===f||void 0===f?void 0:f.menuCount)||""}}),[W,G]=(0,t.useState)(null),[M,J]=(0,t.useState)(null),[Y,$]=(0,t.useState)(0),[X,K]=(0,t.useState)(null===V||void 0===V?void 0:V.images),[Q,ee]=(0,t.useState)(),[ie,ae]=(0,t.useState)(null),te=(0,t.useRef)([]);(0,t.useEffect)((()=>{ne()}),[M]);const ne=async()=>{const e=M;if(e){const a=new FormData;a.append("BookingId",W),a.append("isFeatured",!1),a.append("image",e);try{await Z(a).unwrap().then((async e=>{var i,a,t;const n=new FormData;n.append("BookingId",null===e||void 0===e||null===(i=e.bookingImage)||void 0===i?void 0:i.bookingId),n.append("BookingImageId",null===e||void 0===e||null===(a=e.bookingImage)||void 0===a?void 0:a.id),n.append("initialposition",null===e||void 0===e||null===(t=e.bookingImage)||void 0===t?void 0:t.position),n.append("finalposition",Y.position),T(Y.id).unwrap().then((e=>console.log("deleted")));const s=await P(n).unwrap();K(s.bookingEntity.bookingImages)}))}catch(i){console.error("Upload failed:",i)}}else console.log("No image selected.")};return(0,b.jsxs)("form",{className:"",style:{padding:"2rem"},onSubmit:async e=>{e.preventDefault();const i=new FormData;i.append("name",V.name),i.append("description",V.description),i.append("path",V.path),i.append("bookingType",V.bookingType),"dining"===I&&(i.append("startTime",V.startTime),i.append("endTime",V.endTime),i.append("capacity",V.capacity),i.append("menuCount",V.menuCount)),Q&&i.append("video",Q),R&&i.append("featured",R),B&&(i.append("isChanged",!0),B.forEach((e=>{i.append("images",e)}))),"add"===c.act&&(i.append("BookingId",S),i.append("title",V.title),i.append("subdescription",V.description)),"edit"===c.act&&(i.append("id",c.id),"section"===c.area&&i.append("title",V.title),"section"===c.area&&i.append("subdescription",V.description)),"add"!==c.act?await k(i).unwrap().then((e=>{F([]),E((0,u.Hz)(null===e||void 0===e?void 0:e.message)),E((0,u.Ug)("edit")),E((0,u.iH)())})).catch((e=>{var i;E((0,u.iT)((null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.error))),E((0,u.iH)())})):await N(i).unwrap().then((e=>{F([]),E((0,u.Hz)(null===e||void 0===e?void 0:e.message)),E((0,u.Ug)("edit")),E((0,u.iH)())})).catch((e=>{E((0,u.iT)(e.error)),E((0,u.iH)())})),j({...c,id:0}),w(!1)},children:["section"!==c.area&&(0,b.jsxs)("div",{className:"model-kamakya-slider-img-flexer",children:[(0,b.jsx)("div",{className:"model-kamakya-slider-img-flexer--sub",children:(0,b.jsx)(p.Z,{onImageChange:e=>{F(e)}
1,multiple:!0,label:"Choose images ",RecommendedSize:"676*738px",id:"kamakhay"})}),(0,b.jsx)("div",{className:"model-kamakya-slider-img-flexer--main",style:{width:"100%",display:"flex",flexWrap:"wrap",rowGap:"1rem",columnGap:"1rem",alignItems:"center",height:"120px"},children:B?B.map((e=>(0,b.jsx)("div",{className:"model-kamakya-slider-img-flexer--image top",style:{height:"100%"},children:(0,b.jsx)("img",{src:URL.createObjectURL(e),width:"100%",height:"100%",alt:""})}))):Array.isArray(X)?null===X||void 0===X?void 0:X.map(((e,i)=>(0,b.jsxs)("div",{className:"mid",draggable:!0,onDragStart:i=>((e,i,a)=>{ae(null===a||void 0===a?void 0:a.position),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/html",e.target.parentNode)})(i,0,e),onDragOver:e=>((e,i)=>{e.preventDefault()})(e,0),onDrop:i=>(async(e,i,a)=>{e.preventDefault();const t=X.find((e=>e.position===ie)).bookingId,n=X.find((e=>e.position===ie)).id,s=new FormData;s.append("BookingId",t),s.append("BookingImageId",n),s.append("inititalposition",ie),s.append("finalposition",a.position),await P(s).unwrap().then((e=>{var i;K(null===e||void 0===e||null===(i=e.bookingEntity)||void 0===i?void 0:i.bookingImages),E((0,u.Hz)(null===e||void 0===e?void 0:e.message)),E((0,u.Ug)("edit")),E((0,u.iH)())})).catch((e=>{var i;E((0,u.iT)((null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.error))),E((0,u.iH)())})),ae(null)})(i,0,e),children:[(0,b.jsxs)("div",{className:"edit",onClick:()=>(e=>{const i=X.findIndex((i=>i.id===e.id));G(e.bookingId),$(e),te.current[i]&&te.current[i].click()})(e),children:[(0,b.jsx)("input",{type:"file",accept:"image/*",style:{opacity:"0",width:"2rem",zIndex:2,height:"1rem",position:"relative",cursor:"pointer"},onChange:e=>J(e.target.files[0])}),(0,b.jsx)(x.G,{icon:y.IwR,style:{position:"absolute",top:0,left:"0",fontSize:"1.5rem",cursor:"pointer",color:"darkGreen"}})]}),(0,b.jsx)(x.G,{icon:y.g82,onClick:()=>async function(e){await T(e).unwrap().then((i=>{K(X.filter((i=>i.id!==e)))}))}(e.id),style:{position:"absolute",top:0,left:"4rem",fontSize:"1.5rem",cursor:"pointer",color:"red"}}),(0,b.jsx)("img",{style:{height:"6rem",width:"6rem"},src:"".concat(o.xB,"uploads/images/").concat(e.image),alt:""})]}))):(0,b.jsx)("div",{className:"bottom",children:(0,b.jsx)("img",{style:{height:"6rem",width:"6rem"},src:"".concat(o.xB,"uploads/images/").concat(V.images),alt:""})})})]}),"section"===c.area&&(0,b.jsxs)("div",{className:"model-kamakya-slider-img-flexer section",children:[(0,b.jsx)("div",{className:"model-kamakya-slider-img-flexer--sub",children:(0,b.jsx)(p.Z,{onImageChange:e=>{A(e)},multiple:!0,label:"Choose  images ",RecommendedSize:"676*738px",id:"kamakhay"})}),(0,b.jsx)("div",{className:"model-kamakya-slider-img-flexer--main",style:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",height:"120px"},children:O?O.map((e=>(0,b.jsx)("div",{className:"model-kamakya-slider-img-flexer--image",style:{height:"100%"},children:(0,b.jsx)("img",{src:URL.createObjectURL(e),width:"100%",height:"100%",alt:""})}))):Array.isArray(null===V||void 0===V?void 0:V.sectionImages)?null===V||void 0===V||null===(l=V.sectionImages)||void 0===l?void 0:l.map((e=>(0,b.jsx)("img",{style:{height:"6rem",width:"6rem"},src:"".concat(o.xB,"uploads/images/").concat(e.image),alt:""}))):(0,b.jsx)("img",{style:{height:"6rem",width:"6rem"},src:"".concat(o.xB,"uploads/images/").concat(V.sectionImages),alt:""})})]}),_&&(0,b.jsxs)("div",{className:"model-kamakya-slider-img-flexer slider",children:[(0,b.jsx)("div",{className:"model-kamakya-slider-img-flexer--sub",children:(0,b.jsx)(p.Z,{onImageChange:e=>{L(e)},multiple:!0,label:"Choose slider images ",RecommendedSize:"676*738px",id:"kamakhay"})}),(0,b.jsx)("div",{className:"model-kamakya-slider-img-flexer--main",style:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",height:"120px"},children:D?D.map((e=>(0,b.jsx)("div",{className:"model-kamakya-slider-img-flexer--image",style:{height:"100%"},children:(0,b.jsx)("img",{src:URL.createObjectURL(e),width:"100%",height:"100%",alt:""})}))):Array.isArray(null===V||void 0===V?void 0:V.sliderimages)?null===V||void 0===V||null===(d=V.sliderimages)||void 0===d?void 0:d.map((e=>(0,b.jsx)("img",{style:{height:"6rem",width:"6rem"},src:"".concat(o.xB,"uploads/images/").concat(e.image),alt:""}))):(0,b.jsx)("img",{style:{height:"6rem",width:"6rem"},src:"".concat(o.xB,"uploads/images/").concat(V.sliderimages),alt:""})})]}),"disco"===I&&(0,b.jsxs)("div",{className:"videoadd-main",children:[(0,b.jsxs)("div",{className:"videoaddmoda-main",style:{minHeight:"10rem"},children:[(0,b.jsx)(p.Z,{onImageChange:e=>
1ee(e),label:"Choose Video",accept:"video/*",id:"videoInput",RecommendedSize:"50mb"}),Q&&(0,b.jsxs)("video",{controls:!0,style:{width:"100px",height:"50px",padding:"4px",objectFit:"cover",border:"2px solid green"},children:[(0,b.jsx)("source",{src:URL.createObjectURL(Q),type:"video/mp4"}),"Your browser does not support the video tag."]})]}),(0,b.jsxs)("div",{className:"videoaddmoda-main",style:{minHeight:"10rem"},children:[(0,b.jsx)(p.Z,{onImageChange:e=>z(e),label:"Choose Feature Images ",onChange:e=>{var i;const a=null===(i=e.target.files)||void 0===i?void 0:i[0];R(a||null)},accept:"image/*",RecommendedSize:"560*360px"}),R&&(0,b.jsx)("img",{src:null===(r=URL)||void 0===r?void 0:r.createObjectURL(R),alt:"Selected Logo",style:{width:"100px",height:"50px",padding:"4px",objectFit:"cover",border:"2px solid green"}})]})]}),(0,b.jsxs)("div",{className:"input-wrapper",children:["section"===c.area?(0,b.jsx)(g.Z,{label:"title",type:"text",name:"title",defaultValue:V.title,onChange:H,placeholder:"title",error:U.title}):(0,b.jsx)(g.Z,{label:"name",type:"text",name:"name",defaultValue:V.name,onChange:H,placeholder:"name",error:U.name}),(0,b.jsx)(v.Z,{label:"Description",onChange:H,error:U.description,name:"description",placeholder:"Description",type:"rich",defaultValue:V.description}),C&&(0,b.jsx)(g.Z,{label:"price",type:"number",name:"price",defaultValue:V.price,onChange:H,placeholder:"Price",error:U.price}),"dining"===I&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.Z,{label:"menuCount",type:"number",name:"menuCount",defaultValue:V.menuCount,onChange:H,placeholder:"menuCount",error:U.menuCount}),(0,b.jsx)(g.Z,{label:"capacity",type:"number",name:"capacity",defaultValue:V.capacity,onChange:H,placeholder:"capacity",error:U.capacity}),(0,b.jsx)(g.Z,{label:"startTime",type:"time",name:"startTime",defaultValue:V.startTime,onChange:H,placeholder:"startTime",error:U.startTime}),(0,b.jsx)(g.Z,{label:"endTime",type:"time",name:"endTime",defaultValue:V.endTime,onChange:H,placeholder:"endTime",error:U.endTime})]}),(0,b.jsx)("button",{type:"submit ",className:"modal-button",children:c.act})]})]})};var j=a(6907);const w=()=>{var e,i,a,m,u,p,g,v;const h=(0,j.default)(),x=(0,j.default)(),y=(0,j.default)(),{data:w}=(0,n.Zv)(),N=null===w||void 0===w?void 0:w.bookingEntities.filter((e=>"destinationwedding"===e.path))[0],k=N&&(null===N||void 0===N?void 0:N.bookingImages.slice().sort(((e,i)=>e.position-i.position))),[C,I]=(0,t.useState)(),[S]=(0,n.s9)(),[_,T]=(0,t.useState)(!1),[Z,P]=(0,t.useState)({id:"",act:"",data:""});function B(e){var i;P((i=>({...i,id:e.id,act:e.act}))),I(null===w||void 0===w||null===(i=w.bookingEntities)||void 0===i?void 0:i.find((i=>i.id===e.id))),T(!0)}const F=k&&(null===(e=k[4])||void 0===e?void 0:e.image);return(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{className:"destinationweddingpage ",children:[(0,b.jsx)(d.Z,{handle:B,item:N&&N}),(0,b.jsxs)("div",{className:"destinationweddingpage__top  container container-inline",children:[(0,b.jsx)("div",{className:"destinationweddingpage__top--left",children:(0,b.jsx)("div",{className:"destinationweddingpage__top--left-image",children:k&&(0,b.jsx)(r.Z,{src:"".concat(o.xB,"uploads/images/").concat(null===(i=k[0])||void 0===i?void 0:i.image),alt:""})})}),(0,b.jsx)("div",{className:"destinationweddingpage__top--right",children:(0,b.jsxs)("div",{className:"destinationweddingpage__top--right--text",children:[(0,b.jsx)("div",{className:"destinationweddingpage__top--right--text-title",ref:h,children:null===N||void 0===N?void 0:N.name}),(0,b.jsx)("div",{className:"destinationweddingpage__top--right--text-desc",dangerouslySetInnerHTML:{__html:null===N||void 0===N?void 0:N.description},ref:y})]})})]}),(0,b.jsxs)("div",{className:"destinationweddingpage__images",children:[(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"destinationweddingpage__images--mid",children:[(0,b.jsxs)("div",{className:"destinationweddingpage__images--mid-img1",children:[" ",k&&(0,b.jsx)(r.Z,{src:"".concat(o.xB,"uploads/images/").concat(null===(a=k[1])||void 0===a?void 0:a.image),alt:""})]}),(0,b.jsx)("div",{className:"destinationweddingpage__images--mid-img2",children:k&&(0,b.jsx)(r.Z,{src:"".concat(o.xB,"uploads/images/").concat(null===(m=k[2])||void 0===m?void 0:m.image),alt:""})}),(0,b.jsxs)("div",{className:"destinationweddingpage__images--mid-img3",children:[" ",k&&(0,b.jsx)(r.Z,{src:"".concat(o.xB,"uploads/images/").concat(null===(u=k[3])||void 0===u?void 0:u.image),alt:""})]})]}),(0,b.jsx)("div",{className:"destinationweddingpage__images--top",style:{backgroundImage:"url(".concat(o.xB,"uploads/images/").concat(F,")"),backgroundPosition:"center",backgroundSize:"cover",backgroundAttachment:"fixed"}}),(0,b.jsxs)("div",{className:"destinationweddingpage__images--bottom  container container-inline",children:[(0,b.jsx)("div",{className:"destinationweddingpage__images--bottom--left",children:k&&(0,b.jsx)(r.Z,{src:"".concat(o.xB,"uploads/images/").concat(null===(p=k[5])||void 0===p?void 0:p.image),alt:""})}),(0,b.jsxs)("div",{className:"destinationweddingpage__images--bottom--right",children:[(0,b.jsxs)("div",{className:"destinationweddingpage__images--bottom--right-text",ref:x,children:["Say ",(0,b.jsx)("span",{className:"yellow",children:"'I Do'"}),(0,b.jsx)("br",{})," with a ",(0,b.jsx)("span",{className:"yellow",children:"View"}),": ",(0,b.jsx)("br",{})," ","Your Dream ",(0,b.jsx)("br",{})," ",(0,b.jsxs)("span",{className:"yellow",children:["Wedding ",(0,b.jsx)("br",{}),"Destination"]})," ","Awaits!"]}),(0,b.jsx)(s.rU,{to:"/gallery/destinationwedding",className:"destinationweddingpage__images--bottom--right-btn",children:(0,b.jsx)("div",{className:"btn",children:"View Gallery"})}),(0,b.jsxs)("div",{className:"destinationweddingpage__images--bottom--right-images",children:[k&&(0,b.jsx)(r.Z,{src:"".concat(o.xB,"uploads/images/").concat(null===(g=k[6])||void 0===g?void 0:g.image),alt:""}),k&&(0,b.jsx)(r.Z,{src:"".concat(o.xB,"uploads/images/").concat(null===(v=k[7])||void 0===v?void 0:v.image),alt:""})]})]})," "]})]}),(0,b.jsx)(l.Z,{}),_&&(0,b.jsx)(c.Z,{title:"Item ".concat(Z.act),onClose:()=>T(!1),isSpecific:!0,isConfirmation:!0,children:(0,b.jsx)(f,{handle:B,handleAction:Z,setHandleAction:P,selectedItem:C,setOpen:T,editEndPoint:S,typeName:"activityTypeId"})})]})]})})}},6907:(e,i,a)=>{a.r(i),a.d(i,{default:()=>o});var t=a(7313),n=a(3589),s=a(926);n.ZP.registerPlugin(s.i);const o=()=>{const e=(0,t.useRef)(null);return(0,t.useLayoutEffect)((()=>
1{if(e.current){const i="a, button, .btn, .bordered-btn, [class*='btn'], [class*='button']";if(!e.current.matches(i)&&e.current.closest(i))return void n.ZP.set(e.current,{clearProps:"transform,opacity"});n.ZP.fromTo(e.current,{y:30,opacity:1},{y:0,opacity:1,duration:.3,ease:"power1.out",scrollTrigger:{trigger:e.current,start:"top bottom",end:"bottom center",scrub:1}})}}),[e.current]),e}}}]);

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.