PageSourceSearch

https://www.brajrasik.org/_next/static/chunks/383.07b521a041363f5b.js

js brajrasik.org collected 2026-10-02 19:27:00 UTC 11,197 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[383,3495,4203,449],{10383:function(e,t,n){n.r(t);var o=n(85893),i=n(72177),a=n(66190),l=n(87508),r=n(54117),s=n(9997),c=n(70449),u=n(9669),d=n.n(u),p=n(5152),f=n.n(p),m=n(67294),v=n(1342),g=n(1106),b=n(10239),h=n(7023),C=n(11694);let y=f()(()=>n.e(2767).then(n.bind(n,42767)),{loadableGenerated:{webpack:()=>[42767]}}),w=f()(()=>Promise.all([n.e(5482),n.e(6416),n.e(953)]).then(n.bind(n,86416)),{loadableGenerated:{webpack:()=>[86416]}}),x=(0,v.QM)({...g.o});t.default=e=>{let{item:t,user:n}=e,u=x(),p={url:"",isUpdate:!1,data:C.eN},[f,v]=(0,m.useState)(!1),[g,E]=(0,m.useState)(p),k=()=>{p.url="".concat(b.hi.photospheres,"?access_token=").concat(n.token),p.isUpdate=!1;let e=Object.assign([],C.eN);p.data=e,E(p),v(!0)},Z=async()=>{var e;p.url="".concat(b.hi.photospheres,"/").concat(t._id,"?access_token=").concat(n.token),p.isUpdate=!0;let o=await d().get("".concat(b.hi.photospheres,"/").concat(null==t?void 0:t._id,"?isDatabase=true")),i=Object.assign([],(0,C.VN)(null==o?void 0:null===(e=o.data)||void 0===e?void 0:e[0]));p.data=i,E(p),v(!0)},N=()=>{let e="".concat(b.hi.photospheres,"/").concat(t._id,"?access_token=").concat(n.token);d().delete(e).then(e=>{l.ZP.success("Delete: Success - ".concat(e))}).catch(e=>{l.ZP.error("Delete: Error - ".concat(e))}),r.Z.destroyAll()},O=(0,o.jsxs)(s.default,{children:[(0,o.jsx)(s.default.Item,{onClick:e=>Z(e),children:"Edit"},"1"),(0,o.jsx)(s.default.Divider,{}),(0,o.jsx)(s.default.Item,{disabled:(null==n?void 0:n.isSupport)||(null==n?void 0:n.isEditor),children:(0,o.jsx)("input",{id:"upload",disabled:(null==n?void 0:n.isSupport)||(null==n?void 0:n.isEditor),type:"file",accept:"image/*",onChange:e=>h.RE.uploadFileToS3(e.target.files,t._id,null==n?void 0:n.token,{invalidateCache:!0}),onClick:e=>{e.target.value=null}})},"2"),(0,o.jsx)(s.default.Divider,{}),(0,o.jsx)(s.default.Item,{disabled:(null==n?void 0:n.isSupport)||(null==n?void 0:n.isEditor),onClick:()=>h.RE.uploadVersionS_M(t._id,null==n?void 0:n.token,{invalidateCache:!0}),children:"Reupload to Cloud"},"3"),(0,o.jsx)(s.default.Divider,{}),(0,o.jsx)(s.default.Item,{disabled:(null==n?void 0:n.isSupport)||(null==n?void 0:n.isEditor)||(null==n?void 0:n.isManager),onClick:e=>j(e),children:"Delete"},"4")]}),j=()=>{r.Z.confirm({title:"Confirm",content:"Are you sure you want to delete?",okText:"Yes",onOk:N,cancelText:"No"})};return(0,o.jsxs)(o.Fragment,{children:[f&&(0,o.jsx)(y,{open:f,onClosePopup:()=>v(!1),children:(0,o.jsx)(w,{items:g})}),(0,o.jsx)("div",{className:u.root,children:(0,o.jsx)("div",{className:"flex-row ml-50",children:t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Z,{onClick:e=>Z(e),className:"material-icons big-icon icon-shadow ml-2"}),(0,o.jsx)(c.Z,{placement:"bottomLeft",trigger:["click"],overlay:O,children:(0,o.jsx)(a.Z,{onClick:e=>e.preventDefault(),className:"material-icons big-icon icon-shadow ml-2"})})]}):(0,o.jsx)("i",{onClick:e=>k(e),className:"material-icons big-icon icon-shadow ml-4  ".concat(u.btn_add),children:"add_circle"})})})]})}},10229:function(e,t,n){n.d(t,{Z:function(){return O}});var o=n(87462),i=n(71002),a=n(4942),l=n(97685),r=n(52359),s=n(93967),c=n.n(s),u=n(60057),d=n(83907),p=n(63864),f=n(67294),m=n(9997),v=n(17399),g=n(33604),b=n(96996),h=n(84476),C=n(3227),y=n(66190),w=n(56469),x=n(17877),E=n(4116),k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n},Z=function(e){var t=f.useContext(v.E_),n=t.getPopupContainer,i=t.getPrefixCls,a=t.direction,r=e.prefixCls,s=e.type,u=void 0===s?"default":s,d=e.danger,p=e.disabled,m=e.loading,g=e.onClick,b=e.htmlType,h=e.children,C=e.className,Z=e.menu,N=e.arrow,j=e.autoFocus,P=e.overlay,S=e.trigger,_=e.align,R=e.visible,D=e.open,A=e.onVisibleChange,T=e.onOpenChange,L=e.placement,V=e.getPopupContainer,F=e.href,I=e.icon,M=void 0===I?f.createElement(y.Z,null):I,B=e.title,H=e.buttonsRender,U=e.mouseEnterDelay,z=e.mouseLeaveDelay,W=e.overlayClassName,G=e.overlayStyle,Y=e.destroyPopupOnHide,J=k(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","visible","open","onVisibleChange","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),Q=i("dropdown-button",r),X={menu:Z,arrow:N,autoFocus:j,align:_,disabled:p,trigger:p?[]:S,onOpenChange:T||A,getPopupContainer:V||n,mouseEnterDelay:U,mouseLeaveDelay:z,overlayClassName:W,overlayStyle:G,destroyPopupOnHide:Y},q=(0,x.ri)(Q,a),K=q.compactSize,$=q.compactItemClassnames,ee=c()(Q,$,C);"overlay"in e&&(X.overlay=P),"open"in e?X.open=D:"visible"in e&&(X.open=R),"placement"in e?X.placement=L:X.placement="rtl"===a?"bottomLeft":"bottomRight";var et=(void 0===H?function(e){return e}:H)([f.createElement(w.Z,{type:u,danger:d,disabled:p,loading:m,onClick:g,htmlType:b,href:F,title:B},h),f.createElement(w.Z,{type:u,danger:d,icon:M})]),en=(0,l.Z)(et,2),eo=en[0],ei=en[1];return f.createElement(E.Z.Compact,(0,o.Z)({className:ee,size:K,block:!0},J),eo,f.createElement(O,(0,o.Z)({}
1,X),ei))};Z.__ANT_BUTTON=!0,(0,C.b)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom");var N=function(e){var t,n,s,C,y,w=f.useContext(v.E_),E=w.getPopupContainer,k=w.getPrefixCls,Z=w.direction,N=e.menu,O=e.arrow,j=e.prefixCls,P=e.children,S=e.trigger,_=e.disabled,R=e.dropdownRender,D=e.getPopupContainer,A=e.overlayClassName,T=e.visible,L=e.open,V=e.onVisibleChange,F=e.onOpenChange,I=e.mouseEnterDelay,M=e.mouseLeaveDelay,B=e.autoAdjustOverflow,H=k("dropdown",j),U=f.Children.only(P),z=(0,h.Tm)(U,{className:c()("".concat(H,"-trigger"),(0,a.Z)({},"".concat(H,"-rtl"),"rtl"===Z),U.props.className),disabled:_}),W=_?[]:S;W&&W.includes("contextMenu")&&(y=!0);var G=(0,p.Z)(!1,{value:void 0!==L?L:T}),Y=(0,l.Z)(G,2),J=Y[0],Q=Y[1],X=(0,d.Z)(function(e){null==V||V(e),null==F||F(e),Q(e)}),q=c()(A,(0,a.Z)({},"".concat(H,"-rtl"),"rtl"===Z)),K=(0,b.Z)({arrowPointAtCenter:"object"===(0,i.Z)(O)&&O.pointAtCenter,autoAdjustOverflow:void 0===B||B}),$=f.useCallback(function(){Q(!1)},[]);return f.createElement(u.Z,(0,o.Z)({alignPoint:y},e,{mouseEnterDelay:void 0===I?.15:I,mouseLeaveDelay:void 0===M?.1:M,visible:J,builtinPlacements:K,arrow:!!O,overlayClassName:q,prefixCls:H,getPopupContainer:D||E,transitionName:(t=k(),n=e.placement,void 0!==(s=e.transitionName)?s:(void 0===n?"":n).includes("top")?"".concat(t,"-slide-down"):"".concat(t,"-slide-up")),trigger:W,overlay:function(){var t,n=e.overlay;return t=(null==N?void 0:N.items)?f.createElement(m.default,(0,o.Z)({},N)):"function"==typeof n?n():n,R&&(t=R(t)),t=f.Children.only("string"==typeof t?f.createElement("span",null,t):t),f.createElement(g.J,{prefixCls:"".concat(H,"-menu"),expandIcon:f.createElement("span",{className:"".concat(H,"-menu-submenu-arrow")},f.createElement(r.Z,{className:"".concat(H,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:$,validator:function(e){e.mode}},f.createElement(x.BR,null,t))},placement:(C=e.placement)?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:"rtl"===Z?"bottomRight":"bottomLeft",onVisibleChange:X}),z)};N.Button=Z;var O=N},70449:function(e,t,n){var o=n(10229);t.Z=o.Z},1106:function(e,t,n){n.d(t,{o:function(){return o}});let o={root:{position:"absolute",left:"0px",zIndex:100,"@media (max-width: 768px)":{left:"0px"}},btn_add:{position:"absolute",background:"grey",left:100,"@media (max-width: 768px)":{left:50}}}},60057:function(e,t,n){n.d(t,{Z:function(){return y}});var o=n(4942),i=n(1413),a=n(97685),l=n(45987),r=n(67294),s=n(32720),c=n(93967),u=n.n(c),d={adjustX:1,adjustY:1},p=[0,0],f={topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:p},topCenter:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:p},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:p},bottomCenter:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:p},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:p}},m=n(73424),v=n(24567),g=n(29780),b=m.Z.ESC,h=m.Z.TAB,C=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"],y=r.forwardRef(function(e,t){var n,c,d,p,m,y,w,x,E,k,Z,N,O,j,P,S,_=e.arrow,R=void 0!==_&&_,D=e.prefixCls,A=void 0===D?"rc-dropdown":D,T=e.transitionName,L=e.animation,V=e.align,F=e.placement,I=e.placements,M=e.getPopupContainer,B=e.showAction,H=e.hideAction,U=e.overlayClassName,z=e.overlayStyle,W=e.visible,G=e.trigger,Y=void 0===G?["hover"]:G,J=e.autoFocus,Q=(0,l.Z)(e,C),X=r.useState(),q=(0,a.Z)(X,2),K=q[0],$=q[1],ee="visible"in e?W:K,et=r.useRef(null);r.useImperativeHandle(t,function(){return et.current}),d=(c={visible:ee,setTriggerVisible:$,triggerRef:et,onVisibleChange:e.onVisibleChange,autoFocus:J}).visible,p=c.setTriggerVisible,m=c.triggerRef,y=c.onVisibleChange,w=c.autoFocus,x=r.useRef(!1),E=function(){if(d&&m.current){var e,t,n,o;null===(e=m.current)||void 0===e||null===(t=e.triggerRef)||void 0===t||null===(n=t.current)||void 0===n||null===(o=n.focus)||void 0===o||o.call(n),p(!1),"function"==typeof y&&y(!1)}},k=function(){var e,t,n,o,i=(0,g.tS)(null===(e=m.current)||void 0===e?void 0:null===(t=e.popupRef)||void 0===t?void 0:null===(n=t.current)||void 0===n?void 0:null===(o=n.getElement)||void 0===o?void 0:o.call(n))[0];return null!=i&&!!i.focus&&(i.focus(),x.current=!0,!0)},Z=function(e){switch(e.keyCode){case b:E();break;case h:var t=!1;x.current||(t=k()),t?e.preventDefault():E()}},r.useEffect(function(){return d?(window.addEventListener("keydown",Z),w&&(0,v.Z)(k,3),function(){window.removeEventListener("keydown",Z),x.current=!1}):function(){x.current=!1}},[d]);var en=function(){var t=e.overlay;return"function"==typeof t?t():t},eo=function(){var e=en();return r.createElement(r.Fragment,null,R&&r.createElement("div",{className:"".concat(A,"-arrow")}),e)},ei=H;return ei||-1===Y.indexOf("contextMenu")||(ei=["click"]),r.createElement(s.Z,(0,i.Z)((0,i.Z)({builtinPlacements:void 0===I?f:I},Q),{},{prefixCls:A,ref:et,popupClassName:u()(U,(0,o.Z)({},"".concat(A,"-show-arrow"),R)),popupStyle:z,action:Y,showAction:B,hideAction:ei||[],popupPlacement:void 0===F?"bottomLeft":F,popupAlign:V,popupTransitionName:T,popupAnimation:L,popupVisible:ee,stretch:(N=e.minOverlayWidthMatchTrigger,O=e.alignPoint,"minOverlayWidthMatchTrigger"in e?N:!O)?"minWidth":"",popup:"function"==typeof e.overlay?eo:eo(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;$(t),"function"==typeof n&&n(t)},onPopupClick:function(t){var n=e.onOverlayClick;$(!1),n&&n(t)},getPopupContainer:M}),(P=(j=e.children).props?j.props:{},S=u()(P.className,void 0!==(n=e.openClassName)?n:"".concat(A,"-open")),ee&&j?r.cloneElement(j,{className:S}):j))})}}]);

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.