PageSourceSearch

https://dist.syncsketch.com/bundles/9729.b7ef071.js

js syncsketch.com collected 2026-09-25 02:33:11 UTC 17,059 bytes, 3 lines download raw bytes

1/*! For license information please see 9729.b7ef071.js.LICENSE.txt */
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ec4c97f7-1c8f-4a62-9cef-e68ea43f54d2",e._sentryDebugIdIdentifier="sentry-dbid-ec4c97f7-1c8f-4a62-9cef-e68ea43f54d2")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"3.19.1"},(self.webpackChunksyncsketch=self.webpackChunksyncsketch||[]).push([[9729],{59729:function(e,t,i){i.d(t,{S:function(){return s}});var o=i(72987);const s={methods:{$_trigger(e){o.R.trigger(e)}}}},72987:function(e,t,i){i.d(t,{R:function(){return h}});var o=i(64720),s=i(42441),n=i.n(s),r=i(3529),a=i(82535),c=i(76004),d=i(87348),l=i(98542),p=i(98660);const h=new(n());let u=null;h.handleKey=(e,t,i)=>{if("object"==typeof $SKETCH){if("left"===e&&t.indexOf("alt")>-1&&(i.preventDefault(),i.stopPropagation()),"INPUT"===i.target.nodeName||"TEXTAREA"===i.target.nodeName)return;if($SKETCH.store.getters.blockedUI&&-1===["m","h","c","esc","0","1","2","3","4","5","6","7","8","9"].findIndex((t=>t===e))){if(!(t.indexOf("ctrl")>-1&&["f"].indexOf(e)>-1))return;console.log("special")}
2"keyup"===i.type&&($SKETCH.changingBrushSize=!1),h._handleKey(e,t,i)}};const g=e=>{const t=Math.floor(10*e.originalFPS),i=Math.floor(e.totalFrames/5);return e.currentItem.duration>60?t:i};var y={_initKeyBindings:function(){let{state:e,getters:t,commit:i,dispatch:s}=this.store;if(h.bind(["up"],(t=>{t.preventDefault(),e.sequencePlayback.isActive?((0,a.L9)({action:"nextItemInSequence",props:{triggeredBy:"hotkey"}}),r.u.emit("sequencePlayback:navigate",{direction:1,event:t})):this.jumpTo(1,t)}),"keydown"),h.bind(["shift+up"],(e=>{e.preventDefault(),this.jumpTo(0,e)}),"keydown"),h.bind(["down"],(t=>{t.preventDefault(),e.sequencePlayback.isActive?((0,a.L9)({action:"prevItemInSequence",props:{triggeredBy:"hotkey"}}),r.u.emit("sequencePlayback:navigate",{direction:-1,event:t})):this.jumpTo(-1,t)}),"keydown"),h.bind(["shift+down"],(e=>{e.preventDefault(),this.jumpTo(0,e)}),"keydown"),h.bind(["u"],(e=>{e.preventDefault(),(0,a.L9)({action:"skipBackward",props:{triggeredBy:"hotkey"}}),this.step(-g(t),e)}),"keydown"),h.bind(["o"],(e=>{e.preventDefault(),(0,a.L9)({action:"skipForward",props:{triggeredBy:"hotkey"}}),this.step(g(t),e)}),"keydown"),h.bind(["left"],(()=>{this.keyStep&&this.step(-1)}),"keydown"),h.bind(["shift+left"],(t=>{e.sequencePlayback.isActive&&((0,a.L9)({action:"prevItemInSequence",props:{triggeredBy:"hotkey"}}),r.u.emit("sequencePlayback:navigate",{direction:-1,event:t,expandIsolation:!0}))}),"keydown"),h.bind(["shift+right"],(t=>{e.sequencePlayback.isActive&&((0,a.L9)({action:"nextItemInSequence",props:{triggeredBy:"hotkey"}}),r.u.emit("sequencePlayback:navigate",{direction:1,event:t,expandIsolation:!0}))}),"keydown"),h.bind(["alt+left"],(e=>((0,a.L9)({action:"prevItem",props:{triggeredBy:"hotkey",key:"alt+left"}}),e.stopPropagation(),e.preventDefault(),this.prevItem(),!1)),"keydown"),h.bind(["ctrl+left","meta+left"],(e=>(e.stopPropagation(),e.preventDefault(),(0,a.L9)({action:"prevAnnotation",props:{triggeredBy:"hotkey"}}),this.jumpTo(-1,e),!1)),"keydown"),h.bind(["ctrl+shift+left","meta+shift+left"],(i=>{if(i.preventDefault(),t.activeRange){const t=Math.max(e.mediaState.IN_FRAME-1,0);this.setRange({inFrame:t}),$SKETCH.setCurrentFrame(t)}else this.jumpTo(-1,i);return!1}),"keydown"),h.bind(["right"],(()=>{this.keyStep&&this.step(1)}),"keydown"),h.bind(["alt+right"],(e=>(e.preventDefault(),this.nextItem(),(0,a.L9)({action:"nextItem",props:{triggeredBy:"hotkey"}}),!1)),"keydown"),h.bind(["ctrl+right","meta+right"],(e=>(e.preventDefault(),(0,a.L9)({action:"nextAnnotation",props:{triggeredBy:"hotkey"}}),this.jumpTo(1,e),!1)),"keydown"),h.bind(["ctrl+shift+right","meta+shift+right"],(i=>{if(i.preventDefault(),t.activeRange){const i=Math.min(e.mediaState.OUT_FRAME+1,t.totalFrames);this.setRange({endFrame:i}),$SKETCH.setCurrentFrame(i)}else this.jumpTo(1,i);return!1}),"keydown"),h.bind(["ctrl+shift+n"],(()=>{(0,a.L9)({action:"showNotifyDialog",props:{triggeredBy:"hotkey"}}),this.store.set("ui@showNotifyDialog",!0)}),"keydown"),h.bind(["ctrl+z","meta+z"],(()=>{e.tools.recordUndo.isActive&&((0,a.L9)({action:"undo",props:{triggeredBy:"hotkey"}}),this.changeSettings("undo"))}),"keydown"),h.bind(["ctrl+shift+z","meta+shift+z"],(()=>{e.tools.recordUndo.isActive&&((0,a.L9)({action:"redo",props:{triggeredBy:"hotkey"}}),this.changeSettings("redo"))}),"keydown"),h.bind("shift+=",(()=>{(0,a.L9)({action:"zoomIn",props:{triggeredBy:"hotkey"}}),r.u.emit("zoom:in")}),"keydown"),h.bind("shift+-",(()=>{(0,a.L9)({action:"zoomOut",props:{triggeredBy:"hotkey"}}),r.u.emit("zoom:out")}),"keydown"),h.bind("c",(e=>{e.preventDefault(),t.canAnnotate&&!t.isSequencePlaybackRestricted&&((0,a.L9)({action:"focusComment",props:{triggeredBy:"hotkey"}}),r.u.emit("focusCommentInput"))})),h.bind("z",(()=>{this.$wrapDiv.addClass("zooming"),this.zoomToolActive=!0}),"keydown"),h.bind("z",(()=>{this.$wrapDiv.removeClass("zooming"),this.zoomToolActive=!1}),"keyup"),h.bind("shift+g",(()=>{(0,a.L9)({action:"toggleGuides",props:{triggeredBy:"hotkey",isActive:!e.tools.overlays.isActive}}),s("updateTool",{overlays:{...e.tools.overlays,isActive:!e.tools.overlays.isActive}})})),h.bind("m",(()=>{(0,a.L9)({action:"muteSelf",props:{triggeredBy:"hotkey"}}),s("muteSelf",{isMuted:!e.tools.audio.isMuted})})),h.bind(["ctrl+m"],(e=>{(0,a.L9)({action:"muteAll",props:{triggeredBy:"hotkey"}}),e.preventDefault(),s("muteClients",{clientsMuted:!0}),s("muteSelf",{isMuted:!0})}),"keyup"),h.bind("ctrl+shift+m",(e=>{e.preventDefault(),(0,a.L9)({action:"unMuteAll",props:{triggeredBy:"hotkey"}}),s("muteClients",{clientsMuted:!1}),s("muteSelf",{isMuted:!1})}
2),"keyup"),h.bind("ctrl+alt+m",(e=>{e.preventDefault(),(0,a.L9)({action:"muteOthers",props:{triggeredBy:"hotkey"}}),s("muteClients",{clientsMuted:!0}),s("hudMessage",{text:"Audio Muted For Others"})}),"keyup"),h.bind(["space"],(e=>{e.ctrlKey||(0,p.Mc)().isDrawing()||(e.preventDefault(),this.panningToolActive=!0,this.addPanningClassTimeout&&window.clearTimeout(this.addPanningClassTimeout),this.addPanningClassTimeout=setTimeout((()=>{this.$wrapDiv.addClass("panning")}),100))}),"keydown"),h.bind(["space"],(e=>(e.preventDefault(),this.$wrapDiv.removeClass("panning"),!this.panWasActivated&&t.hasMultipleFrames&&this.togglePlayback({ignoreInAndOut:e.ctrlKey}),(0,a.L9)({action:"startPlayback",props:{triggeredBy:"hotkey"}}),this.addPanningClassTimeout&&window.clearTimeout(this.addPanningClassTimeout),this.panningToolActive=!1,this.panWasActivated=!1,!1)),"keyup"),h.bind(["ctrl+space","alt+space"],(i=>{if(i.preventDefault(),t.isFeatureEnabled("PLAYER_SEQUENCE_PLAYBACK"))if(e.ui.isMobile)o.MessageBox.alert(l.pX.message,l.pX.title);else{if(l.ZP.supportsSequencePlayback())return $SKETCH.startSequencePlayback(),!1;o.MessageBox.alert(l._b.message,l._b.title)}else o.MessageBox.alert(l.VS.message,l.VS.title)}),"keyup"),h.bind("/",(e=>{(0,a.L9)({action:"clearRange",props:{triggeredBy:"hotkey"}}),this.setInAndOutFrame(null,null),e.preventDefault()}),"keydown"),h.bind(".",(e=>{e.preventDefault(),(0,a.L9)({action:"setRangeEnd",props:{triggeredBy:"hotkey"}}),this.setRange({endFrame:t.getCurrentWindowFrame()})}),"keydown"),h.bind("ctrl+.",(e=>{e.preventDefault(),(0,a.L9)({action:"setOutFrameToEnd",props:{triggeredBy:"hotkey"}}),this.setOutFrame(t.duration_in_frames)}),"keydown"),h.bind(",",(e=>{e.preventDefault(),(0,a.L9)({action:"setInFrame",props:{triggeredBy:"hotkey"}}),this.setRange({inFrame:t.getCurrentWindowFrame()})}),"keydown"),h.bind("ctrl+,",(e=>{e.preventDefault(),(0,a.L9)({action:"setInFrameToStart",props:{triggeredBy:"hotkey"}}),this.setInFrame(0)}),"keydown"),h.bind("?",(t=>{t.preventDefault(),this.store.set("ui@showHelp",!e.ui.showHelp)}),"keydown"),h.bind("home",(e=>{e.preventDefault(),(0,a.L9)({action:"jumpToStart",props:{triggeredBy:"hotkey"}}),this.setCurrentFrame(t.currentStartFrame)}),"keydown"),h.bind("end",(e=>{e.preventDefault(),(0,a.L9)({action:"jumpToEnd",props:{triggeredBy:"hotkey"}}),this.setCurrentFrame(t.currentEndFrame)}),"keydown"),h.bind("pageup",(e=>{e.preventDefault(),(0,a.L9)({action:"prevItem",props:{triggeredBy:"hotkey",key:"pageUp"}}),$SKETCH.prevItem()}),"keydown"),h.bind("pagedown",(e=>{e.preventDefault(),(0,a.L9)({action:"nextItem",props:{triggeredBy:"hotkey",key:"pageDown"}}
2),$SKETCH.nextItem()}),"keydown"),h.bind(["ctrl+f"],(t=>{t.preventDefault(),(0,a.L9)({action:"toggleFullScreen",props:{triggeredBy:"hotkey"}}),s("SET_FULLSCREEN",{which:!e.ui.fullScreen})}),"keydown"),h.bind(["command+shift+s","ctrl+shift+s"],(e=>{var i;e.preventDefault(),(0,a.L9)({action:"downloadCurrentFrame",props:{triggeredBy:"hotkey"}});const o=null==t||null===(i=t.currentItem)||void 0===i?void 0:i.type;if(d.Ie.includes(o))return s("downloadCurrentFrame"),!1}),"keydown"),h.bind(["command+shift+p","ctrl+shift+p"],(e=>(e.preventDefault(),(0,a.L9)({action:"downloadPDF",props:{triggeredBy:"hotkey"}}),$SKETCH.downloadPDF(),!1)),"keydown"),h.bind("ctrl+shift+f",(t=>{t.preventDefault(),(0,a.L9)({action:"fullscreenWithoutControls",props:{triggeredBy:"hotkey"}}),s("SET_FULLSCREEN",{which:!e.ui.fullScreen,with_controls:!1})}),"keydown"),h.bind("esc",(()=>{e.ui.fullScreen&&this.store.dispatch("SET_FULLSCREEN",{which:!1}),e.ui.showHelp?this.store.set("ui@showHelp",!1):e.compare.active_item_id?this.store.dispatch("setCompareState",{key:"active_item_id",value:null}):e.sequencePlayback.isActive?this.store.dispatch("cancelSequencePlayback"):"eyeDropper"!==e.tools.activeTool?e.mediaState.isPlaying?this.changeSettings("stopPlay"):(this.store.dispatch("selectCurrentOnly"),e.ui.showGhostingDialog&&this.store.set("ui@showGhostingDialog",!1)):h.trigger("i")}),"keydown"),h.bind("shift+t",(()=>{(0,a.L9)({action:"toggleTumble",props:{triggeredBy:"hotkey"}}),"tumble"===e.tools.activeTool?i("setActiveTool","line"):i("setActiveTool","tumble")})),h.bind("alt+s",(()=>{i("updateTool",{tumble:{selectionMode:!e.tools.tumble.selectionMode}})})),h.bind(["j","shift+,"],(()=>{let t=this.store.getters.currentFPS-this.store.getters.originalFPS/4;!0===e.mediaState.isPlaying?t>0&&$SKETCH.setPlaybackRate({fps:t,isActive:!0}):this.changeSettings("startPlay")}),"keydown"),h.bind(["k"],(()=>{$SKETCH.store.state.ui.isVideoScrubbing=!0,u||(u=Date.now())}),"keydown"),h.bind(["k"],(()=>{$SKETCH.store.state.ui.isVideoScrubbing=!1;const t=Date.now();u&&t-u<200&&(e.mediaState.isPlaying?this.changeSettings("stopPlay"):this.changeSettings("startPlay"),$SKETCH.setPlaybackRate({fps:this.store.getters.originalFPS,isActive:!0})),u=null}),"keyup"),h.bind(["l","shift+."],(()=>{let t=this.store.getters.currentFPS+this.store.getters.originalFPS/4;!0===e.mediaState.isPlaying?t>0&&$SKETCH.setPlaybackRate({fps:t,isActive:!0}):this.changeSettings("startPlay")}),"keydown"),h.bind(["f"],(()=>{!0===this.store.getters.hasMultipleFrames&&((0,a.L9)({action:"goToFrameDialog",props:{triggeredBy:"hotkey"}}),this.store.set("ui@showGoToFrameDialog",!0))})),[...Array(10).keys()].forEach((t=>{h.bind([`${t}`],(()=>{9===t?this.store.dispatch("setLocalVolume",1):0===t?this.store.dispatch("muteSelf",{isMuted:!e.tools.audio.isMuted}):this.store.dispatch("setLocalVolume",t/10)}))})),h.bind("h",(()=>{let e=!this.store.state.ui.showItemDrawer;(0,a.L9)({action:"showHideDrawers",props:{triggeredBy:"hotkey"}}),this.store.commit("setUI",{currentInfoItem:!1,showItemDrawer:e,showComments:e})})),h.bind(["v"],(()=>{(0,a.L9)({action:"toggleSketches",props:{triggeredBy:"hotkey"}}),s("set_sketch_visibility",{which:!e.ui.showSketches})})),h.bind(["ctrl+l","meta+l"],(()=>(this.setLoopState(!this.store.state.mediaState.loop),!1))),h.bind(["ctrl+0","a"],(()=>{(0,a.L9)({action:"autoFitZoom",props:{triggeredBy:"hotkey"}}),this.zoom("fit"),this.zoomToolActive=!1,this.panningToolActive=!1})),h.bind(["ctrl+1"],(()=>{(0,a.L9)({action:"zoom100",props:{triggeredBy:"hotkey"}}),this.zoom(1,!1,{resetPosition:!0}),this.zoomToolActive=!1,this.panningToolActive=!1})),h.bind("p",(()=>{"3d"!==this.store.state.ui.mediaType&&((0,a.L9)({action:"flipCanvas",props:{triggeredBy:"hotkey"}}),this.setFlipVideo(!e.ui.flipCanvas))})),!e.ui.isMobile){function n(e,i,o,n){for(let r=i;r<=o;r+=1){const i=e+String(r);h.bind([i],(()=>{if(t.isThreeJSViewer){const e=n(r);e&&s("viewer3d/presets/setActivePreset",e)}}))}}h.bind(["alt"],(o=>{t.is3dModel&&(o.preventDefault(),"tumble"!==e.tools.activeTool?(this.previousTool=e.tools.activeTool,i("setActiveTool","tumble")):null==this.previousTool&&s("viewer3d/setCameraSnappingEnabled",!0))}),"keydown"),h.bind(["alt"],(e=>{t.is3dModel&&(s("viewer3d/setCameraSnappingEnabled",!1),this.previousTool&&(e.preventDefault(),i("setActiveTool",this.previousTool),this.previousTool=null))}),"keyup"),window.addEventListener("blur",(()=>{t.is3dModel&&(s("viewer3d/setCameraSnappingEnabled",!1),this.previousTool&&i("setActiveTool",this.previousTool))})),n("shift+",1,4,(e=>t["viewer3d/presets/commonPresets"][e-1])),n("shift+",5,9,(e=>t["viewer3d/presets/userPresets"][e-5])),n("shift+",0,0,(()=>t["viewer3d/presets/userPresets"][5])),n("shift+ctrl+",1,9,(e=>t["viewer3d/presets/projectPresets"][e-1]))}t.canAnnotate&&(h.bind(["s"],(()=>{$SKETCH.changingBrushSize=!0}),"keydown"),h.bind(["s"],(()=>{$SKETCH.changingBrushSize=!1}),"keyup"),e.ui.isMobile||h.bind("shift+x",(()=>{(0,p.Mc)().switchTools()}),"keydown"),h.bind(["ctrl+c","meta+c"],(()=>{const i=e.sequencePlayback.isActive&&(0,p.Mc)().getCurrentSketch?(0,p.Mc)().getCurrentSketch():t["annotations/currentSketch"](window.currentFrame);i&&((0,p.Mc)().copySketch(i.uuid),(0,a.L9)({action:"copySketch",props:{triggeredBy:"hotkey"}}),this.store.commit("setUI",{copyingSketches:!0}))}
2)),h.bind(["ctrl+x","meta+x"],(()=>{const i=e.sequencePlayback.isActive&&(0,p.Mc)().getCurrentSketch?(0,p.Mc)().getCurrentSketch():t["annotations/currentSketch"](window.currentFrame);i&&((0,p.Mc)().cutSketch(i.uuid),(0,a.L9)({action:"cutSketch",props:{triggeredBy:"hotkey"}}),this.store.commit("setUI",{copyingSketches:!0}))})),h.bind(["ctrl+v","meta+v"],(async()=>{e.ui.copyingSketches&&((0,a.L9)({action:"pasteSketch",props:{triggeredBy:"hotkey"}}),await(0,p.Mc)().pasteSketch())})),h.bind("t",(()=>{(0,a.L9)({action:"toggleTracingPaper",props:{triggeredBy:"hotkey"}}),s("setTracingPaper",{isActive:!e.tools.tracingPaper.isActive})})),h.bind(["ctrl+z","meta+z"],(()=>{(0,a.L9)({action:"undo",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().undo()})),h.bind(["ctrl+shift+z","meta+shift+z"],(()=>{(0,a.L9)({action:"redo",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().redo()})),h.bind(["del","backspace","ctrl+e","meta+e"],(async()=>{const t=(0,p.Mc)().getCurrentSketch();t&&((0,a.L9)({action:"deleteSketch",props:{triggeredBy:"hotkey"}}),e.ui.isMobile&&await o.MessageBox.confirm("Are you sure you want to delete the current Sketch?","Delete Sketch",{confirmButtonText:"Yes, delete"}),(0,p.Mc)().deleteSketch(t.uuid))})),h.bind(["ctrl+b"],(()=>{(0,a.L9)({action:"showBrushSettings",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().showBrushSettings()})),h.bind(["b"],(()=>{(0,a.L9)({action:"pencil",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().usePencil()})),h.bind(["shift+b"],(()=>{(0,p.Mc)().useBrush()})),h.bind(["e"],(()=>{(0,a.L9)({action:"eraser",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().useEraser()})),h.bind(["i"],(()=>{t.currentItem&&"pdf"===t.currentItem.type||((0,a.L9)({action:"colorPicker",props:{triggeredBy:"hotkey"}}),"eyeDropper"!==e.tools.activeTool?(0,p.Mc)().enableColorPicker():(0,p.Mc)().disableColorPicker())})),h.bind(["x"],(()=>{(0,a.L9)({action:"switchColors",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().switchColors()})),h.bind("y",(()=>{(0,a.L9)({action:"laserpointer",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().useLaserpointer()})),h.bind("[",(()=>((0,a.L9)({action:"decreaseBrushSize",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().increaseSize(-1),!1))),h.bind("]",(()=>((0,a.L9)({action:"increaseBrushSize",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().increaseSize(1),!1))),h.bind("shift+[",(()=>((0,a.L9)({action:"decreaseBrushSizeShift",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().increaseSize(-3),!1))),h.bind("shift+]",(()=>((0,a.L9)({action:"increaseBrushSizeShift",props:{triggeredBy:"hotkey"}}),(0,p.Mc)().increaseSize(3),!1))),h.bind("g",(()=>((0,a.L9)({action:"toggleGhosting",props:{triggeredBy:"hotkey"}}),this.store.dispatch("setGhosting",{data:{isActive:!e.tools.ghosting.isActive}}),!1))),h.bind("alt+g",(()=>((0,a.L9)({action:"showGhostingDialog",props:{triggeredBy:"hotkey"}}),this.store.commit("toggleGhostingDialog"),!1))),h.bind("ctrl+g",(e=>{const i=this.store.state.review.id,o=(0,c.qd)();e&&e.preventDefault&&e.preventDefault(),this.store.getters.isFeatureEnabled("REVIEW_SECTIONS")&&((0,a.L9)({action:"createSection",props:{triggeredBy:"hotkey"}}),o.addGroup(i,t.selectedItems.map((e=>e.id))))})))}};t.Z=8184==i.j?y:null}}]);
3//# sourceMappingURL=9729.b7ef071.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.